Module Expr Str Import alias alias alias Assign NameStore ListLoad Str Str Str ClassDef bases NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Str BinOpBitOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Num Assign NameStore NameLoad If UnaryOpNot NameLoad body Assign NameStore NameLoad handlers ExceptHandler type NameLoad name NameStore body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Slice AugAssignBitAnd SubscriptStore NameLoad Index Num UnaryOpInvert AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body AugAssignBitOr NameStore AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad finalbody Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareIsNot NameLoad NameLoad body Raise Delete NameDel NameDel Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str NameLoad body Expr Str If CompareIsNot AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call NameLoad NameLoad NameLoad Import alias For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str While Num body Assign NameStore Call AttributeLoad NameLoad attr If BoolOpOr CompareEq NameLoad Str CompareEq NameLoad Str body Break If CompareEq NameLoad Str body Raise NameLoad If CompareEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Slice Num orelse Assign NameStore BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Print NameLoad Str Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad NameLoad body If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise NameLoad If CompareEq SubscriptLoad NameLoad Index Num Str body Assign NameStore SubscriptLoad NameLoad Slice Num Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Import alias For NameStore TupleLoad Str Str Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Return NameLoad Import alias Return SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Index Num decorator_list TryExcept body Import alias Expr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type TupleLoad NameLoad NameLoad body TryExcept body Import alias handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad orelse Assign NameStore NameLoad orelse Assign NameStore NameLoad
N/A N/A 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.

 N/A os sys warnings N/A __all__ N/A getpass getuser GetPassWarning GetPassWarning N/A UserWarning N/A N/A N/A unix_getpass N/A N/A prompt stream N/A Password:  None N/A N/A Prompt for a password, with echo turned off.

    Args:
      prompt: Written on stream to ask for the input.  Default: 'Password: '
      stream: A writable file object to display the prompt.  Defaults to
              the tty.  If no tty is available defaults to sys.stderr.
    Returns:
      The seKr3t input.
    Raises:
      EOFError: If our input tty or stdin was closed.
      GetPassWarning: When we were unable to turn echo off on the input.

    Always restores terminal settings before returning.
     N/A fd None N/A tty None N/A N/A N/A fd N/A N/A os open /dev/tty N/A N/A os O_RDWR N/A os O_NOCTTY N/A tty N/A N/A os fdopen fd w+ 1 N/A input tty N/A N/A stream N/A N/A stream tty N/A N/A N/A EnvironmentError N/A e N/A N/A N/A N/A fd N/A N/A N/A sys stdin fileno N/A N/A N/A N/A AttributeError ValueError N/A N/A passwd N/A fallback_getpass prompt stream N/A input N/A sys stdin N/A N/A stream N/A N/A stream N/A sys stderr N/A N/A fd None N/A N/A passwd None N/A N/A N/A old N/A N/A termios tcgetattr fd N/A new N/A old N/A N/A N/A new N/A 3 N/A N/A termios ECHO N/A tcsetattr_flags N/A termios TCSAFLUSH N/A N/A hasattr termios TCSASOFT N/A N/A tcsetattr_flags N/A termios TCSASOFT N/A N/A N/A N/A N/A termios tcsetattr fd tcsetattr_flags new N/A passwd N/A _raw_input prompt stream input input N/A N/A N/A N/A termios tcsetattr fd tcsetattr_flags old N/A N/A N/A stream flush N/A N/A N/A N/A termios error N/A e N/A N/A N/A passwd None N/A N/A N/A input tty N/A passwd N/A fallback_getpass prompt stream N/A N/A N/A stream write N/A passwd N/A win_getpass N/A N/A prompt stream N/A Password:  None N/A N/A Prompt for password with echo off, using Windows getch(). N/A N/A N/A sys stdin N/A sys __stdin__ N/A N/A N/A fallback_getpass prompt stream N/A msvcrt N/A c prompt N/A N/A N/A N/A msvcrt putch c N/A pw N/A 1 N/A N/A c N/A N/A msvcrt getch N/A N/A N/A c N/A c N/A N/A N/A N/A c N/A N/A KeyboardInterrupt N/A N/A c N/A N/A pw N/A pw N/A -1 N/A N/A pw N/A pw c N/A N/A N/A msvcrt putch N/A N/A N/A msvcrt putch N/A pw N/A fallback_getpass N/A N/A prompt stream N/A Password:  None N/A N/A N/A N/A warnings warn Can not control echo on the terminal. GetPassWarning stacklevel 2 N/A N/A stream N/A N/A stream N/A sys stderr N/A stream Warning: Password input may be echoed. N/A N/A _raw_input prompt stream N/A _raw_input N/A N/A prompt stream input N/A None None N/A N/A N/A stream N/A N/A stream N/A sys stderr N/A N/A input N/A N/A input N/A sys stdin N/A prompt N/A str prompt N/A prompt N/A N/A N/A N/A stream write prompt N/A N/A N/A stream flush N/A line N/A N/A input readline N/A N/A line N/A N/A EOFError N/A N/A N/A line N/A -1 N/A N/A line N/A line N/A -1 N/A line N/A getuser N/A N/A N/A N/A N/A 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.

     N/A os N/A name N/A LOGNAME USER LNAME USERNAME N/A N/A user N/A N/A N/A os environ get name N/A user N/A N/A user N/A pwd N/A N/A N/A N/A pwd getpwuid N/A N/A os getuid N/A 0 N/A N/A N/A N/A termios N/A N/A N/A termios tcgetattr N/A termios tcsetattr N/A N/A N/A N/A ImportError AttributeError N/A N/A N/A N/A msvcrt N/A N/A N/A ImportError N/A N/A N/A EasyDialogs AskPassword N/A N/A N/A ImportError N/A N/A getpass fallback_getpass N/A N/A getpass AskPassword N/A N/A getpass win_getpass N/A N/A getpass unix_getpass