JCALG1
A python module to interface with Jeremy Collake's JCALG1 compression algorithm.
Getting started
Installation
Clone the github repo
git clone https://github.com/CallMeAlexO/jcalg1.git
cd jcalg1
Then just install
python setup.py install
Usage
I planned to make JCALG1 as similar as possible to zlib, for consistancy.
There are two functions: compress and decompress.
import jcalg1
text = """
Mary had a little lamb,
Little lamb, little lamb,
Mary had a little lamb
Whose fleece was white as snow.
And everywhere that Mary went,
Mary went, Mary went,
Everywhere that Mary went
The lamb was sure to go.""".encode('utf-8')
compressed = jcalg1.compress(text, level=9, skip_checksum=False)
decompressed = jcalg1.decompress(compressed)
print(decompressed == text)
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
- The algorithm's original author - Jeremy Collake, who gave me permission to share this on github. Thank you Jeremy!
Metadata
Release files for jcalg1 1.0.4
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 |
|---|---|---|---|---|
| jcalg1-1.0.4.tar.gz | 8.1 kB | Without provenance | Details for jcalg1-1.0.4.tar.gz |
Release files / jcalg1-1.0.4.tar.gz
| Download URL | jcalg1-1.0.4.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a8e5d028e3183b059138d358e49499fa847a0735ccb3d06b1d306b76f561c83
|
|
BLAKE2b-256 checksum How to use checksums |
c2669b99d1f20a5e4392ed55a2d65e54fc3b560f54ceb9d32125bde1e437ad59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.0
|
Security for jcalg1 1.0.4
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.