Module Expr Str ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias Assign NameStore Call NameLoad Str TupleLoad Str Str Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str Str Num NameLoad body Expr Str If CompareNotIn NameLoad Str body Raise Call NameLoad Str TryExcept body Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assert CompareEq NameLoad Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr IfExp NameLoad BinOpMod Str Call NameLoad NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpSub Call NameLoad AttributeLoad NameLoad attr Num If CompareGtE AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If UnaryOpNot Call AttributeLoad SubscriptLoad NameLoad Slice Num attr AttributeLoad NameLoad attr body Continue Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Slice NameLoad attr Str Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Num Assign NameStore NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Assign AttributeStore NameLoad attr NameLoad Raise NameLoad orelse AugAssignAdd AttributeStore NameLoad attr NameLoad Return AugAssignAdd AttributeStore NameLoad attr Num If CompareGtE AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Raise NameLoad orelse AugAssignAdd AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If BoolOpAnd NameLoad UnaryOpNot AttributeLoad NameLoad attr body Return While BoolOpAnd AttributeLoad NameLoad attr BoolOpOr CompareGtE Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr UnaryOpNot NameLoad body AugAssignAdd AttributeStore NameLoad attr Num Assert CompareEq AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpSub AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad If BoolOpAnd NameLoad CompareLtE Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body AugAssignAdd NameStore BinOpAdd Str Call NameLoad NameLoad Assign NameStore NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert BoolOpOr UnaryOpNot AttributeLoad NameLoad attr CompareGtE NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If CompareGtE Call NameLoad AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr BinOpDiv AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assert UnaryOpNot AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr NameLoad AugAssignAdd AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str TryExcept body While BoolOpOr CompareLt NameLoad Num CompareLt Call NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass If CompareGt NameLoad Num body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad orelse If CompareLt NameLoad Num body Assign NameStore AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str orelse If CompareEq NameLoad Num body Assign NameStore Str AugAssignAdd AttributeStore NameLoad attr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If AttributeLoad NameLoad attr body AugAssignAdd AttributeStore NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Return Call AttributeLoad AttributeLoad NameLoad attr attr Num If BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad TryExcept body While CompareNotIn Str AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body If CompareNotIn Str AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr Num orelse Raise NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Assign AttributeStore NameLoad attr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Assert CompareEq AttributeLoad NameLoad attr Str If CompareEq NameLoad Num body Pass orelse If CompareEq NameLoad Num body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Num body Raise NameLoad orelse Raise NameLoad If AttributeLoad NameLoad attr body Assert CompareGtE NameLoad AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareLtE AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr BinOpSub NameLoad Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpSub NameLoad AttributeLoad NameLoad attr Assert CompareGtE NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Assert BoolOpOr CompareLtE NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Num For NameStore AttributeLoad NameLoad attr body If BoolOpAnd AttributeLoad NameLoad attr CompareLt AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore Num For NameStore AttributeLoad NameLoad attr body If CompareEq NameLoad Num body Assert CompareGt AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad AttributeLoad NameLoad attr orelse If BoolOpAnd AttributeLoad NameLoad attr CompareGt AttributeLoad NameLoad attr NameLoad body Assign NameStore Num Return TupleLoad NameLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num FunctionDef arguments args NameParam NameParam defaults body Expr Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr BinOpMult Num Num If UnaryOpNot NameLoad body Break Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If BoolOpAnd AttributeLoad NameLoad attr CompareIn AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If BoolOpOr AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num keyword AttributeLoad NameLoad attr keyword Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Import alias ImportFrom alias Expr Call NameLoad AttributeLoad NameLoad attr
N/A N/A chunkedfile - Chunked storage of compressed data collections namedtuple zipfile ZipFile BadZipfile ZIP_DEFLATED gzip GzipFile base64 urlsafe_b64encode urlsafe_b64decode N/A ChunkInfo N/A namedtuple ChunkInfo N/A name pos bookmark ChunkedFile N/A object N/A N/A Compressed file writer/reader that stores data in chunks in a zip file.
    Transparently supports reading gzip files.
     __init__ N/A N/A self filename subfile mode chunksize autoflush N/A r 131072 True N/A N/A Create a ChunkedFile object with given filename, I/O mode (r,w,a),
        and preferred chunk size. If you wish to manually control the chunk
        boundaries using bookmark() or flush(), set autoflush=False. N/A N/A mode rwa N/A N/A N/A ValueError Mode must be r or w or a N/A N/A N/A N/A self zip N/A ZipFile filename mode ZIP_DEFLATED N/A N/A self _is_gzip False N/A N/A N/A BadZipfile N/A N/A N/A mode r N/A N/A self zip N/A GzipFile filename mode N/A N/A self _is_gzip True N/A N/A self prefix N/A subfile N/A %s/c. N/A str subfile c. N/A N/A self mode mode N/A N/A self chunksize chunksize N/A N/A self autoflush autoflush N/A N/A N/A self _is_gzip N/A N/A N/A self chunks N/A N/A self _chunks N/A N/A mode r N/A N/A N/A self eof False N/A N/A self chunkidx -1 N/A N/A N/A self eof True N/A N/A self chunkidx N/A N/A len N/A self chunks 1 N/A N/A N/A self chunkidx 0 N/A N/A info N/A N/A N/A self zip getinfo N/A N/A N/A self chunks N/A N/A self chunkidx name N/A N/A self pos N/A N/A N/A N/A self chunks N/A N/A self chunkidx pos N/A info file_size N/A N/A N/A self pos 0 N/A N/A self nextbuf N/A N/A N/A self readbuf N/A N/A self writebuf N/A N/A self _last_bookmark None N/A _chunks N/A N/A self N/A N/A N/A Return a list of ChunkInfos, one for each chunk in the file. N/A offset N/A len N/A self prefix N/A chunks N/A N/A name N/A N/A N/A self zip namelist N/A N/A N/A N/A N/A N/A name N/A 0 startswith N/A self prefix N/A N/A N/A nameinfo N/A N/A N/A name N/A offset split , N/A pos N/A int N/A nameinfo N/A 0 16 N/A bookmark None N/A N/A N/A len nameinfo 1 N/A N/A bookmark N/A urlsafe_b64decode N/A nameinfo N/A 1 N/A N/A N/A chunks append N/A ChunkInfo name name pos pos bookmark bookmark N/A N/A sorted chunks key N/A N/A N/A chunk N/A N/A chunk pos N/A _next_chunk N/A N/A self N/A N/A N/A Read the next chunk into the read buffer. N/A N/A self _is_gzip N/A N/A chunk N/A N/A N/A self zip read N/A self chunksize N/A N/A chunk N/A N/A N/A self eof True N/A EOFError N/A N/A N/A self readbuf chunk N/A N/A N/A self chunkidx 1 N/A N/A N/A self chunkidx N/A len N/A self chunks N/A N/A N/A self eof True N/A EOFError N/A N/A N/A self readbuf N/A N/A N/A self zip read N/A N/A N/A self chunks N/A N/A self chunkidx name N/A _flush N/A N/A self auto bookmark N/A True None N/A N/A Flush complete chunks from the write buffer. An incomplete chunk
        may be created (and the write buffer completely emptied) if
        auto=False N/A N/A auto N/A N/A self autoflush N/A N/A N/A N/A N/A self writebuf N/A N/A N/A len N/A self writebuf N/A self chunksize N/A auto N/A N/A N/A self chunkidx 1 N/A N/A N/A self chunkidx N/A len N/A self chunks N/A chunkpos N/A N/A self pos N/A len N/A self writebuf N/A chunkname N/A %s%08x N/A N/A self prefix chunkpos N/A chunkbookmark None N/A N/A bookmark N/A N/A len N/A self writebuf N/A self chunksize N/A N/A chunkname N/A , N/A urlsafe_b64encode bookmark N/A chunkbookmark bookmark N/A N/A N/A N/A self zip writestr chunkname N/A N/A self writebuf N/A N/A self chunksize N/A N/A self writebuf N/A N/A self writebuf N/A N/A self chunksize N/A N/A N/A N/A self chunks append N/A ChunkInfo name chunkname pos chunkpos bookmark chunkbookmark N/A close N/A N/A self N/A N/A N/A Close the file. Must be called to avoid data loss. N/A N/A N/A self flush N/A N/A N/A N/A self zip close N/A flush N/A N/A self N/A N/A N/A Flush all output to the file. N/A N/A N/A self _flush auto False N/A bookmark N/A N/A self bookmark N/A N/A N/A Possibly flush the file, writing a bookmark if doing so. N/A N/A N/A N/A self _last_bookmark N/A bookmark N/A self _last_bookmark N/A N/A self _last_bookmark bookmark N/A N/A N/A len N/A self writebuf N/A N/A self chunksize N/A N/A self chunksize 8 N/A N/A N/A N/A self _flush auto False bookmark bookmark N/A write N/A N/A self data N/A N/A N/A Write data to be stored in the file. N/A N/A N/A self _is_gzip N/A N/A self writebuf data N/A N/A self pos N/A len data N/A N/A N/A self _flush auto True N/A read N/A N/A self size N/A -1 N/A N/A Read data from the file. N/A N/A N/A N/A N/A size 0 N/A N/A len N/A self readbuf size N/A N/A N/A N/A self _next_chunk N/A N/A N/A EOFError N/A N/A N/A N/A size 0 N/A N/A ret N/A N/A self readbuf N/A size N/A N/A self readbuf N/A N/A self readbuf N/A size N/A N/A N/A size 0 N/A N/A ret N/A self readbuf N/A N/A self readbuf N/A N/A N/A size 0 N/A N/A ret N/A N/A self pos N/A len ret N/A ret N/A next N/A N/A self N/A N/A N/A Return the next line from the file or raise StopIteration. N/A N/A self nextbuf N/A N/A N/A self pos N/A len N/A N/A self nextbuf N/A 0 N/A N/A N/A N/A self nextbuf pop 0 N/A N/A N/A self eof N/A N/A self readbuf N/A N/A StopIteration N/A N/A N/A N/A N/A self readbuf N/A N/A N/A N/A self _next_chunk N/A N/A N/A EOFError N/A N/A N/A N/A self readbuf N/A N/A N/A self readbuf N/A N/A N/A N/A self read -1 N/A N/A StopIteration N/A N/A self nextbuf N/A N/A N/A self readbuf splitlines True N/A N/A N/A N/A self readbuf N/A -1 N/A N/A N/A self readbuf N/A N/A N/A self nextbuf pop N/A N/A N/A self readbuf N/A N/A N/A self next N/A seek N/A N/A self offset whence N/A 0 N/A N/A Seek to a given byte position in the file. Currently limited to
        files opened for mode=r and whence current location or beginning of
        the file. N/A N/A N/A self mode r N/A N/A whence 0 N/A N/A N/A N/A N/A whence 1 N/A N/A offset N/A N/A self pos offset N/A N/A N/A whence 2 N/A N/A NotImplementedError N/A N/A ValueError N/A N/A self _is_gzip N/A N/A N/A offset N/A self pos N/A N/A N/A N/A self flush N/A N/A self nextbuf N/A N/A N/A self readbuf N/A N/A self chunkidx -1 N/A N/A self pos 0 N/A N/A idx data N/A enumerate N/A self chunks N/A N/A N/A N/A data pos offset N/A N/A N/A self chunkidx N/A idx 1 N/A N/A self pos N/A data pos N/A delta N/A offset N/A self pos N/A N/A delta 0 N/A N/A N/A self read delta N/A N/A N/A delta N/A self chunksize N/A self eof N/A self _is_gzip N/A N/A N/A self pos offset N/A find_bookmark N/A N/A self bookmark give_range N/A False N/A N/A Determine an appropriate seek position near bookmark. N/A pos 0 N/A chunk N/A self chunks N/A N/A N/A N/A chunk bookmark N/A N/A chunk bookmark bookmark N/A N/A pos N/A chunk pos N/A give_range N/A N/A ret_next 0 N/A chunk N/A self chunks N/A N/A N/A ret_next 1 N/A N/A N/A N/A chunk pos pos N/A N/A pos N/A chunk pos N/A N/A N/A N/A chunk bookmark N/A N/A chunk bookmark bookmark N/A N/A ret_next 1 N/A N/A pos None N/A N/A pos N/A tell N/A N/A self N/A N/A N/A Return the current byte position in the file. N/A N/A self pos N/A __iter__ N/A N/A self N/A N/A N/A self N/A N/A _main N/A N/A argv N/A N/A N/A Simple program to read/write ChunkedFiles. N/A parser N/A ArgumentParser N/A N/A N/A parser add_argument --read action store_const const r dest read help Read data from file N/A N/A N/A parser add_argument --seek nargs 1 type int help Seek position before reading N/A N/A N/A parser add_argument --write action store_const const w dest mode help Write data to file N/A N/A N/A parser add_argument --append action store_const const a dest mode help Append data to file N/A N/A N/A parser add_argument file nargs 1 help Container to read/write N/A N/A N/A parser add_argument subfile nargs ? help Subfile to read/write N/A args N/A N/A parser parse_args N/A argv N/A 1 move_data N/A N/A readfh writefh N/A N/A N/A Move data from readfh to writefh until EOF. N/A True N/A N/A buf N/A N/A readfh read N/A 1024 1024 N/A N/A buf N/A N/A N/A N/A N/A writefh write buf N/A N/A N/A N/A args mode N/A N/A args mode aw N/A N/A cfh N/A ChunkedFile N/A N/A args file N/A 0 subfile N/A args subfile mode N/A args mode N/A N/A move_data N/A sys stdin cfh N/A N/A N/A cfh close N/A N/A N/A args read N/A N/A args mode N/A N/A cfh N/A ChunkedFile N/A N/A args file N/A 0 subfile N/A args subfile mode r N/A N/A args seek N/A N/A N/A N/A cfh seek N/A N/A args seek N/A 0 N/A N/A move_data cfh N/A sys stdout N/A N/A N/A cfh close N/A N/A N/A __name__ __main__ N/A N/A sys argparse ArgumentParser N/A N/A _main N/A sys argv