Skip to main content

Interface to the JCALG1 compression library

Project description


A python module to interface with Jeremy Collake's JCALG1 compression algorithm.

Getting started


Clone the github repo

git clone
cd jcalg1

Then just install

python install


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)


This project is licensed under the MIT License - see the file for details


  • The algorithm's original author - Jeremy Collake, who gave me permission to share this on github. Thank you Jeremy!

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

jcalg1-1.0.4.tar.gz (8.1 kB view hashes)

Uploaded source

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