/huffman

A script which compresses/decompreses text files using Huffman's algorithm.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Functional tests Static code analysis

Description

huffman is a script (written in Python 3) which compresses/decompresses text files using Huffman's algorithm.

License

All code from this project is licensed under the GPLv3. See the LICENSE file for more information.

Required modules

The bitarray module is used. You can install it with the following command:

pip3 install bitarray

Usage instructions

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

Contributors & contact information

Diego Assencio / diego@assencio.com