skillfed

xpress8

Python bindings for the Microsoft Xpress8 (ESE) compression library

xpress8 v0.1.0 103.7K downloads/30d#12,790 on PyPI0
Permissive license MIT Active released

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 xpress8

uv

uv add xpress8

poetry

poetry add xpress8

Installing 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

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTopic :: System :: Archiving :: Compression

Tags

xpress8 compression pythonpbix file compressionmicrosoft xpress8 bindingsese compression librarydata compression decompressionwindows compression formatchunked stream decompression
compressionmicrosoft-esepbix

More Python Modules packages