summaryrefslogtreecommitdiffstats
path: root/examples/prompts/get-password.py
blob: 1c9517c60f033995da6078eba13f5b20a24322fa (plain)
1
2
3
4
5
6
#!/usr/bin/env python
from prompt_toolkit import prompt

if __name__ == "__main__":
    password = prompt("Password: ", is_password=True)
    print("You said: %s" % password)