Skip to main content

zipfile-zstd

PyPI

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

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-zstd 0.0.1
File Size Uploaded
zipfile-zstd-0.0.1.tar.gz 2.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zipfile-zstd 0.0.1
File Interpreter ABI Platform
zipfile_zstd-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / zipfile-zstd-0.0.1.tar.gz

Download URL zipfile-zstd-0.0.1.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a6fb56b39a21c2b357d99775fe9ff1ad6d9f45fef72f5056391fb650bdc3fe5b
BLAKE2b-256 checksum
How to use checksums
68488f8b0f99a20729fa93bd1ea2eba62f8f9850bb09bec2f8c014922fb0d646
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Release files / zipfile_zstd-0.0.1-py3-none-any.whl

Download URL zipfile_zstd-0.0.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c20fae50acd9d656d2b06196570c6fb5ba834c45f52b038356a70cef1744437a
BLAKE2b-256 checksum
How to use checksums
673d2b9f565317446b5f95cd2db4cd2d87c8f61905c2a97ed5c2d88f495b7bb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.7.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

Release history Release notifications | RSS feed

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

This release

0.0.1 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