Skip to main content

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 zipfile API
  • uses uv for 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.zip
  • uv run zipfile64 -e archive.zip output-dir

Development

Create the virtual environment and install dependencies with uv:

  • uv sync
  • uv sync --group dev for 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)

Source distribution for zipfile64 0.1.0
File Size Uploaded
zipfile64-0.1.0.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zipfile64 0.1.0
File Interpreter ABI Platform
zipfile64-0.1.0-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page