File: password_secret.py

package info (click to toggle)
python-questionary 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 960 kB
  • sloc: python: 3,917; makefile: 66
file content (9 lines) | stat: -rw-r--r-- 245 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import questionary

if __name__ == "__main__":
    password = questionary.password("What's your secret?").ask() or ""

    print(
        f"Your secret is {password[:1]}... no just kidding - "
        f"I'm not going to tell anyone. 🤫"
    )