Python-LZO -- Python bindings for LZO Copyright (c) 1996-2002 Markus F.X.J. Oberhumer <email@example.com> http://www.oberhumer.com/opensource/lzo/ Copyright (c) 2011-2016 Joshua D. Boyd <firstname.lastname@example.org> https://github.com/jd-boyd/python-lzo
What is LZO ?
LZO is a portable lossless data compression library written in ANSI C. It offers pretty fast compression and very fast decompression. Decompression requires no memory.
In addition there are slower compression levels achieving a quite competitive compression ratio while still decompressing at this very high speed.
What is Python-LZO ?
Python-LZO provides Python bindings for LZO, i.e. you can access the LZO library from your Python scripts thereby compressing ordinary Python strings.
You need the following dependencies installed:
pip install python-lzo.
These directions are probably the same as debian. The requirements are similar for Redhat/centos/etc, but the specific package names differ.
You need XCode installed, or something else that provides suitable C compiler. Then just:
pip install python-lzo
There is an issue filed to provide a pre-compiled wheel to greatly simplify this.
Until then, here we go:
- Download http://www.oberhumer.com/opensource/lzo/download/lzo-2.09.tar.gz
- extract that file to
- Install a visual studio compatible with your python build. If you are using python 2.7, MS has a package just for you at: https://www.microsoft.com/en-us/download/details.aspx?id=44266 Current automated tests are done with Visual Studio 2013, but newer should work as well.
python.exe setup.py install
Where's the documentation ?
Python-LZO comes with built-in documentation which is accessible
lzo.func__doc__. See "Chapter 3: Data Model"
in the Python Reference Manual for more information.
Additionally you should read the docs and study the example programs that ship with the LZO library. Really.
The Windows version is tested.
It is not currently tested on OSX, but that is coming.
The LZO and Python-LZO algorithms and implementations are Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 Markus Franz Xaver Johannes Oberhumer email@example.com
The Python-LZO algorithms implementated post 2011 are Copyright (C) 2011, 2014, 2015, 2016, 2017, 2018 Joshua D. Boyd firstname.lastname@example.org
The LZO and Python-LZO algorithms and implementations are distributed under the terms of the GNU General Public License (GPL). See the file COPYING.