Tutorial by Topics: gzip



This module provides a simple interface to compress and decompress files just like the GNU programs gzip and gunzip would.

The data compression is provided by the zlib module.

The gzip module provides the GzipFile class which is modeled after Python’s File Object. The GzipFile class reads and writes gzip-format files, automatically compressing or decompressing the data so that it looks like an ordinary file object.

The ZipFile class lives in the System.IO.Compression namespace. It can be used to read from, and write to Zip files.


Page 1 of 1