Compression library for short strings
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
english-1.5b
english-1.txt
fivebit.py
ft.py
nederlands-1.5b

README.md

fivebit

  • Fivebit is a Python library for compressing short strings.
  • If only lowercase latin characters are used, it will compress strings by 37.5%, more if a dictionary is used
  • English/Dutch dictionary included, additional ones can be created easily

Fivebit can also be executed from the command line to compress files. Compressed files will be created with the '.5b' extension

CLI Usage:

  • Compress a bunch of textfiles

./fivebit c *.txt

  • Decompress a file

./fivebit e somefile.5b

Module usage:

import fivebit a = fivebit.compress("Your string to be compressed") print(fivebit.decompress(a))