getpass
¶
Utilities to get a password and/or the current user name.
getpass(prompt[, stream]) - Prompt for a password, with echo turned off. getuser() - Get the user name from the environment or password database.
- GetPassWarning - This UserWarning is issued when getpass() cannot prevent
- echoing of the password contents while reading.
On Windows, the msvcrt module will be used. On the Mac EasyDialogs.AskPassword is used, if available.
Functions¶
fallback_getpass ([prompt, stream]) |
|
getpass ([prompt, stream]) |
Prompt for a password, with echo turned off. |
getuser () |
Get the username from the environment or password database. |
unix_getpass ([prompt, stream]) |
Prompt for a password, with echo turned off. |
win_getpass ([prompt, stream]) |
Prompt for password with echo off, using Windows getch(). |
Exceptions¶
GetPassWarning |