Interface to the JCALG1 compression library
Project description
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jcalg1-1.0.4.tar.gz
(8.1 kB
view details)
File details
Details for the file jcalg1-1.0.4.tar.gz.
File metadata
- Download URL: jcalg1-1.0.4.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a8e5d028e3183b059138d358e49499fa847a0735ccb3d06b1d306b76f561c83
|
|
| MD5 |
816a2c2a03b34c211f42c5c18b2a4943
|
|
| BLAKE2b-256 |
c2669b99d1f20a5e4392ed55a2d65e54fc3b560f54ceb9d32125bde1e437ad59
|