Read password protected Zips 100x faster
Project description
fastzipfile
Read Standard Zip Encryption 2.0 encrypted Zips 100x faster with same interface as the CPython standard library's zipfile.ZipFile
.
Installation
pip install fastzipfile
Usage
You just need to import fastzipfile
and that's it. It patches zipfile
with a fast decrypter.
import fastzipfile
import zipfile
with zipfile.ZipFile('path-to-file.zip', mode='r') as fz:
f = fz.open('path-to-file-in-zip', pwd=b'password')
content = f.read()
Limitation
Currently, it only supports what zipfile.ZipFile
supports, e.g., no AES-128 or AES-256 support.
License
This project is licensed under the MIT license. See the LICENSE file for details.
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
fastzipfile-2.3.1.tar.gz
(7.0 kB
view details)
File details
Details for the file fastzipfile-2.3.1.tar.gz
.
File metadata
- Download URL: fastzipfile-2.3.1.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1459ea9007aa72d1526d8d9902b9a285fd228a155bb66edd03bd4030607e792e |
|
MD5 | d0d113530ac3c9d80090d2337489add3 |
|
BLAKE2b-256 | 0d1a2f0f244e8789d97279668713c54a1a0aa04326be869ed9bac262bd5b1a79 |