#πŸ”’ Struggling to use pyinputplus "inputPassword"

4 messages Β· Page 1 of 1 (latest)

royal frost
#

Hi there,
I'm sort of a newbie. Anyone really familiar with the puyinputplus library and how do I make it work?

pyip.inputPassword('Enter the password: ', mask="*", limit=None)

what happens

hi``` (not separate entries)


I was under the impression that mask would first make every key I type turn into a "*", and also when I try to hit enter, nothing happens, it goes to a new line as if its waiting for more input. 

I keep seeing in the documentation it mentions correctPassword? I dont even know how to use that and dont see any examples or any information on how thats used in this function.

I was looking at this but still cant see how correctPassword is used.
https://github.com/asweigart/pyinputplus/blob/master/src/pyinputplus/__init__.py

Thanks for your time.
GitHub

The input() and raw_input() functions with added validation features for text-based programs. - asweigart/pyinputplus

urban boneBOT
#

@royal frost

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

urban boneBOT
#

@royal frost

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.