bx.misc.seeklzop module

Semi-random access to bz2 compressed data.

class bx.misc.seeklzop.SeekableLzopFile(filename, table_filename, block_cache_size=0, **kwargs)

Bases: object

Filelike object supporting read-only semi-random access to bz2 compressed files for which an offset table (bz2t) has been generated by bzip-table.

close()
fix_dirty()
flush()
get_block_and_offset(index)
init_table()
load_block(index)
read(sizehint=-1)
readable()
readline()
seek(offset, whence=0)

Move the file pointer to a particular offset.

seekable()
tell()
writable()
class bx.misc.seeklzop.UnpackWrapper(file)

Bases: object

get(fmt)
read(amt)