On this page
article
zipfile — ZIP Archives
Read and write zip files.
Overview
Read and write zip files.
Quick Example
zipfile.ZipFile('a.zip', 'w')
When to Use
Use this module when you need built-in support without adding third-party dependencies.
Common Tasks
- Read the official docs: docs.python.org/3/library/zipfile.html
- Combine with related modules in the Cookbook
- Prefer stdlib before reaching for PyPI packages