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

round image using picasso in android -

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

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