Module implementing utilities to get a password and/or the current user name.
getpass(prompt) - prompt for a password, with echo turned off getuser() - get the user name from the environment or password database
This module is a replacement for the one found in the Python distribution. It is to provide a debugger compatible variant of the a.m. functions.
__all__ |
default_getpass |
fallback_getpass |
unix_getpass |
win_getpass |
None |
getpass | |
getuser | Function to get the username from the environment or password database. |
Function to get the username from the environment or password database.
First try various environment variables, then the password database. This works on Windows as long as USERNAME is set.