Skip to content
/ huff Public

huff.py is a compression tool, used compress/decompress files.

License

Notifications You must be signed in to change notification settings

priyakdey/huff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

huff.py

Overview

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.

Usage

  1. Make sure you have python3 installed (> 3.10)
  2. To compress a file:
$ ./huff.py compress <input_filepath>
  1. This will generate a input_filepath.huff file.

  2. To decompress a file: TODO

Disclaimer: This project is educational, recreational and experimental. Not to be used for production environment.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

Special thanks to patorjk.com for the ASCII art generator.