For a small Python script, that is when you don’t use click for instance, you should use the getpass module to get passwords as it hides the password while typing.
getpass to Get Passwords in Small Python ScriptsNote#181
2024-11-24
For a small Python script, that is when you don’t use click for instance, you should use the getpass module to get passwords as it hides the password while typing.