zipfile64
Adds Deflate64 support to Python's standard zipfile module.
Features
- reads ZIP archives that use compression method
9(Deflate64) - writes ZIP archives with Deflate64 when requested
- keeps the standard
zipfileAPI - uses
uvfor dependency and virtualenv management
Getting started
Example using pip:
pip install zipfile64
Usage
# Importing zipfile64.zipfile will patch the built-in zipfile module
import zipfile64.zipfile as zipfile
with zipfile.ZipFile("archive.zip") as zf:
print(zf.namelist())
data = zf.read("example.txt")
Writing a Deflate64 archive:
import io
import zipfile
from zipfile64 import ZIP_DEFLATE64, patch
patch()
buffer = io.BytesIO()
with zipfile.ZipFile(buffer, mode="w", compression=ZIP_DEFLATE64) as zf:
zf.writestr("hello.txt", b"hello world")
You can also use the patched python zipfile CLI:
uv run zipfile64 -l archive.zipuv run zipfile64 -e archive.zip output-dir
Development
Create the virtual environment and install dependencies with uv:
uv syncuv sync --group devfor test dependencies
uv will create the local virtual environment for the project.
uv run pytest
Limitations
- patching is process-wide because it extends the standard-library module
- Deflate64 compression level is currently ignored by the backend library
Metadata
Release files for zipfile64 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zipfile64-0.1.0.tar.gz | 2.7 kB | With provenance | Details for zipfile64-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zipfile64-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for zipfile64-0.1.0-py3-none-any.whl |
Total release size: 6.6 kB
Release files / zipfile64-0.1.0.tar.gz
| Download URL | zipfile64-0.1.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
313e3f9be3e87e3ecad1f9bb0e69976835e118f494be48f71853875255104644
|
|
BLAKE2b-256 checksum How to use checksums |
673607073ce5698ddc5f26cef0af8aa0a5135563333f1c6cdede406a1e68bfd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 13, 2026.
Transparency logRelease files / zipfile64-0.1.0-py3-none-any.whl
| Download URL | zipfile64-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79b262a44cadfe884f548e5ff2a3f099a0d03a132e59fda086dd78127765a280
|
|
BLAKE2b-256 checksum How to use checksums |
690c81b7281dd52cf349e2e97720ae1ec3706c09c246981b294a75855728e484
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 13, 2026.
Transparency logSecurity for zipfile64 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for zipfile64-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.