bz2

The python bz2 module provides a comprehensive interface for the bz2 compression library. It implements a complete file interface, one shot (de)compression functions, and types for sequential (de)compression.

Functions

compress((data [[, compresslevel]) Compress data in one shot.
decompress((data) -> decompressed data) Decompress data in one shot.

Classes

BZ2Compressor Create a new compressor object.
BZ2Decompressor Create a new decompressor object.
BZ2File Open a bz2 file.