xpress8
Python bindings for the Microsoft Xpress8 (ESE) compression library
What it is and what it does
xpress8 is a Cython wrapper around Microsoft's Xpress8 compression algorithm, sourced from the Extensible Storage Engine (ESE) library. It exposes a simple Python API for single-buffer compression and decompression, as well as support for chunked streams with 4-byte headers—the format used by Power BI's .pbix files. The package vendors the underlying C implementation from ESE and compiles it as a native extension.
The library is designed for scenarios where you need to work with Xpress8-compressed data, particularly .pbix files or Windows-internal data stores. It is not compatible with Xpress9, a related but distinct compression format. Installation is straightforward via prebuilt wheels for common Python versions and platforms, though you must specify the uncompressed size when decompressing.
Use it for:
- Decompress Power BI .pbix files to extract or analyze their internal structure and data.
- Compress or decompress data in Windows-internal formats that use Xpress8 encoding.
- Handle chunked Xpress8-compressed streams with embedded size headers in a Python application.
- Integrate Xpress8 compression into data pipelines that must interoperate with ESE-based systems.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
xpress8 provides Python bindings to Microsoft's Xpress8 compression library, enabling compression and decompression of data using the algorithm used by Power BI's .pbix format and Windows internal data stores.
Yes, if you need to work with Xpress8-compressed data (especially .pbix files). The package is actively maintained, has no known vulnerabilities, uses a permissive MIT license, and offers prebuilt wheels that minimize install friction. The 0.1.0 version and recent release date suggest early maturity—test thoroughly in non-critical contexts before relying on it for production workloads.
Install
xpress8 on PyPI
pip
pip install xpress8uv
uv add xpress8poetry
poetry add xpress8Installing xpress8
Before you install
Medium install friction due to compiled extension wheels; however, prebuilt wheels are available for Python 3.9–3.13 across macOS, Linux (x86_64 and aarch64), and Windows, reducing friction significantly. Repository is active with recent commits.
License in practice
MIT license is permissive and places no restrictions on use, modification, or distribution in proprietary or open-source projects. Vendored Microsoft sources retain their original copyright headers but are also MIT-licensed.
Quickstart
from xpress8 import Xpress8
x = Xpress8()
compressed = x.compress(b"hello world " * 64)
restored = x.decompress(compressed, len(b"hello world " * 64))
Requires Python 3.8 or later; compiled extension, so platform-specific wheel must match your Python version and architecture.
Verify before relying
- Performance characteristics (compression ratio, speed) compared to other compression libraries or Xpress9.
- Maximum practical data size limits beyond the default max_original_size of 65536 bytes.
- Stability and production-readiness status given the 0.1.0 version number and recent first release.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 95 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 103,701/month — #12,790 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: xpress8-0.1.0-cp310-cp310-macosx_11_0_universal2.whl; xpress8-0.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; xpress8-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; xpress8-0.1.0-cp310-cp310-win_amd64.whl; xpress8-0.1.0-cp311-cp311-macosx_11_0_universal2.whl; xpress8-0.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; xpress8-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; xpress8-0.1.0-cp311-cp311-win_amd64.whl; xpress8-0.1.0-cp312-cp312-macosx_11_0_universal2.whl; xpress8-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; xpress8-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; xpress8-0.1.0-cp312-cp312-win_amd64.whl; xpress8-0.1.0-cp313-cp313-macosx_11_0_universal2.whl; xpress8-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; xpress8-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; xpress8-0.1.0-cp313-cp313-win_amd64.whl; xpress8-0.1.0-cp39-cp39-macosx_11_0_universal2.whl; xpress8-0.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl; xpress8-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl; xpress8-0.1.0-cp39-cp39-win_amd64.whl
Keywords: compression, xpress8, microsoft, ese, pbix
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
xmhuffmanDecodes canonical-Huffman compressed string…
permissive · top 15,000 on PyPI
xpress9Xpress9 is a Python wrapper for Microsoft's…
permissive · top 15,000 on PyPI
pbixrayParse and extract metadata, tables, DAX…
permissive · top 15,000 on PyPI
zstdProvides Python bindings to the Zstandard…
permissive · top 5,000 on PyPI
compressed-rtfCompresses and decompresses Rich Text Format…
permissive · top 5,000 on PyPI
pylzsspylzss decodes and encodes data compressed with…
copyleft · top 15,000 on PyPI
lzfsePython bindings for the LZFSE reference…
permissive · top 5,000 on PyPI
python-neo-lzfProvides fast compression and decompression of…
permissive · top 15,000 on PyPI
ncompressProvides LZW compression and decompression…
permissive · top 15,000 on PyPI
lzallrightlzallright provides Python bindings to compress…
permissive · top 15,000 on PyPI