zipfile-zstd
Monkey patch the standard zipfile module to enable Zstandard support.
Based on zipfile-deflate64, which provides similar functionality but for the deflate64 algorithm. Unlike zipfile-deflate64, this package supports both compression and decompression.
Requires python-zstandard for libzstd bindings.
Installation
pip install zipfile-zstd
Usage
Anywhere in a Python codebase:
import zipfile_zstd # This has the side effect of patching the zipfile module to support Zstandard
Alternatively, zipfile_zstd re-exports the zipfile API, as a convenience:
import zipfile_zstd as zipfile
zipfile.ZipFile(...)
Compression example:
import zipfile_zstd as zipfile
zf = zipfile.ZipFile('/tmp/test.zip', 'w', zipfile.ZIP_ZSTANDARD, compresslevel=19)
zf.write('large_file.img')
Dictionaries and advanced compression parameters are not supported, sorry.
Metadata
Release files for zipfile-zstd 0.0.4
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 |
|---|---|---|---|---|
| zipfile-zstd-0.0.4.tar.gz | 4.6 kB | Without provenance | Details for zipfile-zstd-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zipfile_zstd-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for zipfile_zstd-0.0.4-py3-none-any.whl |
Total release size: 8.7 kB
Release files / zipfile-zstd-0.0.4.tar.gz
| Download URL | zipfile-zstd-0.0.4.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1498e15b7922a3d1af0ea55df8b11b2af4e8f7e0e80e414e25d66899f7def89
|
|
BLAKE2b-256 checksum How to use checksums |
f72a2e0941bc0058d10ab37d8c578b94a19f611f6ae54f124140f2fb451f0932
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.12
|
Release files / zipfile_zstd-0.0.4-py3-none-any.whl
| Download URL | zipfile_zstd-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8e07be35765c072eb7b1be715c89ecb248a1127b014e12a9b8ac7db2600c166
|
|
BLAKE2b-256 checksum How to use checksums |
b13abc3011d26bbb490741f58c28a2df559445c59e8524cbbb71ecf33db23bb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.12
|
Security for zipfile-zstd 0.0.4
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.