Skip to main content

LZ4 Bindings for Python

Project description


Build Status Build Status Windows Documentation CodeCov


This package provides python bindings for the LZ4 compression library.

The production ready 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.

Experimental bindings for the the streaming format specification are also included, but further work on those is required.

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

Release history Release notifications | RSS feed

Download files

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

Source Distribution

lz4-4.0.1.tar.gz (164.3 kB view hashes)

Uploaded source

Built Distributions

lz4-4.0.1-cp310-cp310-win_amd64.whl (98.9 kB view hashes)

Uploaded cp310

lz4-4.0.1-cp310-cp310-win32.whl (86.4 kB view hashes)

Uploaded cp310

lz4-4.0.1-cp310-cp310-macosx_10_9_x86_64.whl (90.5 kB view hashes)

Uploaded cp310

lz4-4.0.1-cp39-cp39-win_amd64.whl (98.9 kB view hashes)

Uploaded cp39

lz4-4.0.1-cp39-cp39-win32.whl (86.4 kB view hashes)

Uploaded cp39

lz4-4.0.1-cp39-cp39-macosx_10_9_x86_64.whl (90.5 kB view hashes)

Uploaded cp39

lz4-4.0.1-cp38-cp38-win_amd64.whl (98.9 kB view hashes)

Uploaded cp38

lz4-4.0.1-cp38-cp38-win32.whl (86.4 kB view hashes)

Uploaded cp38

lz4-4.0.1-cp38-cp38-macosx_10_9_x86_64.whl (90.5 kB view hashes)

Uploaded cp38

lz4-4.0.1-cp37-cp37m-win_amd64.whl (98.9 kB view hashes)

Uploaded cp37

lz4-4.0.1-cp37-cp37m-win32.whl (86.4 kB view hashes)

Uploaded cp37

lz4-4.0.1-cp37-cp37m-macosx_10_9_x86_64.whl (90.2 kB view hashes)

Uploaded cp37

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page