Module Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore TupleLoad Num Str Str Str Str Str Str Num Num Num Assign NameStore Str TryExcept body Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad TryExcept body Import alias Import alias handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad CompareEq Call AttributeLoad NameLoad attr Str FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args defaults body Return CompareIsNot NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Return CompareIsNot NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If UnaryOpNot NameLoad body Assign NameStore Num Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword NameLoad TryFinally body Expr Call AttributeLoad NameLoad attr NameLoad finalbody Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Str TryFinally body Return Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad BinOpMult Num Num body Expr Str If UnaryOpNot Call NameLoad body Raise Call NameLoad Str If UnaryOpNot NameLoad body Return Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad NameLoad If NameLoad body Assign NameStore Lambda arguments args NameParam NameParam NameParam defaults SubscriptLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore Lambda arguments args NameParam NameParam NameParam defaults Call NameLoad NameLoad NameLoad NameLoad orelse Assign NameStore Lambda arguments args NameParam NameParam NameParam defaults Call AttributeLoad SubscriptLoad Call NameLoad NameLoad Slice NameLoad BinOpAdd NameLoad NameLoad attr For NameStore GeneratorExp Call NameLoad NameLoad NameLoad NameLoad comprehension NameStore Call NameLoad Num Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad SubscriptLoad Call NameLoad NameLoad Slice Num Return CompareEq NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call NameLoad body Raise Call NameLoad Str If Call NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call NameLoad NameLoad Assign NameStore Num While CompareLt NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Slice NameLoad Index Num AugAssignAdd NameStore Num Assign NameStore BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Num Return Call AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore BinOpBitAnd BinOpRShift NameLoad Num Num If NameLoad body AugAssignAdd NameStore Num Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num BinOpSub NameLoad Num attr Slice Num Num Return Call AttributeLoad Str attr ListLoad SubscriptLoad NameLoad Slice Num BinOpSub NameLoad Num NameLoad SubscriptLoad NameLoad Slice NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Assign NameStore BinOpBitAnd BinOpRShift NameLoad Num Num If NameLoad body AugAssignAdd NameStore Num Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num BinOpSub NameLoad Num attr Slice Num Num Assign NameStore Call AttributeLoad Str attr ListLoad SubscriptLoad NameLoad Slice Num BinOpSub NameLoad Num NameLoad SubscriptLoad NameLoad Slice NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Return SubscriptLoad NameLoad Index Str decorator_list
N/A N/A gzip N/A io N/A platform N/A struct N/A six six.moves xrange N/A _XERIAL_V1_HEADER N/A -126 S N A P P Y 0 1 1 N/A _XERIAL_V1_FORMAT bccccccBii N/A N/A N/A snappy N/A N/A N/A ImportError N/A N/A snappy None N/A N/A N/A lz4f N/A xxhash N/A N/A N/A ImportError N/A N/A lz4f None N/A PYPY N/A bool N/A N/A N/A platform python_implementation PyPy has_gzip N/A N/A N/A N/A N/A True N/A has_snappy N/A N/A N/A N/A N/A N/A snappy None N/A has_lz4 N/A N/A N/A N/A N/A N/A lz4f None N/A gzip_encode N/A N/A payload compresslevel N/A None N/A N/A N/A compresslevel N/A N/A compresslevel 9 N/A buf N/A N/A io BytesIO N/A gzipper N/A N/A gzip GzipFile fileobj buf mode w compresslevel compresslevel N/A N/A N/A N/A N/A gzipper write payload N/A N/A N/A N/A gzipper close N/A N/A N/A buf getvalue N/A gzip_decode N/A N/A payload N/A N/A N/A buf N/A N/A io BytesIO payload N/A gzipper N/A N/A gzip GzipFile fileobj buf mode r N/A N/A N/A N/A N/A gzipper read N/A N/A N/A N/A gzipper close N/A snappy_encode N/A N/A payload xerial_compatible xerial_blocksize N/A True N/A 32 1024 N/A N/A Encodes the given data with snappy compression.

    If xerial_compatible is set then the stream is encoded in a fashion
    compatible with the xerial snappy library.

    The block size (xerial_blocksize) controls how frequent the blocking occurs
    32k is the default in the xerial library.

    The format winds up being:


        +-------------+------------+--------------+------------+--------------+
        |   Header    | Block1 len | Block1 data  | Blockn len | Blockn data  |
        +-------------+------------+--------------+------------+--------------+
        |  16 bytes   |  BE int32  | snappy bytes |  BE int32  | snappy bytes |
        +-------------+------------+--------------+------------+--------------+


    It is important to note that the blocksize is the amount of uncompressed
    data presented to snappy at each block, whereas the blocklen is the number
    of bytes that will be present in the stream; so the length will always be
    <= blocksize.

     N/A N/A N/A has_snappy N/A N/A N/A NotImplementedError Snappy codec is not available N/A N/A xerial_compatible N/A N/A N/A N/A snappy compress payload N/A out N/A N/A io BytesIO N/A N/A fmt dat N/A zip _XERIAL_V1_FORMAT _XERIAL_V1_HEADER N/A N/A N/A N/A out write N/A N/A struct pack N/A ! fmt dat N/A PYPY N/A N/A chunker N/A N/A N/A payload i size N/A N/A payload N/A i N/A size i N/A N/A N/A six PY2 N/A N/A chunker N/A N/A N/A payload i size N/A N/A buffer payload i size N/A N/A chunker N/A N/A N/A payload i size N/A N/A N/A N/A N/A memoryview payload N/A i N/A size i tobytes N/A chunk N/A N/A chunker payload i xerial_blocksize N/A i N/A xrange 0 N/A len payload xerial_blocksize N/A N/A block N/A N/A snappy compress chunk N/A block_size N/A len block N/A N/A N/A out write N/A N/A struct pack !i block_size N/A N/A N/A out write block N/A N/A N/A out getvalue N/A _detect_xerial_stream N/A N/A payload N/A N/A N/A Detects if the data given might have been encoded with the blocking mode
        of the xerial snappy library.

        This mode writes a magic header of the format:
            +--------+--------------+------------+---------+--------+
            | Marker | Magic String | Null / Pad | Version | Compat |
            +--------+--------------+------------+---------+--------+
            |  byte  |   c-string   |    byte    |  int32  | int32  |
            +--------+--------------+------------+---------+--------+
            |  -126  |   'SNAPPY'   |          |         |        |
            +--------+--------------+------------+---------+--------+

        The pad appears to be to ensure that SNAPPY is a valid cstring
        The version is the version of this format as written by xerial,
        in the wild this is currently 1 as such we only support v1.

        Compat is there to claim the miniumum supported version that
        can read a xerial block stream, presently in the wild this is
        1.
     N/A N/A N/A len payload 16 N/A N/A header N/A N/A struct unpack N/A ! _XERIAL_V1_FORMAT N/A N/A bytes payload N/A 16 N/A N/A header _XERIAL_V1_HEADER N/A False N/A snappy_decode N/A N/A payload N/A N/A N/A N/A N/A has_snappy N/A N/A N/A NotImplementedError Snappy codec is not available N/A N/A _detect_xerial_stream payload N/A N/A out N/A N/A io BytesIO N/A byt N/A payload N/A 16 N/A length N/A len byt N/A cursor 0 N/A N/A cursor length N/A N/A block_size N/A N/A N/A struct unpack_from !i N/A byt N/A cursor N/A 0 N/A cursor 4 N/A end N/A cursor block_size N/A N/A N/A out write N/A N/A snappy decompress N/A byt N/A cursor end N/A cursor end N/A N/A N/A out seek 0 N/A N/A N/A out read N/A N/A N/A N/A snappy decompress payload N/A lz4_encode N/A N/A payload N/A N/A N/A data N/A N/A lz4f compressFrame payload N/A header_size 7 N/A N/A isinstance N/A data N/A 4 int N/A N/A flg N/A data N/A 4 N/A N/A flg N/A ord N/A data N/A 4 N/A content_size_bit N/A N/A flg 3 1 N/A content_size_bit N/A N/A header_size 8 N/A hc N/A N/A N/A N/A N/A xxhash xxh32 N/A data N/A 0 N/A header_size 1 digest N/A -2 -1 N/A N/A N/A join N/A N/A data N/A 0 N/A header_size 1 hc N/A data N/A header_size N/A lz4_decode N/A N/A payload N/A N/A N/A header_size 7 N/A N/A isinstance N/A payload N/A 4 int N/A N/A flg N/A payload N/A 4 N/A N/A flg N/A ord N/A payload N/A 4 N/A content_size_bit N/A N/A flg 3 1 N/A content_size_bit N/A N/A header_size 8 N/A hc N/A N/A N/A N/A N/A xxhash xxh32 N/A payload N/A 4 N/A header_size 1 digest N/A -2 -1 N/A munged_payload N/A N/A join N/A N/A payload N/A 0 N/A header_size 1 hc N/A payload N/A header_size N/A cCtx N/A N/A lz4f createCompContext N/A data N/A N/A lz4f decompressFrame munged_payload cCtx N/A N/A data N/A decomp N/A