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

What Are The Best Universities In The World?

Hard vs. Soft Water: What's The Difference?

java - Solr query version issue: Invalid version or the data in not in 'javabin' format -