PyDocs

Data Compression and Archiving

gzip

Functions that read and write gzipped files.

The user of the file doesn't have to worry about the compression,
but random access is not allowed.
Symbols in gzip

b

BadGzipFile
Exception raised in some cases for invalid gzip files.

c

compress
Compress data in one shot and return the compressed string.

d

decompress
Decompress a gzip compressed string in one shot.

g

GzipFile
The GzipFile class simulates most of the methods of a file object with the exception of the truncate() method.

o

open
Open a gzip-compressed file in binary or text mode.