Lines Matching full:compression
1 :mod:`zlib` --- Compression compatible with :program:`gzip`
5 :synopsis: Low-level interface to compression and decompression routines
10 For applications that require data compression, the functions in this module
11 allow compression and decompression, using the zlib library. The zlib library
29 Exception raised on compression and decompression errors.
50 *level* is an integer from ``0`` to ``9`` or ``-1`` controlling the level of compression;
51 ``1`` (Z_BEST_SPEED) is fastest and produces the least compression, ``9`` (Z_BEST_COMPRESSION)
52 is slowest and produces the most. ``0`` (Z_NO_COMPRESSION) is no compression.
54 compromise between speed and compression (currently equivalent to level 6).
65 better compression at the expense of greater memory usage. The
83 compression type.
87 Returns a compression object, to be used for compressing data streams that won't
90 *level* is the compression level -- an integer from ``0`` to ``9`` or ``-1``.
91 A value of ``1`` (Z_BEST_SPEED) is fastest and produces the least compression,
93 ``0`` (Z_NO_COMPRESSION) is no compression. The default value is ``-1`` (Z_DEFAULT_COMPRESSION).
94 Z_DEFAULT_COMPRESSION represents a default compromise between speed and compression
97 *method* is the compression algorithm. Currently, the only supported value is
105 internal compression state. Valid values range from ``1`` to ``9``.
108 *strategy* is used to tune the compression algorithm. Possible values are
112 *zdict* is a predefined compression dictionary. This is a sequence of bytes
194 The *zdict* parameter specifies a predefined compression dictionary. If
208 Compression objects support the following methods:
234 Returns a copy of the compression object. This can be used to efficiently
239 Added :func:`copy.copy` and :func:`copy.deepcopy` support to compression
249 this remains ``b""`` until the last byte that contains compression data is