Python logo

上個話題

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

下個話題

zlib --- Compression compatible with gzip

This page

  • 回報臭蟲
  • 顯示來源碼

導航

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.13.7 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

上個話題

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

下個話題

zlib --- Compression compatible with gzip

This page

  • 回報臭蟲
  • 顯示來源碼
«

導航

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.13.7 Documentation »
  • The Python Standard Library »
  • Data Compression and Archiving
  • |
  • |
© 版權所有 2001-2025, Python Software Foundation.
此頁面採用 Python 軟體基金會授權條款第 2 版。
文件中的範例、應用技巧與其他程式碼額外採用了 Zero Clause BSD 授權條款。
更多訊息請見歷史與授權條款。

Python 軟體基金會是一家非營利法人。 敬請捐贈。

最後更新於 10月 08, 2025 (08:21 UTC)。 發現 bug?
以 Sphinx8.2.3建立。