---
id: lz4
version: "4.4.5"
license: unclear
license_treatment: permissive
maintenance: active
---
# lz4 — LZ4 Bindings for Python
License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI
## Install
pip install lz4
uv add lz4
poetry add lz4
## Description
==========
python-lz4
==========
Status
======
.. image:: https://github.com/python-lz4/python-lz4/actions/workflows/build_dist.yml/badge.svg
:target: https://github.com/python-lz4/python-lz4/actions/workflows/build_dist.yml
:alt: Build Status
.. image:: https://readthedocs.org/projects/python-lz4/badge/?version=stable
:target: https://readthedocs.org/projects/python-lz4/
:alt: Documentation
.. image:: https://codecov.io/gh/python-lz4/python-lz4/branch/codecov/graph/badge.svg
:target: https://codecov.io/gh/python-lz4/python-lz4
:alt: CodeCov
Introduction
============
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...
## AI interpretation — verify before relying
Provides fast LZ4 compression and decompression for Python via bindings to the LZ4 C library, with support for frame and block formats and a standard library-compatible API.
Verdict: Production-ready LZ4 bindings with no known vulnerabilities, active maintenance, and broad Python version support (3.9–3.13). Medium install friction from compiled dependencies is offset by comprehensive pre-built wheels and a permissive BSD license. Suitable for performance-critical compression tasks.
[View on SkillFed](https://skillfed.io/packages/lz4) · [View on PyPI](https://pypi.org/project/lz4/)