PyDocs

Data Compression and Archiving

zipfile

Read and write ZIP files.

XXX references to utf-8 need further investigation.
Symbols in zipfile

b

BadZipfile
Alias of BadZipFile, for compatibility with older Python versions.
BadZipFile
The error raised for bad ZIP files.

i

is_zipfile
Quickly see if a file is a ZIP file by checking the magic number.

l

LargeZipFile
Raised when writing a zipfile, the zipfile requires ZIP64 extensions and those extensions are disabled.

p

Path
A :class:`importlib.resources.abc.Traversable` interface for zip files.
PyZipFile
Class to create ZIP archives with Python library files and packages.

z

ZIP_BZIP2
The numeric constant for the BZIP2 compression method.
ZIP_DEFLATED
The numeric constant for the usual ZIP compression method.
ZIP_LZMA
The numeric constant for the LZMA compression method.
ZIP_STORED
The numeric constant for an uncompressed archive member.
ZIP_ZSTANDARD
The numeric constant for Zstandard compression.
ZipFile
Class with methods to open, read, write, close, list zip files.
ZipInfo
Class with attributes describing each file in the ZIP archive.