Skip to main content

zipfile-isal

PyPI

Monkey patch the standard zipfile module to enable accelerated deflate support via isal.

Based on zipfile-deflate64 and zipfile-zstandard, which provides similar functionality but for the deflate64 algorithm. Unlike zipfile-deflate64, this package supports both compression and decompression.

Requires isal (and slz optionally).

Note: if you need Python2, use zipfile39 instead (it is also compatible with Python3).

Installation

pip install zipfile-isal

Usage

Anywhere in a Python codebase:

import zipfile_isal  # This has the side effect of patching the zipfile module to support isal

Alternatively, zipfile_isal re-exports the zipfile API, as a convenience:

import zipfile_isal as zipfile

zipfile.ZipFile(...)

Compression example:

import zipfile_isal as zipfile

zf = zipfile.ZipFile('/tmp/test.zip', 'w', zipfile.ZIP_DEFLATED, compresslevel=-12)
zf.write('large_file.img')

compresslevel:

  • -10, -11, -12, -13 correspond to isal 0, 1, 2, 3
  • -21 corresponds to slz
  • 11 to 19 correspond to 7-zip 1-9

Metadata

Release files for zipfile-isal 0.0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zipfile-isal 0.0.3.3
File Size Uploaded Provenance Actions
zipfile-isal-0.0.3.3.tar.gz 4.9 kB Without provenance Details for zipfile-isal-0.0.3.3.tar.gz

Release files / zipfile-isal-0.0.3.3.tar.gz

Download URL zipfile-isal-0.0.3.3.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
58795854fa02e5c6631446773565fc657a4dc92d15f908261240a69ceb8ba533
BLAKE2b-256 checksum
How to use checksums
84f6ee4f85f16bb3d58f54c932d4811d78666f0dc785dd37c4d04a46b766a1bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.15.0 pkginfo/1.7.0 requests/2.25.1 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/2.7.17

Security for zipfile-isal 0.0.3.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

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