| zlib | index /usr/lib/python1.5/lib-dynload/zlibmodule.so |
The functions in this module allow compression and decompression using the zlib library, which is based on GNU zip.
adler32(string) -- Compute an Adler-32 checksum.
adler32(string, start) -- Compute an Adler-32 checksum using a given starting value.
compress(string) -- Compress a string.
compress(string, level) -- Compress a string with the given level of compression (1--9).
compressobj([level]) -- Return a compressor object.
crc32(string) -- Compute a CRC-32 checksum.
crc32(string, start) -- Compute a CRC-32 checksum using a given starting value.
decompress(string,[wbites],[bufsize]) -- Decompresses a compressed string.
decompressobj([wbits]) -- Return a decompressor object (wbits=window buffer size).
Compressor objects support compress() and flush() methods; decompressor
objects support decompress() and flush().
| Classes | |||||||||||
| |||||||||||
| Functions | |||
| |||
| Constants | |||
DEFLATED = 8 DEF_MEM_LEVEL = 8 MAX_WBITS = 15 ZLIB_VERSION = '1.1.3' Z_BEST_COMPRESSION = 9 Z_BEST_SPEED = 1 Z_DEFAULT_COMPRESSION = -1 Z_DEFAULT_STRATEGY = 0 Z_FILTERED = 1 Z_FINISH = 4 Z_FULL_FLUSH = 3 Z_HUFFMAN_ONLY = 2 Z_NO_FLUSH = 0 Z_SYNC_FLUSH = 2 | |||