The freezer.utils.compress Module

class freezer.utils.compress.BaseCompressor(compression_algo)[source]

Bases: object

Base class for compress/decompress activities.

class freezer.utils.compress.Compressor(compression_algo)[source]

Bases: freezer.utils.compress.BaseCompressor

Compress chucks of data.

MAX_COMPRESS_LEVEL = 9
compress(data)[source]
create_compressobj(compression_algo)[source]
flush()[source]
class freezer.utils.compress.Decompressor(compression_algo)[source]

Bases: freezer.utils.compress.BaseCompressor

Decompress chucks of data.

create_decompressobj(compression_algo)[source]
decompress(data)[source]
flush()[source]
freezer.utils.compress.get_compression_algo(compression_algo)[source]
freezer.utils.compress.one_shot_compress(compression_algo, data)[source]
freezer.utils.compress.one_shot_decompress(compression_algo, data)[source]