Python logo

Topik sebelumnya

sqlite3 --- DB-API 2.0 interface for SQLite databases

Topik berikutnya

zlib --- Compression compatible with gzip

Halaman Ini

  • Report a Bug
  • Lihat Sumber

Navigasi

  • index
  • modul |
  • berikut |
  • sebelum |
  • Python logo
  • Python »
  • 3.11.14 Documentation »
  • Pustaka Standar Python »
  • Kompresi Data dan Pengarsipan
  • |
  • |

Kompresi Data dan Pengarsipan¶

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
    • Contoh-contoh
  • zipfile --- Work with ZIP archives
    • Objek ZipFile
    • Objek Jalur, Path
    • Objek PyZipFile
    • Objek ZipInfo
    • Command-Line Interface
      • Command-line options
    • Decompression pitfalls
      • From file itself
      • File System limitations
      • Resources limitations
      • Interupsi
      • Default behaviors of extraction
  • tarfile --- Read and write tar archive files
    • Objek TarFile
    • Objek TarInfo
    • 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
    • Contoh-contoh
    • Supported tar formats
    • Unicode issues

Topik sebelumnya

sqlite3 --- DB-API 2.0 interface for SQLite databases

Topik berikutnya

zlib --- Compression compatible with gzip

Halaman Ini

  • Report a Bug
  • Lihat Sumber
«

Navigasi

  • index
  • modul |
  • berikut |
  • sebelum |
  • Python logo
  • Python »
  • 3.11.14 Documentation »
  • Pustaka Standar Python »
  • Kompresi Data dan Pengarsipan
  • |
  • |
© Hak Cipta 2001-2025, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

Terakhir diperbarui pada Oct 10, 2025 (17:38 UTC). Found a bug?
Created using Sphinx 7.2.6.