Skip to main content

On-the-fly zipcrypto applied on streamed file source.

Project description

Ziphyr

GitHub GitHub Workflow Status (branch) PyPI PyPI - Python Version

Ziphyr is an on-the-fly zipcrypto archiving applied on a streamed file source.

Features

  • Streamed file turned into a streamed zip
  • zipcrypto applied on-the-fly on 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')

   # 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.

Cookiecutter

This package was kickstarted with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

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

ziphyr-0.1.0.tar.gz (13.4 kB view hashes)

Uploaded Source

Built Distribution

ziphyr-0.1.0-py3-none-any.whl (11.8 kB view hashes)

Uploaded Python 3

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