### Navigation

- index
- modules |
- next |
- previous |
- Python v2.6.4 documentation »
- The Python Standard Library »

# 13. Data Compression and Archiving

The modules described in this chapter support data compression with the zlib, gzip, and bzip2 algorithms, and the creation of ZIP- and tar-format archives.

- 13.1. `zlib` — Compression compatible with gzip
- 13.2. `gzip` — Support for gzip files
  - 13.2.1. Examples of usage
- 13.3. `bz2` — Compression compatible with bzip2
  - 13.3.1. (De)compression of files
  - 13.3.2. Sequential (de)compression
  - 13.3.3. One-shot (de)compression
- 13.4. `zipfile` — Work with ZIP archives
  - 13.4.1. ZipFile Objects
  - 13.4.2. PyZipFile Objects
  - 13.4.3. ZipInfo Objects
- 13.5. `tarfile` — Read and write tar archive files
  - 13.5.1. TarFile Objects
  - 13.5.2. TarInfo Objects
  - 13.5.3. Examples
  - 13.5.4. Supported tar formats
  - 13.5.5. Unicode issues

### Navigation

- index
- modules |
- next |
- previous |
- Python v2.6.4 documentation »
- The Python Standard Library »