Extract Deflate64 ZIP archives with Python's zipfile API.
Likely abandoned. No release or commit for years (last release over 4 years ago).
pip install zipfile-deflate64zipfile-deflate64
Extract Deflate64 ZIP archives with Python's zipfile API.
Installation
pip install zipfile-deflate64
Python 3.6, 3.7, 3.8, 3.9, and 3.10 are supported, with manylinux2014, macOS and Windows wheels published to PyPI.
Usage
Anywhere in a Python codebase:
import zipfile_deflate64 # This has the side effect of patching the zipfile module to support Deflate64
Alternatively, zipfile_deflate64 re-exports the zipfile API, as a convenience:
import zipfile_deflate64 as zipfile
zipfile.ZipFile(...)
...
Design Rationale
The Problem
Recent versions of Microsoft Windows Explorer use Deflate64 compression when creating ZIP files larger than 2GB. With the ubiquity of Windows and the ease of using "Sent to compressed folder", a majority of newly-created large ZIP files use Deflate64 compression.
However, support for Deflate64 in the open-source ecosystem is very poor! Most ZIP libraries have declined to implement Deflate64, citing its proprietary nature.
In the .NET ecosystem, the ZipArchive API supports decompression only.
In Java, the Apache Commons Compress APIs support both compression and decompression.
The 7-Zip project probably provides the best general-purpose support for compressing and decompressing Deflate64, but there are several obstacles to general usability:
- 7-Zip itself is a Windows-only GUI application
- 7-Zip is still issuing new releases, but has declined to implement certain new compression formats, so the mcmilk/7-Zip-zstd fork is notable.