Module Expr Str Import alias Import alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore Call NameLoad Num Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore SubscriptLoad NameLoad Slice For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Call NameLoad NameLoad NameLoad Assign NameStore Str For NameStore NameLoad body AugAssignAdd NameStore SubscriptLoad NameLoad Index Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr NameLoad Slice Num If CompareIsNot NameLoad NameLoad body Return Call NameLoad NameLoad Dict Str Str SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Dict SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Str Str TryExcept body Return Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Raise Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad NameLoad Str decorator_list Assign NameStore Dict Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension TupleStore NameStore NameStore NameLoad Assign NameStore Call NameLoad ListComp TupleLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Num If NameLoad body AugAssignAdd NameStore Call AttributeLoad Str attr BinOpSub Num NameLoad Str AugAssignAdd NameStore Num For NameStore Call NameLoad NameLoad body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice BinOpMult NameLoad Num BinOpMult BinOpAdd NameLoad Num Num AugAssignAdd NameStore BinOpLShift BinOpBitAnd NameLoad Num Num AugAssignAdd NameStore BinOpLShift BinOpBitAnd NameLoad Num Num Expr Call AttributeLoad NameLoad attr ListLoad SubscriptLoad NameLoad Index BinOpRShift NameLoad Num SubscriptLoad NameLoad Index BinOpBitAnd BinOpRShift NameLoad Num Num SubscriptLoad NameLoad Index BinOpBitAnd BinOpRShift NameLoad Num Num SubscriptLoad NameLoad Index BinOpRShift NameLoad Num SubscriptLoad NameLoad Index BinOpBitAnd BinOpRShift NameLoad Num Num SubscriptLoad NameLoad Index BinOpBitAnd BinOpRShift NameLoad Num Num SubscriptLoad NameLoad Index BinOpRShift NameLoad Num SubscriptLoad NameLoad Index BinOpBitAnd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad Num body Return BinOpAdd SubscriptLoad NameLoad Slice Num Str orelse If CompareEq NameLoad Num body Return BinOpAdd SubscriptLoad NameLoad Slice Num Str orelse If CompareEq NameLoad Num body Return BinOpAdd SubscriptLoad NameLoad Slice Num Str orelse If CompareEq NameLoad Num body Return BinOpAdd SubscriptLoad NameLoad Slice Num Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore Call NameLoad Call NameLoad NameLoad Num If NameLoad body Raise Call NameLoad Str If NameLoad body Assign NameStore Call NameLoad NameLoad Dict Str Str Str NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str AugAssignSub NameStore Call NameLoad NameLoad Assign NameStore ListLoad Assign NameStore Num Assign NameStore Num For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad Str AugAssignAdd NameStore BinOpMult SubscriptLoad NameLoad Index NameLoad BinOpPow Num NameLoad AugAssignSub NameStore Num If CompareLt NameLoad Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If CompareEq NameLoad Num body Assign NameStore Str orelse If CompareEq NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num orelse If CompareEq NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num orelse If CompareEq NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num orelse If CompareEq NameLoad Num body Assign NameStore SubscriptLoad NameLoad Slice Num orelse Raise Call NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr ImportFrom alias Assign NameStore Call NameLoad Str If Call AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list Assign NameStore Num Assign NameStore BinOpMult BinOpFloorDiv NameLoad Num Num FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call NameLoad Num Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Import alias alias TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Print NameLoad Print BinOpMod Str SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Num Assign NameStore NameLoad For TupleStore NameStore NameStore NameLoad body If CompareEq NameLoad Str body Assign NameStore NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad If CompareEq NameLoad Str body Assign NameStore NameLoad If CompareEq NameLoad Str body Expr Call NameLoad Return If BoolOpAnd NameLoad CompareNotEq SubscriptLoad NameLoad Index Num Str body Expr Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num Str AttributeLoad NameLoad attr orelse Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Print NameLoad Call NameLoad NameLoad NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A RFC 3548: Base16, Base32, Base64 Data Encodings N/A struct N/A binascii N/A __all__ N/A encode decode encodestring decodestring b64encode b64decode b32encode b32decode b16encode b16decode standard_b64encode standard_b64decode urlsafe_b64encode urlsafe_b64decode N/A _translation N/A N/A chr _x N/A _x N/A range 256 N/A EMPTYSTRING _translate N/A N/A s altchars N/A N/A N/A translation N/A _translation N/A N/A N/A k v N/A N/A altchars items N/A N/A N/A translation N/A N/A ord k v N/A t N/A c s N/A N/A t N/A translation N/A N/A ord c N/A t N/A b64encode N/A N/A s altchars N/A None N/A N/A Encode a string using Base64.

    s is the string to encode.  Optional altchars must be a string of at least
    length 2 (additional characters are ignored) which specifies an
    alternative alphabet for the '+' and '/' characters.  This allows an
    application to e.g. generate url or filesystem safe Base64 strings.

    The encoded string is returned.
     N/A encoded N/A N/A N/A binascii b2a_base64 s N/A -1 N/A N/A altchars None N/A N/A N/A _translate encoded N/A + / N/A altchars N/A 0 N/A altchars N/A 1 N/A encoded N/A b64decode N/A N/A s altchars N/A None N/A N/A Decode a Base64 encoded string.

    s is the string to decode.  Optional altchars must be a string of at least
    length 2 (additional characters are ignored) which specifies the
    alternative alphabet used instead of the '+' and '/' characters.

    The decoded string is returned.  A TypeError is raised if s were
    incorrectly padded or if there are non-alphabet characters present in the
    string.
     N/A N/A altchars None N/A N/A s N/A _translate s N/A N/A altchars N/A 0 N/A altchars N/A 1 + / N/A N/A N/A N/A N/A binascii a2b_base64 s N/A N/A N/A N/A binascii Error N/A msg N/A N/A N/A TypeError msg N/A standard_b64encode N/A N/A s N/A N/A N/A Encode a string using the standard Base64 alphabet.

    s is the string to encode.  The encoded string is returned.
     N/A N/A b64encode s N/A standard_b64decode N/A N/A s N/A N/A N/A Decode a string encoded with the standard Base64 alphabet.

    s is the string to decode.  The decoded string is returned.  A TypeError
    is raised if the string is incorrectly padded or if there are non-alphabet
    characters present in the string.
     N/A N/A b64decode s N/A urlsafe_b64encode N/A N/A s N/A N/A N/A Encode a string using a url-safe Base64 alphabet.

    s is the string to encode.  The encoded string is returned.  The alphabet
    uses '-' instead of '+' and '_' instead of '/'.
     N/A N/A b64encode s -_ N/A urlsafe_b64decode N/A N/A s N/A N/A N/A Decode a string encoded with the standard Base64 alphabet.

    s is the string to decode.  The decoded string is returned.  A TypeError
    is raised if the string is incorrectly padded or if there are non-alphabet
    characters present in the string.

    The alphabet uses '-' instead of '+' and '_' instead of '/'.
     N/A N/A b64decode s -_ N/A N/A _b32alphabet N/A 0 9 18 27 1 10 19 28 2 11 20 29 3 12 21 30 4 13 22 31 5 14 23 6 15 24 7 16 25 8 17 26 A J S 3 B K T 4 C L U 5 D M V 6 E N W 7 F O X G P Y H Q Z I R 2 N/A _b32tab N/A N/A _b32alphabet items N/A N/A N/A _b32tab sort N/A _b32tab N/A v N/A N/A k v _b32tab N/A _b32rev N/A dict N/A N/A v k N/A N/A k v N/A N/A _b32alphabet items b32encode N/A N/A s N/A N/A N/A Encode a string using Base32.

    s is the string to encode.  The encoded string is returned.
     N/A parts N/A N/A N/A quanta leftover N/A divmod N/A len s 5 N/A leftover N/A N/A s N/A N/A ljust N/A 5 leftover N/A quanta 1 N/A i N/A range quanta N/A N/A N/A c1 c2 c3 N/A N/A struct unpack !HHB N/A s N/A N/A i 5 N/A N/A i 1 5 N/A c2 N/A N/A c1 1 16 N/A c3 N/A N/A c2 3 8 N/A N/A N/A parts extend N/A N/A _b32tab N/A N/A c1 11 N/A _b32tab N/A N/A N/A c1 6 31 N/A _b32tab N/A N/A N/A c1 1 31 N/A _b32tab N/A N/A c2 12 N/A _b32tab N/A N/A N/A c2 7 31 N/A _b32tab N/A N/A N/A c2 2 31 N/A _b32tab N/A N/A c3 5 N/A _b32tab N/A N/A c3 31 N/A encoded N/A N/A EMPTYSTRING join parts N/A N/A leftover 1 N/A N/A N/A N/A encoded N/A -6 ====== N/A N/A N/A leftover 2 N/A N/A N/A N/A encoded N/A -4 ==== N/A N/A N/A leftover 3 N/A N/A N/A N/A encoded N/A -3 === N/A N/A N/A leftover 4 N/A N/A N/A N/A encoded N/A -1 = N/A encoded N/A b32decode N/A N/A s casefold map01 N/A False None N/A N/A Decode a Base32 encoded string.

    s is the string to decode.  Optional casefold is a flag specifying whether
    a lowercase alphabet is acceptable as input.  For security purposes, the
    default is False.

    RFC 3548 allows for optional mapping of the digit 0 (zero) to the letter O
    (oh), and for optional mapping of the digit 1 (one) to either the letter I
    (eye) or letter L (el).  The optional argument map01 when not None,
    specifies which letter the digit 1 should be mapped to (when map01 is not
    None, the digit 0 is always mapped to the letter O).  For security
    purposes the default is None, so that 0 and 1 are not allowed in the
    input.

    The decoded string is returned.  A TypeError is raised if s were
    incorrectly padded or if there are non-alphabet characters present in the
    string.
     N/A N/A quanta leftover N/A divmod N/A len s 8 N/A leftover N/A N/A N/A TypeError Incorrect padding N/A map01 N/A N/A s N/A _translate s N/A 0 1 O map01 N/A casefold N/A N/A s N/A N/A s upper N/A padchars 0 N/A padchars N/A len s N/A s N/A N/A s rstrip = N/A padchars N/A len s N/A parts N/A N/A acc 0 N/A shift 35 N/A c s N/A N/A val N/A N/A _b32rev get c N/A N/A val None N/A N/A N/A TypeError Non-base32 digit found N/A acc N/A N/A _b32rev N/A c N/A 2 shift N/A shift 5 N/A N/A shift 0 N/A N/A N/A N/A parts append N/A N/A binascii unhexlify N/A %010x acc N/A acc 0 N/A shift 35 N/A last N/A N/A binascii unhexlify N/A %010x acc N/A N/A padchars 0 N/A N/A last N/A N/A N/A padchars 1 N/A N/A last N/A last N/A -1 N/A N/A N/A padchars 3 N/A N/A last N/A last N/A -2 N/A N/A N/A padchars 4 N/A N/A last N/A last N/A -3 N/A N/A N/A padchars 6 N/A N/A last N/A last N/A -4 N/A N/A N/A TypeError Incorrect padding N/A N/A N/A parts append last N/A N/A N/A EMPTYSTRING join parts N/A b16encode N/A N/A s N/A N/A N/A Encode a string using Base16.

    s is the string to encode.  The encoded string is returned.
     N/A N/A N/A N/A N/A binascii hexlify s upper N/A b16decode N/A N/A s casefold N/A False N/A N/A Decode a Base16 encoded string.

    s is the string to decode.  Optional casefold is a flag specifying whether
    a lowercase alphabet is acceptable as input.  For security purposes, the
    default is False.

    The decoded string is returned.  A TypeError is raised if s were
    incorrectly padded or if there are non-alphabet characters present in the
    string.
     N/A casefold N/A N/A s N/A N/A s upper __javascript__ RegExp N/A r N/A RegExp [^0-9A-F] N/A N/A N/A r test s N/A N/A N/A TypeError Non-base16 digit found N/A N/A N/A binascii unhexlify s N/A N/A MAXLINESIZE 76 N/A MAXBINSIZE N/A N/A MAXLINESIZE 4 3 encode N/A N/A input output N/A N/A N/A Encode a file. N/A N/A NotImplementedError encode: no file operations possible N/A decode N/A N/A input output N/A N/A N/A Decode a file. N/A N/A NotImplementedError decode: no file operations possible N/A encodestring N/A N/A s N/A N/A N/A Encode a string. N/A pieces N/A N/A i N/A range 0 N/A len s MAXBINSIZE N/A N/A chunk N/A s N/A i N/A i MAXBINSIZE N/A N/A N/A pieces append N/A N/A binascii b2a_base64 chunk N/A N/A N/A join pieces N/A decodestring N/A N/A s N/A N/A N/A Decode a string. N/A N/A N/A binascii a2b_base64 s N/A test N/A N/A N/A N/A N/A Small test program N/A sys getopt N/A N/A N/A N/A opts args N/A N/A getopt getopt N/A N/A sys argv N/A 1 deut N/A N/A N/A N/A getopt error N/A msg N/A N/A N/A sys stdout N/A sys stderr N/A msg N/A N/A usage: %s [-d|-e|-u|-t] [file|-]
        -d, -u: decode
        -e: encode (default)
        -t: encode and decode string 'Aladdin:open sesame' N/A N/A sys argv N/A 0 N/A N/A N/A sys exit 2 N/A func encode N/A N/A o a opts N/A N/A N/A o -e N/A N/A func encode N/A N/A o -d N/A N/A func decode N/A N/A o -u N/A N/A func decode N/A N/A o -t N/A N/A N/A test1 N/A N/A N/A args N/A N/A args N/A 0 - N/A N/A N/A func N/A open N/A args N/A 0 rb N/A sys stdout N/A N/A N/A func N/A sys stdin N/A sys stdout N/A test1 N/A N/A N/A N/A N/A s0 Aladdin:open sesame N/A s1 N/A encodestring s0 N/A s2 N/A decodestring s1 N/A s0 N/A repr s1 s2 N/A N/A N/A __name__ __main__ N/A N/A N/A test