Skip to content

DerHirschi/lzhuf.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

LZHUF.py - A Python implementation of the LZHUF algorithm

This project is a Python port of the LZHUF compression algorithm, originally written in C and available at ARSFI/Winlink-Compression. The algorithm combines LZSS compression with Huffman coding and has been adapted and optimized with support from Grok 3-beta (xAI).

Features

  • Compression: Encoding input data (text, binary data) into a compressed format.
  • Decompression: Reverting to the original data.
  • Robustness: Contains protection mechanisms such as maximum iteration limits and buffer checks.
  • Application areas: Retro-computing, ASCII art compression, or experimental data processing.

Installation

Since it's a single Python file, no additional dependencies are required. Simply download the lzhuf.py file and copy it to your project directory.

Requirements

  • Python 3.x (tested with Python 3.8+)

About

A Python implementation of the LZHUF compression algorithm, ported from the C version at ARSFI/Winlink-Compression. Supports encoding and decoding data using a binary search tree and Huffman coding. Ideal for retro computing, ASCII art compression, or experimental projects.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages