zlib
¶
The functions in this module allow compression and decompression using the zlib library, which is based on GNU zip.
adler32(string[, start]) – Compute an Adler-32 checksum. compress(string[, level]) – Compress string, with compression level in 0-9. compressobj([level]) – Return a compressor object. crc32(string[, start]) – Compute a CRC-32 checksum. decompress(string,[wbits],[bufsize]) – Decompresses a compressed string. decompressobj([wbits]) – Return a decompressor object.
‘wbits’ is window buffer size and container format. Compressor objects support compress() and flush() methods; decompressor objects support decompress() and flush().
Functions¶
adler32 |
adler32(string[, start]) – Compute an Adler-32 checksum of string. |
compress |
compress(string[, level]) – Returned compressed string. |
compressobj |
compressobj([level]) – Return a compressor object. |
crc32 |
crc32(string[, start]) – Compute a CRC-32 checksum of string. |
decompress |
decompress(string[, wbits[, bufsize]]) – Return decompressed string. |
decompressobj |
decompressobj([wbits]) – Return a decompressor object. |