huff.py
is a compression tool, used compress/decompress files.
This project is an implementation of Huffman encoding and decoding as part of the Huffman Coding Challenge from codingchallenge.fyi. Huffman coding is a lossless data compression algorithm that uses variable-length codes to represent characters based on their frequencies.
- Make sure you have python3 installed (> 3.10)
- To compress a file:
$ ./huff.py compress <input_filepath>
-
This will generate a
input_filepath.huff
file. -
To decompress a file: TODO
Disclaimer: This project is educational, recreational and experimental. Not to be used for production environment.
This project is licensed under the MIT License. See the LICENSE file for details.
Special thanks to patorjk.com for the ASCII art generator.