Python logo

Subiectul precedent

sqlite3 — DB-API 2.0 interface for SQLite databases

Subiectul următor

zlib — Compression compatible with gzip

This page

  • Report a bug
  • Show source

Navigație

  • index
  • module |
  • următor |
  • precedent |
  • Python logo
  • Python »
  • 3.13.11 Documentation »
  • The Python Standard Library »
  • Data Compression and Archiving
  • |
  • |

Data Compression and Archiving¶

The modules described in this chapter support data compression with the zlib, gzip, bzip2 and lzma algorithms, and the creation of ZIP- and tar-format archives. See also Archiving operations provided by the shutil module.

  • zlib — Compression compatible with gzip
  • gzip — Support for gzip files
    • Examples of usage
    • Command-line interface
      • Command-line options
  • bz2 — Support for bzip2 compression
    • (De)compression of files
    • Incremental (de)compression
    • One-shot (de)compression
    • Examples of usage
  • lzma — Compression using the LZMA algorithm
    • Reading and writing compressed files
    • Compressing and decompressing data in memory
    • Miscellaneous
    • Specifying custom filter chains
    • Examples
  • zipfile — Work with ZIP archives
    • ZipFile objects
    • Path objects
    • PyZipFile objects
    • ZipInfo objects
    • Command-line interface
      • Command-line options
    • Decompression pitfalls
      • From file itself
      • File system limitations
      • Resources limitations
      • Interruption
      • Default behaviors of extraction
  • tarfile — Read and write tar archive files
    • TarFile Objects
    • TarInfo Objects
    • Extraction filters
      • Default named filters
      • Filter errors
      • Hints for further verification
      • Supporting older Python versions
      • Stateful extraction filter example
    • Command-Line Interface
      • Command-line options
    • Examples
      • Reading examples
      • Writing examples
    • Supported tar formats
    • Unicode issues

Subiectul precedent

sqlite3 — DB-API 2.0 interface for SQLite databases

Subiectul următor

zlib — Compression compatible with gzip

This page

  • Report a bug
  • Show source
«

Navigație

  • index
  • module |
  • următor |
  • precedent |
  • Python logo
  • Python »
  • 3.13.11 Documentation »
  • The Python Standard Library »
  • Data Compression and Archiving
  • |
  • |
© Drepturi de autor 2001-2025, Python Software Foundation.
Pagina de față este licențiată cu Versiunea 2 a Python Software Foundation License (Licența fundației Python dedicată software-ului).
Exemplele, rețetele și alte fragmente de cod din documentație sunt licențiate suplimentar cu Zero Clause BSD License (Licența de clauză zero a BSD-ului).
Vedeți Istoric și licență pentru mai multe informații.

Python Software Foundation (PSF, Fundația Python dedicată software-ului) este o corporație non-profit. Vă rugăm să donați.

Ultima modificare în dec. 09, 2025 (08:24 UTC). Ați găsit o greșeală?
Creat cu Sphinx 9.0.4.