Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

LZ4 Bindings for Python

Project description


Build Status Build Status Windows Documentation


This package provides python bindings for the LZ4 compression library.

The bindings provided in this package cover the frame format and the block 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.



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



The 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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
lz4-2.0.0-cp27-cp27m-win32.whl (141.8 kB) Copy SHA256 hash SHA256 Wheel cp27
lz4-2.0.0-cp27-cp27m-win_amd64.whl (147.7 kB) Copy SHA256 hash SHA256 Wheel cp27
lz4-2.0.0-cp34-cp34m-win32.whl (141.1 kB) Copy SHA256 hash SHA256 Wheel cp34
lz4-2.0.0-cp34-cp34m-win_amd64.whl (147.7 kB) Copy SHA256 hash SHA256 Wheel cp34
lz4-2.0.0-cp35-cp35m-win32.whl (100.0 kB) Copy SHA256 hash SHA256 Wheel cp35
lz4-2.0.0-cp35-cp35m-win_amd64.whl (110.9 kB) Copy SHA256 hash SHA256 Wheel cp35
lz4-2.0.0-cp36-cp36m-win32.whl (100.1 kB) Copy SHA256 hash SHA256 Wheel cp36
lz4-2.0.0-cp36-cp36m-win_amd64.whl (111.0 kB) Copy SHA256 hash SHA256 Wheel cp36
lz4-2.0.0.tar.gz (125.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page