8000 GitHub - pkorus/pyfse: Python wrappers for the Finite State Entropy coder
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pkorus/pyfse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python FSE

This repository contains a simple Cython wrapper for the finite state entropy codec by Yann Collet based on asymmetric numeral systems by Jarek Duda).

Setup

> git clone https://github.com/pkorus/pyfse
> cd pyfse
> pip3 install cython
> make
> python3 -m unittest -q

Usage

The wrapper implements only the basic compress & decompress functions from the original codec. Both functions operate on bytes objects:

import pyfse
x = bytes([x % 3 for x in range(100)])
y = pyfse.compress(x)
X = pyfse.decompress(y)
x == X

There is also a simple demo script to show a text coding example:

> python3 demo.py

About

Python wrappers for the Finite State Entropy coder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0