Text of docs.python.org › id › 3 › library › archiving.html as Styx crawled it on Nov 19, 2026. The page may have changed since. Only its words are kept, without pictures or layout.

Open the live page

Kompresi Data dan Pengarsipan — Dokumentasi Python 3.15.2

Navigasi index modul | berikut | sebelum | Python » 3.15.2 documentation » The Python standard library » Kompresi Data dan Pengarsipan | Tema | Kompresi Data dan Pengarsipan ¶ The modules described in this chapter support data compression with the zlib, gzip, bzip2, lzma, and zstd algorithms, and the creation of ZIP- and tar-format archives. See also Archiving operations provided by the shutil module. The compression package compression.zstd --- Compression compatible with the Zstandard format Pengecualian Reading and writing compressed files Compressing and decompressing data in memory Zstandard dictionaries Advanced parameter control Miscellaneous Contoh-contoh 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 Konstanta Contoh-contoh 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 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 The compression package This page Report a bug Improve this page Show source Show translation source « Navigasi index modul | berikut | sebelum | Python » 3.15.2 documentation » The Python standard library » Kompresi Data dan Pengarsipan | Tema | © Hak cipta 2001 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 Nov 19, 2026 (08:48 UTC). Menemukan kekutu ? Dibuat menggunakan Sphinx 9.1.1.