Commit | Line | Data |
---|---|---|
e7abf853 MM |
1 | #!/usr/bin/env python3 |
2 | ||
3 | """Module used for obtaining (pod, username, password) tuple. | |
4 | ||
5 | Used by me when I want to debug in public places and not want to show | |
6 | my password. | |
7 | """ | |
8 | ||
9 | import getpass | |
10 | ||
11 | ||
12 | def getdata(): | |
13 | """Asks for data. | |
14 | """ | |
15 | pod = input('Pod: ') | |
16 | username = input('Username at \'{0}\': '.format(pod)) | |
17 | password = getpass.getpass('Password for {0}@{1}: '.format(username, pod)) | |
18 | return (pod, username, password) |