apple-compress
Python bindings for Apple's libcompression.
What it is and what it does
apple-compress wraps Apple's native libcompression library for use in Python, exposing both a library API and a command-line tool. It supports multiple compression formats including LZFSE (Apple's proprietary algorithm), LZFSE in iBoot-compatible mode, and zlib. The package is built on bindings originally developed for the Asahi Linux project.
The library is intended for developers who need to compress or decompress data using Apple's algorithms, either programmatically or via command line. It runs only on Unix-like systems and requires Python 3.8 or higher. With just two runtime dependencies (click for CLI and loguru for logging), it has minimal footprint.
Use it for:
- Compress firmware or system images using Apple's LZFSE algorithm on macOS or Unix systems.
- Decompress iBoot-compatible LZFSE data in Python scripts for Apple device development workflows.
- Build CLI tools for batch compression/decompression of data using native Apple compression formats.
- Integrate Apple compression into Python-based build or deployment pipelines on Unix systems.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python bindings for Apple's libcompression library, providing both a programmatic API and a CLI tool for compressing and decompressing data using Apple's native compression algorithms.
Yes, if you are on a Unix-like system and need to work with Apple's compression algorithms. The package is actively maintained, has no known vulnerabilities, and low install friction. However, verify the license terms in the repository first, and confirm it meets your OS and Python version requirements (3.8+, Unix-like only).
Install
apple-compress on PyPI
pip
pip install apple-compressuv
uv add apple-compresspoetry
poetry add apple-compressInstalling apple-compress
Before you install
Low install friction with a pure-wheel distribution. Actively maintained as of August 2026, though the package is relatively young (first released December 2023). Depends only on click and loguru, both stable and lightweight.
License in practice
License status is unclear—no SPDX identifier or raw license text is available in the package metadata. Before installing in a commercial or copyleft-sensitive context, verify the actual license terms in the repository.
Quickstart
pip install apple-compress
from apple_compress import compress, decompress
compressed = compress(b'data', algorithm='lzfse')
original = decompress(compressed)
Requires an Apple/Unix-like OS system; will not work on Windows. Requires Python 3.8 or higher.
Verify before relying
- Whether the package works on all Unix-like systems or only macOS specifically.
- Performance characteristics and compression ratio compared to standard zlib or other alternatives.
- Whether the iBoot-compatible LZFSE variant is suitable for general-purpose use or only firmware contexts.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (<4.0,>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — click, loguru |
| Maintenance | actively maintained — 861 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 245,726/month — #8,726 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: apple_compress-0.2.3-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
lzfsePython bindings for the LZFSE reference…
permissive · top 5,000 on PyPI
python-lzfProvides Python bindings to the liblzf…
permissive · top 15,000 on PyPI
python-neo-lzfProvides fast compression and decompression of…
permissive · top 15,000 on PyPI
python-snappyPython binding for Google's Snappy compression…
permissive · top 5,000 on PyPI
pyimg4PyIMG4 parses Apple's Image4 format through a…
permissive · top 15,000 on PyPI
pyzstdProvides Python bindings to the Zstandard…
permissive · top 5,000 on PyPI
brotlipybrotlipy provides Python bindings to the Brotli…
permissive · top 5,000 on PyPI
lz4Python bindings for the LZ4 compression…
permissive · top 1,000 on PyPI
astc-encoder-pyastc-encoder-py compresses and decompresses…
permissive · top 15,000 on PyPI
zopfliZopfli is a Python binding for Google's Zopfli…
permissive · top 1,000 on PyPI