logger.py 436 B

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