Skip to main content

zipfile-deflate64

PyPI

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:

In the Python ecosystem in particular, there have been several unfulfilled requests ( [1] [2] [3] ) for Deflate64 decompression support.

A Solution

The best hope seems to be the infback9 extension to zlib. This was developed in 2003 by Mark Adler, an original author of zlib, and is kept in the source repository of zlib, but it is not officially supported and contains no build tooling and is not distributed with zlib packages. Additionally, infback9 provides only low-level support for working with Deflate64 bitstreams, with no support for the ZIP archive format (which is out of scope for zlib).

infback9's C-language API is relatively simple, but requires a non-trivial struct and function pointers for initialization and some explicit memory management operations (resizing allocated buffers and proving a Python-friendly malloc) to operate efficiently, so wrapping it with only ctypes seems to be inadequate.

To manage ZIP archive extraction operations, the Python standard library zipfile module provides the essential features and is already ubiquitous in availability and usage. However, zipfile is difficult to extend, as it hardcodes many conditionals for compression formats and does not provide capabilities for easily augmenting or replacing parts of it. Monkey-patching can overcome some of these problems, and the promise of a drop-in, API-compatible patch to a standard library module outweighed the engineering benefits of basing a solution off a more naturally extensible third-party ZIP manipulation package.

Metadata

Release files for zipfile-deflate64 0.2.0

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-deflate64 0.2.0
File Size Uploaded
zipfile-deflate64-0.2.0.tar.gz 62.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for zipfile-deflate64 0.2.0
File
zipfile_deflate64-0.2.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
zipfile_deflate64-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
zipfile_deflate64-0.2.0-cp310-cp310-macosx_10_14_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.14+ x86-64 Details
zipfile_deflate64-0.2.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
zipfile_deflate64-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
zipfile_deflate64-0.2.0-cp39-cp39-macosx_10_14_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.14+ x86-64 Details
zipfile_deflate64-0.2.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
zipfile_deflate64-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
zipfile_deflate64-0.2.0-cp38-cp38-macosx_10_14_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.14+ x86-64 Details
zipfile_deflate64-0.2.0-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
zipfile_deflate64-0.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details
zipfile_deflate64-0.2.0-cp37-cp37m-macosx_10_14_x86_64.whl CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64 Details
zipfile_deflate64-0.2.0-cp36-cp36m-win_amd64.whl CPython 3.6 CPython 3.6 pymalloc Windows x86-64 Details
zipfile_deflate64-0.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64 Details
zipfile_deflate64-0.2.0-cp36-cp36m-macosx_10_14_x86_64.whl CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64 Details

Total release size: 477.9 kB

Release files / zipfile-deflate64-0.2.0.tar.gz

Download URL zipfile-deflate64-0.2.0.tar.gz
Size 62.9 kB
Tags Source
SHA-256 checksum
How to use checksums
875a3299de102edf1c17f8cafcc528b1ca80b62dc4814b9cb56867ec59fbfd18
BLAKE2b-256 checksum
How to use checksums
031bf397f821b48156ee94c5ca7ad82dc5cdb73cbcbc4377b9c1b21556f3ce8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / zipfile_deflate64-0.2.0-cp310-cp310-win_amd64.whl

Download URL zipfile_deflate64-0.2.0-cp310-cp310-win_amd64.whl
Size 20.2 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
f868343cd24bd3c66fbcba9316c6a970f934653bf3d0be89f25fa0335a7ea3ff
BLAKE2b-256 checksum
How to use checksums
247cd6cfafa8a4d33936b666c897a981c49f264864d1941d8fa7f1da516cfa41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / zipfile_deflate64-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL zipfile_deflate64-0.2.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 43.5 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
b1b4ab8d83bb277983ff273cbf4fcf831023abbc2303f90af9dd4bde3ab4b9c2
BLAKE2b-256 checksum
How to use checksums
ca74849f94131522ddc7961a598b422aaa310ff0beb2f505497c98f0fbe395a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / zipfile_deflate64-0.2.0-cp310-cp310-macosx_10_14_x86_64.whl

Download URL zipfile_deflate64-0.2.0-cp310-cp310-macosx_10_14_x86_64.whl
Size 19.2 kB
Tags CPython 3.10 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
5ed1c3edc08e8da8fe646b23105e2840f305ce2a75360aa0df7523c1263f43aa
BLAKE2b-256 checksum
How to use checksums
a824472f4e44abefbec1c339d31e870df4ed022b01742c385a0a24f77020268e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Release files / zipfile_deflate64-0.2.0-cp39-cp39-win_amd64.whl

Download URL zipfile_deflate64-0.2.0-cp39-cp39-win_amd64.whl
Size 20.2 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
a16cd144c12de642f0ace1aeab7f50e7abc7492c81381faa2b17cc36f38272c4
BLAKE2b-256 checksum
How to use checksums
8355f8bebb043d30278ee673697b0d0a86ae8cd484ecaa55593b2962fb90b6b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / zipfile_deflate64-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL zipfile_deflate64-0.2.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 43.3 kB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
a8557a77c2b6ee8afb49759d9b4c1a9785ca05366cbc4b2c577a859ecba62b85
BLAKE2b-256 checksum
How to use checksums
7c4b3c2cd263028ce48f7299359384e3074aa7779f5cdc6b4d78efd04d6df4ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / zipfile_deflate64-0.2.0-cp39-cp39-macosx_10_14_x86_64.whl

Download URL zipfile_deflate64-0.2.0-cp39-cp39-macosx_10_14_x86_64.whl
Size 19.2 kB
Tags CPython 3.9 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
d6bb582256f374f5a8570616480f07df0d74460b8c80aaa5fb047a73ff38bcd2
BLAKE2b-256 checksum
How to use checksums
5d3a356846f02ed8bf8951912913d6443033deab2cbc3d8fdbca039818e88487
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / zipfile_deflate64-0.2.0-cp38-cp38-win_amd64.whl

Download URL zipfile_deflate64-0.2.0-cp38-cp38-win_amd64.whl
Size 20.2 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
dadfdd07f15c0abf394e0599b06a894120ca6f40ded9720c68b267a4ecf8bf48
BLAKE2b-256 checksum
How to use checksums
3cbe8928696cdf109d7fd4cd35e0c85a4e3713335cfe4399a59387bcc376210e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

Release files / zipfile_deflate64-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL zipfile_deflate64-0.2.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 44.1 kB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
cc673ff44f1e7fa673b34507d04e6e0b750be372e4f33e40a9364858ef22411f
BLAKE2b-256 checksum
How to use checksums
34e31d23a387daad2284c0a4666dae418e72fa893ce02f4b288d696f8d297c96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / zipfile_deflate64-0.2.0-cp38-cp38-macosx_10_14_x86_64.whl

Download URL zipfile_deflate64-0.2.0-cp38-cp38-macosx_10_14_x86_64.whl
Size 19.2 kB
Tags CPython 3.8 macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
f30f7981689dcf06e2789a2adbf3ff0711e58a710780205c2747ec793373fa2e
BLAKE2b-256 checksum
How to use checksums
7c353f06bc09f987964db6d992bd9a7cc32ca06f032c41caf9491924ecbd2fcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / zipfile_deflate64-0.2.0-cp37-cp37m-win_amd64.whl

Download URL zipfile_deflate64-0.2.0-cp37-cp37m-win_amd64.whl
Size 20.2 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
84432465d0c497c774122073b79ec7fa9ebf28cf066cce5f1a5726dad455086f
BLAKE2b-256 checksum
How to use checksums
04ae7cf0754378e982e377dd596371004014c4af9f246ea3090b6f63f903f37e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.9

Release files / zipfile_deflate64-0.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL zipfile_deflate64-0.2.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 43.5 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
6c79e8d3356eb72b9be25bcc36ce3320cbe1f50606f355193d6ad8ead8130fd5
BLAKE2b-256 checksum
How to use checksums
cbff54da34b527fe2d5a4584abac2f4e4838f907d46e849f067c0f2943d7896f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / zipfile_deflate64-0.2.0-cp37-cp37m-macosx_10_14_x86_64.whl

Download URL zipfile_deflate64-0.2.0-cp37-cp37m-macosx_10_14_x86_64.whl
Size 19.1 kB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
3f7b5f3305880a784e335c9fa1bc33a6a3a8436cdbf3e473690f4da0eb866645
BLAKE2b-256 checksum
How to use checksums
797f9209677513f41928af5fe5c584ec5309df015a9b48bda8ae3fc50e0cbeba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

Release files / zipfile_deflate64-0.2.0-cp36-cp36m-win_amd64.whl

Download URL zipfile_deflate64-0.2.0-cp36-cp36m-win_amd64.whl
Size 20.5 kB
Tags CPython 3.6 CPython 3.6 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
5b9e0a0d5d742aa4006ab18d31eabc9a83809be3d27dad34707fa136cafa0950
BLAKE2b-256 checksum
How to use checksums
04a99b2310c40c837a653640505218db3e79af1d897adf949b3b00bdf7d5ff15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8

Release files / zipfile_deflate64-0.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL zipfile_deflate64-0.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 43.7 kB
Tags CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
2096cc9c2a896436ffb27e2cfff60402ca4304b1fbe782265a8c1b2d11dc598a
BLAKE2b-256 checksum
How to use checksums
a1e63f4164fc60d32049e5241e49ffc5b484456fe0183fe0e12a2e5f126dd2df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Release files / zipfile_deflate64-0.2.0-cp36-cp36m-macosx_10_14_x86_64.whl

Download URL zipfile_deflate64-0.2.0-cp36-cp36m-macosx_10_14_x86_64.whl
Size 19.2 kB
Tags CPython 3.6 CPython 3.6 pymalloc macOS 10.14+ x86-64
SHA-256 checksum
How to use checksums
f5313c31e92a8be7e0fed7648b553f041287715d7a28fbfbbadec1dd8e7b773b
BLAKE2b-256 checksum
How to use checksums
da0f62f0e9162fa63682bce3242c364f260776a4e21e66c1f1966ed0d7368fbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.15

Release history Release notifications | RSS feed

This release

0.2.0 This release

16 release files

0.1.6

13 release files

0.1.5

13 release files

0.1.4

13 release files

0.1.3

13 release files

0.1.2

9 release files

0.1.1

5 release files

0.1.0

4 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