bx.misc.seekbzip2 module

Semi-random access to bz2 compressed data.

class bx.misc.seekbzip2.SeekableBzip2File(filename, table_filename, **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_chunk_and_offset(position)
init_bz2()
init_table()
read(sizehint=-1)
readable()
readline(size=-1)
readlines(sizehint=-1)
seek(offset, whence=0)
seekable()
tell()
writable()
xreadlines()