pyppmd
PPMd compression/decompression library
Decision gist · record as of 2026-08-14
Yes, if you need PPMd compression specifically (e.g., for 7-zip interoperability or when its statistical model suits your data). The package is stable, actively maintained, has no known vulnerabilities, and installs easily via prebuilt wheels. Be aware of the copyleft license (LGPL-2.1-or-later) and the 'extra input byte' quirk in decompression. Not necessary if standard library compression (zlib, bz2, lzma) meets your needs.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- PPMd decompression may require an extra null byte (b"\0") if the decoder's needs_input flag is set after partial decompression.
- Medium install friction due to compiled wheels; prebuilt binaries available for Python 3.10–3.14 across macOS, Linux, Windows, and ARM platforms, reducing build-time overhead.
License · maintenance · safety
LGPL-2.1-or-later (copyleft) — Licensed under LGPL-2.1-or-later (copyleft). Derivative code from 7-zip, pyzstd, and ppmd-cffi is included; users must comply with copyleft obligations if they distribute modified versions or link this library into proprietary software.
last release 2025-11-27 (260 days) · last repo commit 2026-07-16 · 11 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 9,524,186 downloads/mo, #1,528 on PyPI
Alternatives
Verify before relying
import pyppmd
# Compress data
enc = pyppmd.Ppmd7Encoder(max_order=6, mem_size=16 << 10)
compressed = enc.encode(b"Hello, World!")
# Decompress data
dec = pyppmd.Ppmd7Decoder(max_order=6, mem_size=16 << 10)
decompressed = dec.decode(compressed, len(b"Hello, World!"))- Performance characteristics (compression ratio, speed) compared to zlib, bz2, or lzma for typical use cases.
- Whether the 'extra input byte' requirement (PPMd algorithm design) is a practical limitation for most workflows.
- Real-world adoption rate and stability feedback beyond the 'Stable' classifier.
What it is and what it does
PyPPMd is a Python binding to the PPMd compression algorithm, an implementation by Dmitry Shkarin that uses Igor Pavlov's range coder from 7-zip. It provides encoder and decoder classes (like Ppmd7Decoder) that compress and decompress data using prediction by partial matching, a statistical compression technique. The API mirrors Python's standard library compression modules (bz2, lzma, zlib), making it familiar to Python developers. The package is a thin wrapper around compiled C code, so installation uses prebuilt wheels for common platforms and Python versions.
The main practical consideration is that PPMd's algorithm design requires an 'extra input byte' (typically a null byte) during decompression in some cases; the documentation shows how to detect and handle this. The library is copyleft-licensed (LGPL-2.1-or-later) and includes code derived from 7-zip and other projects, so derivative or linked works must comply with those terms. It supports Python 3.10 and later on CPython and PyPy.
Use it for
- Decompress PPMd-compressed archives or data streams when interoperating with 7-zip or other PPMd-based tools.
- Implement custom compression pipelines where PPMd's statistical model offers better compression than zlib or bz2 for specific text or data types.
- Archive or store highly compressible data (text, source code, logs) where compression ratio matters more than speed.
- Integrate PPMd compression into Python applications that need to match compression formats used by existing 7-zip workflows.
- Benchmark or evaluate PPMd against other compression algorithms in a pure-Python environment.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need PPMd compression specifically (e.g., for 7-zip interoperability or when its statistical model suits your data).
The package is stable, actively maintained, has no known vulnerabilities, and installs easily via prebuilt wheels. Be aware of the copyleft license (LGPL-2.1-or-later) and the 'extra input byte' quirk in decompression. Not necessary if standard library compression (zlib, bz2, lzma) meets your needs.
Install
pyppmd on PyPI
Before you install
Medium install friction due to compiled wheels; prebuilt binaries available for Python 3.10–3.14 across macOS, Linux, Windows, and ARM platforms, reducing build-time overhead. Repository is active with recent commits.
Requires Python 3.10 or later. PPMd decompression may require an extra null byte (b"\0") if the decoder's needs_input flag is set after partial decompression.
License in practice
Licensed under LGPL-2.1-or-later (copyleft). Derivative code from 7-zip, pyzstd, and ppmd-cffi is included; users must comply with copyleft obligations if they distribute modified versions or link this library into proprietary software.
Quickstart
import pyppmd
# Compress data
enc = pyppmd.Ppmd7Encoder(max_order=6, mem_size=16 << 10)
compressed = enc.encode(b"Hello, World!")
# Decompress data
dec = pyppmd.Ppmd7Decoder(max_order=6, mem_size=16 << 10)
decompressed = dec.decode(compressed, len(b"Hello, World!"))
Verify before relying
- Performance characteristics (compression ratio, speed) compared to zlib, bz2, or lzma for typical use cases.
- Whether the 'extra input byte' requirement (PPMd algorithm design) is a practical limitation for most workflows.
- Real-world adoption rate and stability feedback beyond the 'Stable' classifier.
Package facts
| License | LGPL-2.1-or-later copyleft |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 260 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 9,524,186 / month, #1,528 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pyppmd-1.3.1-cp310-cp310-macosx_10_9_universal2.whl; pyppmd-1.3.1-cp310-cp310-macosx_10_9_x86_64.whl; pyppmd-1.3.1-cp310-cp310-macosx_11_0_arm64.whl; pyppmd-1.3.1-cp310-cp310-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pyppmd-1.3.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; pyppmd-1.3.1-cp310-cp310-musllinux_1_2_aarch64.whl; pyppmd-1.3.1-cp310-cp310-musllinux_1_2_x86_64.whl; pyppmd-1.3.1-cp310-cp310-win32.whl; pyppmd-1.3.1-cp310-cp310-win_amd64.whl; pyppmd-1.3.1-cp310-cp310-win_arm64.whl; pyppmd-1.3.1-cp311-cp311-macosx_10_9_universal2.whl; pyppmd-1.3.1-cp311-cp311-macosx_10_9_x86_64.whl; pyppmd-1.3.1-cp311-cp311-macosx_11_0_arm64.whl; pyppmd-1.3.1-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; pyppmd-1.3.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; pyppmd-1.3.1-cp311-cp311-musllinux_1_2_aarch64.whl; pyppmd-1.3.1-cp311-cp311-musllinux_1_2_x86_64.whl; pyppmd-1.3.1-cp311-cp311-win32.whl; pyppmd-1.3.1-cp311-cp311-win_amd64.whl; pyppmd-1.3.1-cp311-cp311-win_arm64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “PPMd compression decompression”
- pyppmdCompresses and decompresses data using the PPMd (Prediction by…
- py7zrpy7zr is a pure-Python library for reading, writing, and managing 7z…
- xpress8xpress8 provides Python bindings to Microsoft's Xpress8 compression…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also py7zr · pyzstd · partd · pylzss · python-neo-lzf · bz2file · cmeel-zlib · zlib-ng · pybcj · ncompress