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 which is modeled
18 :program:`gzip`\ -format files, automatically compressing or decompressing the
22 :program:`gzip` and :program:`gunzip` programs, such as those produced by
41 included in the :program:`gzip` file header, which may include the original
58 the stream when compressing. All :program:`gzip` compressed streams are
98 import gzip
99 with gzip.open('file.txt.gz', 'rb') as f:
104 import gzip
106 with gzip.open('file.txt.gz', 'wb') as f:
111 import gzip
113 with open('file.txt', 'rb') as f_in, gzip.open('file.txt.gz', 'wb') as f_out:
120 The basic data compression module needed to support the :program:`gzip` file