项目作者: tyler-thetyrant

项目描述 :
Lossless compression using Run-Length
高级语言: Python
项目地址: git://github.com/tyler-thetyrant/ASCII_Encoder.git
创建时间: 2018-02-05T04:45:16Z
项目社区:https://github.com/tyler-thetyrant/ASCII_Encoder

开源协议:Do What The F*ck You Want To Public License

下载


ASCII Art Encoder/Decoder

Requirement

  • Python 3

Running

Encoding

  1. python convert.py --encode data.txt

Decoding

  1. python convert.py --decode encoded_data.txt

Result

  1. 5.4K Sep 15 2016 data.txt
  2. 2.3K Feb 2 01:18 encoded_data.txt
  3. 5.4K Feb 2 01:18 decoded_data.txt

42.6% of the original size.

Running tests

  1. python test.py

or you can run both encode and decode, then run the following command:

  1. diff data.txt decoded_data.txt