huffman
is a script (written in Python 3) which compresses/decompresses
text files using
Huffman's algorithm.
All code from this project is licensed under the GPLv3. See the
LICENSE
file for more information.
The bitarray
module is used. You can install it with the following command:
pip3 install bitarray
Run:
./huffman -c file.txt > file.bin
to compress a file called file.txt
and store the compressed data (in binary
format) into file.bin
. To decompress a compressed file generated with this
script, run:
./huffman -d file.bin > file_original.txt
Diego Assencio / diego@assencio.com