This is a python project that can compress files using Huffman Algorithm
To use this project, follow these steps:
-
Copy your file in the project folder:
-
Change the filename in
encode.py:
input_filepath = "yourfilename.example"
-
Run the
encode.pyfile this will create the.compressed(compressed version of your file) file you desire -
to decode the
.compressedfile change the compressed filename and output filename indecode.py:
output_filepath = "output.example"
input_filepath = "compressedfile.example" + '.compressed'
- Run the
decode.pyfile this will decompress the.compressedfile and give you the original file that is usable