python - Password prompt in pycharm -


i trying prompt user password in pycharm, without echoing password in console output.

i have tried use getpass module, echo back. how this, or make getpass not echo password in pycharm?

here's bit of digging code:

getpass first tries manipulate tty, throws exception

>>> os.open('/dev/tty', os.o_rdwr|os.o_noctty) oserror: [errno 6] device not configured: '/dev/tty' 

it tries manipulate stdin, throws exception:

>>> sys.stdin.fileno() attributeerror: stdin instance has no attribute 'fileno' 

does know of way make either work?


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -