zipfile — Work with ZIP archives — Python 3.16.0a0 documentation

docs.python.org

Tin mới

lzma — Compression using the LZMA algorithm

tarfile — Read and write tar archive files

Python Module Index

3.16.0a0 Documentation

The Python Standard Library

Data Compression and Archiving

zlib: Low-level interface to compression and decompression routines compatible with gzip.

The ZIP file format is a common archive and compression standard. This module provides tools to create, read, write, append, and list a ZIP file. Any advanced use of this module will require an understanding of the forma

bz2: Interfaces for bzip2 compression and decompression.

The ZIP file format is a common archive and compression standard. This module provides tools to create, read, write, append, and list a ZIP file. Any advanced use of this module will require an understanding of the forma

compression.zstd: Low-level interface to compression and decompression routines in the zstd library.

The ZIP file format is a common archive and compression standard. This module provides tools to create, read, write, append, and list a ZIP file. Any advanced use of this module will require an understanding of the forma

Requirements for optional modules

The ZIP file format is a common archive and compression standard. This module provides tools to create, read, write, append, and list a ZIP file. Any advanced use of this module will require an understanding of the forma

importlib.resources.abc.Traversable

Class that implements a subset of the interface provided by pathlib.Path, including the full importlib.resources.abc.Traversable interface.

NotImplementedError

Open a ZIP file, where file can be a path to a file (a string), a file-like object or a path-like object.

io.BufferedIOBase.read

Access a member of the archive as a binary file-like object. name can be either the name of a file within the archive or a ZipInfo object. The mode parameter, if included, must be 'r' (the default) or 'w'. pwd is the pas

container.__iter__

Access a member of the archive as a binary file-like object. name can be either the name of a file within the archive or a ZipInfo object. The mode parameter, if included, must be 'r' (the default) or 'w'. pwd is the pas

universal newlines

Changed in version 3.6: Removed support of mode='U'. Use io.TextIOWrapper for reading compressed text files in universal newlines mode.

os.path.commonpath()