zipfile
The standard library module for reading, creating and extracting ZIP archives.
In more detail
zipfile.ZipFile("examples.zip").extractall("examples") unpacks an archive, much as unzipping it by hand would. It can also list an archive's contents or add files to a new one.
Related terms
- ZIP file — A single compressed file that bundles many files and folders together, usually ending in .zip.
- standard library — The collection of modules that ships with a programming language, available without installing anything extra.
Taught in
- A Standard Library Tour — Hands-on Python: Complete Video Course & Book