examples/net/prompt_password.py
import getpass

password = getpass.getpass("Password:")

print(password)