pass_asker.py 354 B

1234567891011121314151617
  1. from PyInquirer import prompt
  2. # Ask for a name for a password
  3. class PassAsker:
  4. def __init__(self):
  5. self.widget = [
  6. {
  7. 'type':'password',
  8. 'name':'pass',
  9. 'message':'Please enter your password'
  10. }
  11. ]
  12. def ask(self):
  13. return prompt(self.widget)['pass']