A fork of python-lzf with pre-built wheel files.
Project Links
Meta
Author: Fledge Shiu
Requires Python: >=3.7
Classifiers
Development Status
- 5 - Production/Stable
Intended Audience
- Developers
Natural Language
- English
Operating System
- OS Independent
Programming Language
- Python :: 3
- Python :: 3.7
- Python :: 3.8
- Python :: 3.9
- Python :: 3.10
- Python :: 3.11
- Python :: 3.12
- Python :: 3.13
- Python :: 3.14
- C
Topic
- System :: Archiving :: Compression
python-lzf: liblzf Python bindings
This package is a direct translation of the C API of liblzf into Python.
It provides two core functions: compress() and decompress().
- compress(data: bytes, max_length: Optional[int] = None) -> Optional[bytes]
Compresses the given input bytes. Optionally, a maximum length for the output
may be specified. If the data cannot be compressed to fit within the specified
size, the function returns None. If no size is given, the default is one less
than the length of the input, so the caller must always be prepared to handle
a return value of None.
- decompress(data: bytes, expected_size: int) -> Optional[bytes]
Decompresses the given input bytes and attempts to fit the result into the
specified uncompressed size. If the result does not fit, the function returns None.
This module is intended as a low-level binding for applications that need fast
compression and decompression for small blocks of data.
Special thanks to teepark for years of selfless maintenance and support of this project.
This package is a direct translation of the C API of liblzf into Python.
It provides two core functions: compress() and decompress().
- compress(data: bytes, max_length: Optional[int] = None) -> Optional[bytes]
Compresses the given input bytes. Optionally, a maximum length for the output
may be specified. If the data cannot be compressed to fit within the specified
size, the function returns None. If no size is given, the default is one less
than the length of the input, so the caller must always be prepared to handle
a return value of None.
- decompress(data: bytes, expected_size: int) -> Optional[bytes]
Decompresses the given input bytes and attempts to fit the result into the
specified uncompressed size. If the result does not fit, the function returns None.
This module is intended as a low-level binding for applications that need fast
compression and decompression for small blocks of data.
Special thanks to teepark for years of selfless maintenance and support of this project.
0.3.5
Dec 25, 2025
0.3.4
Dec 25, 2025
0.3.3
Dec 25, 2025
0.3.2
Oct 07, 2025
0.3.1
Jun 20, 2025
0.3.0
Jun 20, 2025
Wheel compatibility matrix
Files in release
python_neo_lzf-0.3.5-cp310-cp310-macosx_10_9_universal2.whl (11.2KiB)
python_neo_lzf-0.3.5-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (19.4KiB)
python_neo_lzf-0.3.5-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (20.7KiB)
python_neo_lzf-0.3.5-cp310-cp310-musllinux_1_2_aarch64.whl (19.7KiB)
python_neo_lzf-0.3.5-cp310-cp310-musllinux_1_2_x86_64.whl (19.4KiB)
python_neo_lzf-0.3.5-cp310-cp310-win32.whl (9.7KiB)
python_neo_lzf-0.3.5-cp310-cp310-win_amd64.whl (10.3KiB)
python_neo_lzf-0.3.5-cp311-cp311-macosx_10_9_universal2.whl (11.2KiB)
python_neo_lzf-0.3.5-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (19.5KiB)
python_neo_lzf-0.3.5-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (20.7KiB)
python_neo_lzf-0.3.5-cp311-cp311-musllinux_1_2_aarch64.whl (19.8KiB)
python_neo_lzf-0.3.5-cp311-cp311-musllinux_1_2_x86_64.whl (19.4KiB)
python_neo_lzf-0.3.5-cp311-cp311-win32.whl (9.7KiB)
python_neo_lzf-0.3.5-cp311-cp311-win_amd64.whl (10.3KiB)
python_neo_lzf-0.3.5-cp312-cp312-macosx_10_13_universal2.whl (11.2KiB)
python_neo_lzf-0.3.5-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (19.7KiB)
python_neo_lzf-0.3.5-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (20.9KiB)
python_neo_lzf-0.3.5-cp312-cp312-musllinux_1_2_aarch64.whl (20.0KiB)
python_neo_lzf-0.3.5-cp312-cp312-musllinux_1_2_x86_64.whl (19.7KiB)
python_neo_lzf-0.3.5-cp312-cp312-win32.whl (9.7KiB)
python_neo_lzf-0.3.5-cp312-cp312-win_amd64.whl (10.3KiB)
python_neo_lzf-0.3.5-cp313-cp313-macosx_10_13_universal2.whl (11.2KiB)
python_neo_lzf-0.3.5-cp313-cp313-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (19.8KiB)
python_neo_lzf-0.3.5-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (20.9KiB)
python_neo_lzf-0.3.5-cp313-cp313-musllinux_1_2_aarch64.whl (20.0KiB)
python_neo_lzf-0.3.5-cp313-cp313-musllinux_1_2_x86_64.whl (19.7KiB)
python_neo_lzf-0.3.5-cp313-cp313-win32.whl (9.7KiB)
python_neo_lzf-0.3.5-cp313-cp313-win_amd64.whl (10.3KiB)
python_neo_lzf-0.3.5-cp314-cp314-macosx_10_13_universal2.whl (11.2KiB)
python_neo_lzf-0.3.5-cp314-cp314-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (19.8KiB)
python_neo_lzf-0.3.5-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (21.0KiB)
python_neo_lzf-0.3.5-cp314-cp314-musllinux_1_2_aarch64.whl (20.0KiB)
python_neo_lzf-0.3.5-cp314-cp314-musllinux_1_2_x86_64.whl (19.7KiB)
python_neo_lzf-0.3.5-cp314-cp314-win32.whl (9.9KiB)
python_neo_lzf-0.3.5-cp314-cp314-win_amd64.whl (10.5KiB)
python_neo_lzf-0.3.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (19.9KiB)
python_neo_lzf-0.3.5-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (18.7KiB)
python_neo_lzf-0.3.5-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.4KiB)
python_neo_lzf-0.3.5-cp37-cp37m-musllinux_1_2_aarch64.whl (19.1KiB)
python_neo_lzf-0.3.5-cp37-cp37m-musllinux_1_2_i686.whl (18.6KiB)
python_neo_lzf-0.3.5-cp37-cp37m-musllinux_1_2_x86_64.whl (18.8KiB)
python_neo_lzf-0.3.5-cp37-cp37m-win32.whl (9.6KiB)
python_neo_lzf-0.3.5-cp37-cp37m-win_amd64.whl (10.2KiB)
python_neo_lzf-0.3.5-cp38-cp38-macosx_10_9_universal2.whl (10.9KiB)
python_neo_lzf-0.3.5-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (19.5KiB)
python_neo_lzf-0.3.5-cp38-cp38-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (20.7KiB)
python_neo_lzf-0.3.5-cp38-cp38-musllinux_1_2_aarch64.whl (19.3KiB)
python_neo_lzf-0.3.5-cp38-cp38-musllinux_1_2_x86_64.whl (18.9KiB)
python_neo_lzf-0.3.5-cp38-cp38-win32.whl (9.6KiB)
python_neo_lzf-0.3.5-cp38-cp38-win_amd64.whl (10.2KiB)
python_neo_lzf-0.3.5-cp39-cp39-macosx_10_9_universal2.whl (11.2KiB)
python_neo_lzf-0.3.5-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (19.3KiB)
python_neo_lzf-0.3.5-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl (20.5KiB)
python_neo_lzf-0.3.5-cp39-cp39-musllinux_1_2_aarch64.whl (19.6KiB)
python_neo_lzf-0.3.5-cp39-cp39-musllinux_1_2_x86_64.whl (19.2KiB)
python_neo_lzf-0.3.5-cp39-cp39-win32.whl (9.7KiB)
python_neo_lzf-0.3.5-cp39-cp39-win_amd64.whl (10.3KiB)
python_neo_lzf-0.3.5.tar.gz (10.5KiB)
No dependencies