• Home
  • Raw
  • Download

Lines Matching +full:zlib +full:- +full:level

2 :mod:`zlib` --- Compression compatible with :program:`gzip`
5 .. module:: zlib
6 :synopsis: Low-level interface to compression and decompression routines compatible with
11 allow compression and decompression, using the zlib library. The zlib library
12 has its own home page at http://www.zlib.net. There are known
13 incompatibilities between the Python module and versions of the zlib library
17 zlib's functions have many options and often need to be used in a particular
19 consult the zlib manual at http://www.zlib.net/manual.html for authoritative
34 Computes an Adler-32 checksum of *data*. (An Adler-32 checksum is almost as
53 The return value is in the range [-2**31, 2**31-1]
58 The return value is unsigned and in the range [0, 2**32-1]
62 .. function:: compress(string[, level])
65 *level* is an integer from ``0`` to ``9`` controlling the level of compression;
71 .. function:: compressobj([level[, method[, wbits[, memlevel[, strategy]]]]])
74 fit into memory at once. *level* is an integer from
75 ``0`` to ``9`` or ``-1``, controlling
76 the level of compression; ``1`` is fastest and produces the least compression,
78 value is ``-1`` (Z_DEFAULT_COMPRESSION). Z_DEFAULT_COMPRESSION represents a default
79 compromise between speed and compression (currently equivalent to level 6).
89 * +9 to +15: The base-two logarithm of the window size, which
92 resulting output will include a zlib-specific header and trailer.
135 The return value is in the range [-2**31, 2**31-1]
140 The return value is unsigned and in the range [0, 2**32-1]
152 .. _decompress-wbits:
159 * +8 to +15: The base-two logarithm of the window size. The input
160 must include a zlib header and trailer.
162 * 0: Automatically determine the window size from the zlib header.
163 Only supported since zlib 1.2.3.5.
174 the zlib or gzip format.
177 than the size originally used to compress the stream; using a too-small
179 is 15, which corresponds to the largest window size and requires a zlib
195 the same meaning as `described for decompress() <#decompress-wbits>`__.
241 followed by some non-empty string into a decompression object's
250 buffer. This data has not yet been seen by the zlib machinery, so you must feed
263 If the optional parameter *max_length* is non-zero then the return value will be
294 Reading and writing :program:`gzip`\ -format files.
296 http://www.zlib.net
297 The zlib library home page.
299 http://www.zlib.net/manual.html
300 The zlib manual explains the semantics and usage of the library's many