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.

Functions

open(filename[, mode, compresslevel]) Shorthand for GzipFile(filename, mode, compresslevel).
read32(input)
write32u(output, value)

Classes

GzipFile([filename, mode, compresslevel, ...]) The GzipFile class simulates most of the methods of a file object with the exception of the readinto() and truncate() methods.