Python logo

Topik sebelumnya

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

Topik berikutnya

zlib --- Compression compatible with gzip

This page

  • Report a bug
  • Show source

Navigasi

  • index
  • modul |
  • berikut |
  • sebelum |
  • Python logo
  • Python »
  • 3.13.7 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
      • Reading examples
      • Writing examples
    • Supported tar formats
    • Unicode issues

Topik sebelumnya

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

Topik berikutnya

zlib --- Compression compatible with gzip

This page

  • Report a bug
  • Show source
«

Navigasi

  • index
  • modul |
  • berikut |
  • sebelum |
  • Python logo
  • Python »
  • 3.13.7 Documentation »
  • Pustaka Standar Python »
  • Kompresi Data dan Pengarsipan
  • |
  • |
© Hak cipta 2001-2025, Python Software Foundation.
Halaman ini dilisensikan di bawah Lisensi Python Software Foundation Versi 2.
Contoh, resep, dan kode lainnya dalam dokumentasi juga dilisensikan di bawah Lisensi Zero Clause BSD.
Lihat Sejarah dan Lisensi untuk informasi lebih lanjut.

Python Software Foundation adalah sebuah korporasi nirlaba. Mari berdonasi.

Terakhir diperbarui pada Sep 23, 2025 (07:06 UTC). Menemukan kekutu?
Dibuat menggunakan Sphinx 8.2.3.