Skip to main content

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


Download files

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

Source Distribution

czipfile-1.0.0.tar.gz (144.4 kB view details)

Uploaded Source

Built Distributions

czipfile-1.0.0.win32-py2.7.exe (313.1 kB view details)

Uploaded Source

czipfile-1.0.0.win32-py2.6.exe (298.5 kB view details)

Uploaded Source

czipfile-1.0.0-py2.6-linux-i686.egg (101.4 kB view details)

Uploaded Source

File details

Details for the file czipfile-1.0.0.tar.gz.

File metadata

  • Download URL: czipfile-1.0.0.tar.gz
  • Upload date:
  • Size: 144.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for czipfile-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1b6f94fabab92eb8e0ca1c7e3fa52c0f20895c05101ca954dd43d60cff84bb0a
MD5 c1dd2af2ade7e216214c35a5301910b8
BLAKE2b-256 9e2a0747031209b35d2c4fca119e7af90e4512fb2ea487c171eb730ba7877932

See more details on using hashes here.

File details

Details for the file czipfile-1.0.0.win32-py2.7.exe.

File metadata

File hashes

Hashes for czipfile-1.0.0.win32-py2.7.exe
Algorithm Hash digest
SHA256 7e60f54fc62ad9a9d067b351b2923833ea331a63812ed88cb88e0a81522152d0
MD5 8c54be5e15c83daf0b4cd44fcb4e6285
BLAKE2b-256 5811feffabbfb7db8f69dd4ae42fa69671479cfe30e5a9d550d14b56529bc2b6

See more details on using hashes here.

File details

Details for the file czipfile-1.0.0.win32-py2.6.exe.

File metadata

File hashes

Hashes for czipfile-1.0.0.win32-py2.6.exe
Algorithm Hash digest
SHA256 2f3c972b19dee61d35327c4fbcfb485b0dac0a02f09142550c75c07571c85f25
MD5 5b604b2b59a8934bdcff196e1f49ac63
BLAKE2b-256 a333a4ee43911e4255c2336efbadac04981581a60d5e309635d929968eb1c0d4

See more details on using hashes here.

File details

Details for the file czipfile-1.0.0-py2.6-linux-i686.egg.

File metadata

File hashes

Hashes for czipfile-1.0.0-py2.6-linux-i686.egg
Algorithm Hash digest
SHA256 4a7f0dac2dd4dc4b0730dec482c061b4e0c8481f23e080a5aa53fa1f065dd8fb
MD5 df6a77f79415cd9e0141bb34dcf58252
BLAKE2b-256 76ef74d0655a138b678f8776f47dfa684e42372f62588fa2c49da66d330a8732

See more details on using hashes here.

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