{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/3"}],"enrichment":{"capability":"Compresses and decompresses data using the PPMd (Prediction by Partial Matching) algorithm, with an API similar to Python's built-in bz2, lzma, and zlib modules.","skillfed_tags":["compression","ppmd-algorithm","7zip-compatible"],"use_cases":["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."],"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.\n\nThe 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.","worth_installing":"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."},"id":"pyppmd","links":{"html":"https://skillfed.io/packages/pyppmd","md":"https://skillfed.io/packages/pyppmd.md","pypi":"https://pypi.org/project/pyppmd/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-27","license_spdx":null,"license_treatment":"copyleft","name":"pyppmd","python_support":"supports_current","summary":"PPMd compression/decompression library"},"popularity":{"monthly_downloads":9524186,"position":1528,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.3.1"}
