Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

pasimako/lzw-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lzw-python

A minimalistic LZW implementation in Python 3, compatible with Unix compress program (typically .Z extension).

Usage

$ python3 lzw.py --help
usage: lzw.py [-h] [-d] [-o OUTPUT] INPUT

LZW Compress/Decompress

positional arguments:
  INPUT                 Input file

optional arguments:
  -h, --help            show this help message and exit
  -d, --decompress      Decompress mode
  -o OUTPUT, --output OUTPUT
                        Output file

Test

$ python3 lzw.py -o test/output.txt.Z test/Lorem_Ipsum.txt
$ sudo apt install ncompress
$ compress -d test/output.txt.Z

License

GPL-3.0

About

A minimalistic LZW implementation in Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages