/python-canonical-huffman-code

A python implementation of a Canonical Huffman code files compressor and decompressor

Primary LanguagePythonMIT LicenseMIT

python-canonical-huffman-code

This implemented a Canonical Huffman code file compressor and decompressor in Python. It has many inefficiencies. I implemented it as a learning exercise. I built it with Python 3.9, but it probably works with many earlier versions of Python 3. It has no requirements!

Usage

# Compress
python huffman.py -i input_file -o output_file
# Decompress
python huffman.py -d -i input_file -o output_file

A Matt Hodges project

This project is maintained by @hodgesmr.

Please use it for good, not evil.