Ziphyr
Ziphyr is an on-the-fly zip archiving applied on a streamed file source, with optional on-the-fly encryption.
Features
- Disclaimer: the zip-native cryptography is unsecure
- Streamed file turned into a streamed zip
- Can be used password-less for a non-encrypted zip stream
- Or with a password to apply on-the-fly zipcrypto to the stream
- Retro-compatibility for py35 with writable ZipInfo port
Install
$ pip install ziphyr
Usage
from ziphyr import Ziphyr
# init the Ziphyr object
z = Ziphyr(b'infected')
# z = Ziphyr() for crypto-less usage
# prepare it for a specific file, from path or metadata directly
z.from_filepath(filepath)
# consume the generator to get the encrypted ziped chunk
for k in z.generator(source):
pass
Test
$ python -m unittest -v tests/*.py
Contributing
Contributions are welcome and are always greatly appreciated. Every little bit helps and credit will always be given. You can contribute in many ways:
- reporting a bug
- submitting feedback
- helping fix bugs
- implementing new features
- writting better documentation
Remember that before submitting a pull request, you should if relevant include tests and update documentation.
Credits and references
zip-related
Underlying works
The following works served as sources of inspiration or examples for implementation.
- devthat/zipencrypt (MIT license)
- Ivan Ergunov's zipfile_generator (MIT license)
Cookiecutter
This package was kickstarted with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
Metadata
Release files for ziphyr 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ziphyr-0.2.0.tar.gz | 13.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ziphyr-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.6 kB
Release files / ziphyr-0.2.0.tar.gz
| Download URL | ziphyr-0.2.0.tar.gz |
|---|---|
| Size | 13.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0195ad3ae18c717a12c9fd447eb31e95368524fb148943f94a68e086b9f8cee8
|
|
BLAKE2b-256 checksum How to use checksums |
938d204597d28f15990c6961126b7a8dcd8a6ef8e8876febf2e0e879bb625161
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
|
Release files / ziphyr-0.2.0-py3-none-any.whl
| Download URL | ziphyr-0.2.0-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45ce49e376f0c6f8c2218d9f17d45c3600dcf8fb4537a4e399f07d692e4af280
|
|
BLAKE2b-256 checksum How to use checksums |
8e68ac7bb71e7c62a539c328cae389e4c56d719e47136bfdcf90a994337291bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
|
Security for ziphyr 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.