:target: https://travis-ci.org/killswitch-GUI/zlib_wrapper
.. image:: https://coveralls.io/repos/github/killswitch-GUI/zlib_wrapper/badge.svg?branch=master :target: https://coveralls.io/github/killswitch-GUI/zlib_wrapper?branch=master
zlib_wrapper
--------
A very small library for building crc32 header on top of zlib (in 2.7 standard library). Was built to learn pip packaging, and implement compression before encryption for EmPyre https://github.com/adaptivethreat/EmPyre.
To get up and running:
>>> from zlib_wrapper import compress
>>> from zlib_wrapper import decompress
zlib_wrapper compression step-by-step
--------
To get you crc32 for supplied data or string:
>>> data = "Killswitc-gui is a sick handle"
>>> c = compress.compress()
>>> start_crc32 = ac.crc32_data(data)
To get your compressed for suplied data or string:
>>> comp_data = a.comp_data(data)
To build your custom zlib header with crc32:
>>> final_comp_data = a.build_header(comp_data, start_crc32)
zlib_wrapper decompression step-by-step
--------
Decompression goes through crc32 checks and returns a custom dictonary object.
To decompress your compressed data:
>>> dec_data = b.dec_data(final_comp_data)
{'data': 'Killswitc-gui is a sick handle', 'header_crc32': 2727504892, 'crc32_check': True, 'dec_crc32': 2727504892}
Metadata
Release files for zlib_wrapper 0.1.3
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 | Actions |
|---|---|---|---|---|
| zlib_wrapper-0.1.3.tar.gz | 3.2 kB | Without provenance | Details for zlib_wrapper-0.1.3.tar.gz |
Release files / zlib_wrapper-0.1.3.tar.gz
| Download URL | zlib_wrapper-0.1.3.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
631a9cedf48376700f9462f34db81c110c624ca24348998f826d1e57ad898864
|
|
BLAKE2b-256 checksum How to use checksums |
8ca9a1bb430ac87e9b06a48e695e500a2de76d962db531c356eb35e42d1f9cd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for zlib_wrapper 0.1.3
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.