zipfile-dclimplode
Monkey patch the standard zipfile module to enable DCL Implode support.
DCL stands for PKWARE(R) Data Compression Library.
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 dclimplode for dclimplode bindings.
Note: if you need Python2, use zipfile39 instead (it is also compatible with Python3).
Installation
pip install zipfile-dclimplode
Usage
Anywhere in a Python codebase:
import zipfile_dclimplode # This has the side effect of patching the zipfile module to support DCL Implode
Alternatively, zipfile_dclimplode re-exports the zipfile API, as a convenience:
import zipfile_dclimplode as zipfile
zipfile.ZipFile(...)
Compression example:
import zipfile_dclimplode as zipfile
zf = zipfile.ZipFile('/tmp/test.zip', 'w', zipfile.ZIP_DCLIMPLODED, compresslevel=3)
zf.write('large_file.img')
compresslevel: 1,2,3 (binary) 11,12,13 (ascii)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file zipfile-dclimplode-0.0.3.1.tar.gz.
File metadata
- Download URL: zipfile-dclimplode-0.0.3.1.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06c853c973a6631e95d779045e1b4d11eb61cb11fdb02f5882bc2f50fa84866c
|
|
| MD5 |
f8adb0bfcb71281721bfb13b40701d10
|
|
| BLAKE2b-256 |
5502c55b601aadc69c562bb34ea1bf1cf7500fa9f45ec43227c912766e31c4c3
|