Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A replacement for the builtin zipfile module, with fast, C-based zipfile decryption

Project description

czipfile is a replacement for Python’s builtin “zipfile” module, and provides much faster, C-based zipfile decryption. The code is actually 95% identical to Python 2.6.5’s Lib/zipfile.py, with some very minor modifications to allow it to compile in Cython, and the _ZipDecrypter class adapted to take advantage of native C datatypes.

Many thanks to _habnabit from #python in Freenode for pointing me in the right direction in Cython.

To build:

$ python setup.py build
# python setup.py install

Or, if you use easy_install:

# easy_install czipfile

Or, if you use pip:

# pip install czipfile

Cython is not required to build the extension, though if you want to make any changes you’ll want to edit the .pyx and install Cython rather than trying to edit the generated .c file.

Included in the source distribution is a patch versus Python 2.6.5’s Lib/zipfile.py which can be used to create czipfile.pyx, if you want.

This package might require Python 2.6; I haven’t tested it in earlier Python versions.

I’ve put this release under the Python Software Foundation License, specifically the 2.6.2 version. I believe this to be the most appropriate license for the code, given its lineage, though if I should just use GPLv3 instead, feel free to let me know.

CJ Kucera <pez at apocalyptech dot com>

Project details


Release history Release notifications

This version
History Node

1.0.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
czipfile-1.0.0-py2.6-linux-i686.egg (101.4 kB) Copy SHA256 hash SHA256 Egg 2.6 Jul 28, 2010
czipfile-1.0.0.tar.gz (144.4 kB) Copy SHA256 hash SHA256 Source None Jul 28, 2010
czipfile-1.0.0.win32-py2.6.exe (298.5 kB) Copy SHA256 hash SHA256 Windows Installer 2.6 Jul 28, 2010
czipfile-1.0.0.win32-py2.7.exe (313.1 kB) Copy SHA256 hash SHA256 Windows Installer 2.7 Feb 6, 2012

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page