zlib (version 1.0) | index /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload/zlib.so Module Docs |
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.
Compressor objects support compress() and flush() methods; decompressor
objects support decompress() and flush().
Classes | ||||||||
|
Functions | ||
|
Data | ||
DEFLATED = 8 DEF_MEM_LEVEL = 8 MAX_WBITS = 15 ZLIB_VERSION = '1.2.8' 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 __version__ = '1.0' |