Need help with python-lz4?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

184 Stars 53 Forks Other 1.1K Commits 11 Opened issues


LZ4 bindings for Python

Services available


Need anything else?

Contributors list




.. image:: :target: :alt: Build Status

.. image:: :target: :alt: Build Status Windows

.. image:: :target: :alt: Documentation

.. image:: :target: :alt: CodeCov


This package provides python bindings for the

LZ4 compression library

The bindings provided in this package cover the

frame format
, the `block format <>`, and the
streaming format
_ specifications. The frame format bindings are the recommended ones to use, as this guarantees interoperability with other implementations and language bindings.

The API provided by the frame format bindings follows that of the LZMA, zlib, gzip and bzip2 compression libraries which are provided with the Python standard library. As such, these LZ4 bindings should provide a drop-in alternative to the compression libraries shipped with Python. The package provides context managers and file handler support.

The bindings drop the GIL when calling in to the underlying LZ4 library, and is thread safe. An extensive test suite is included.


.. image:: :target: :alt: Documentation

Full documentation is included with the project. The documentation is generated using Sphinx. Documentation is also hosted on readthedocs.

:master: :development:



project homepage 
_ is hosted on Github. Please report any issues you find using the
issue tracker


Code specific to this project is covered by the

BSD 3-Clause License

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.