Rhubarb
Rhubarb

Reputation: 4003

Is there a python wrapper for a FastLZ implementation

Looking to use FastLZ in Python, or something similar. Tried Google and didn't find anything. Wondering if there is another algorithm with similar performance available in Python?

Upvotes: 1

Views: 743

Answers (2)

MRocklin
MRocklin

Reputation: 57301

Blosc exposes FastLZ and several other compressors in Python.

Upvotes: 0

Alex Martelli
Alex Martelli

Reputation: 882481

What about using ctypes to call directly into fastlz.so (or .dll as the case may be)? It seems to have only 3 entry points, so wrapping them in ctypes should not be hard. Yes, SWIG or a custom C API wrapper should be almost as trivial, but ctypes lets you start experimenting right now even if you don't have a compiler (as long as you can get a working DLL/so of FastLZ for your platform)... hard to beat!-)

Upvotes: 4

Related Questions