Lines Matching refs:gzip
1 :mod:`gzip` --- Support for :program:`gzip` files
4 .. module:: gzip
5 :synopsis: Interfaces for gzip compression and decompression using file objects.
7 **Source code:** :source:`Lib/gzip.py`
12 like the GNU programs :program:`gzip` and :program:`gunzip` would.
16 The :mod:`gzip` module provides the :class:`GzipFile` class, as well as the
18 The :class:`GzipFile` class reads and writes :program:`gzip`\ -format files,
23 :program:`gzip` and :program:`gunzip` programs, such as those produced by
31 Open a gzip-compressed file in binary or text mode, returning a :term:`file
64 An exception raised for invalid gzip files. It inherits :exc:`OSError`.
65 :exc:`EOFError` and :exc:`zlib.error` can also be raised for invalid gzip
83 included in the :program:`gzip` file header, which may include the original
140 All :program:`gzip` compressed streams are required to contain this
198 import gzip
199 with gzip.open('/home/joe/file.txt.gz', 'rb') as f:
204 import gzip
206 with gzip.open('/home/joe/file.txt.gz', 'wb') as f:
211 import gzip
214 with gzip.open('/home/joe/file.txt.gz', 'wb') as f_out:
219 import gzip
221 s_out = gzip.compress(s_in)
226 The basic data compression module needed to support the :program:`gzip` file
230 .. program:: gzip
235 The :mod:`gzip` module provides a simple command line interface to compress or
238 Once executed the :mod:`gzip` module keeps the input file(s).