So I wrote a script, and it actually worked for a while. I import the getpass module, and sure enough the user name was echoed, but the password was not. I ran the script several weeks later, and now the password is echoing. Here's my code:
import getpass
def get_login():
"""get un/pw cerdentials for server"""
username = input("Username: ")
password = getpass.getpass()
return username, password
def some_other_function():
(username, password) = get_login()
When I run the script i get a message "Warning: Password input may be echoed." and sure enough, it's echoed.
I have tried slightly different things such as defining the promt and stream (prompt='Password: ', stream=None)
Thanks