Skip to main content

Monkey patch the standard zipfile module to enable DCL Implode support

Project description



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


pip install zipfile-dclimplode


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


Compression example:

import zipfile_dclimplode as zipfile

zf = zipfile.ZipFile('/tmp/', 'w', zipfile.ZIP_DCLIMPLODED, compresslevel=3)

compresslevel: 1,2,3 (binary) 11,12,13 (ascii)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zipfile-dclimplode- (4.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page