pbixray
A Python library to parse and analyze PBIX files used with Microsoft Power BI and Excel PowerPivot.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real gap: programmatic inspection of Power BI models without requiring Power BI Desktop. MIT licensing removes legal friction. Install if you need to audit, extract, or analyze PBIX files at scale or in automation; skip if you only work with Power BI interactively.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later.
- For large models, pass on_disk=True to stream to disk instead of loading the entire decompressed model into memory.
- Low friction install with a pure-Python wheel.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package with minimal restrictions, provided you retain the license notice.
last release 2026-08-05 (9 days) · last repo commit 2026-08-10 · 140 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 260,109 downloads/mo, #8,399 on PyPI
Alternatives
Verify before relying
pip install pbixray
from pbixray import PBIXRay
model = PBIXRay('path/to/your/file.pbix')
tables = model.tables
df = model.get_table('TableName')- Performance characteristics and memory overhead for typical model sizes are not quantified in the fact sheet.
- Compatibility with specific Power BI versions or model complexity limits is not documented in the excerpt.
What it is and what it does
PBIXRay is a Python library for reading and analyzing Microsoft Power BI PBIX files, Excel PowerPivot models, and Analysis Services backup files. It extracts the internal data model—tables, columns, relationships, DAX expressions, Power Query code, security rules, and metadata—and exposes them as pandas DataFrames or raw Python objects. The library handles both small models held in memory and large models that exceed available RAM by streaming to disk and memory-mapping the result.
Typical use cases include auditing Power BI models for DAX logic and data lineage, programmatically inspecting security configurations (row-level and object-level security), extracting Power Query transformations for documentation or migration, and bulk-analyzing many PBIX files. The library is the Python implementation of logic from the DuckDB PBIX extension, so it integrates naturally with data analysis workflows that already use pandas and numpy.
Use it for
- Audit Power BI models for DAX measures, calculated columns, and aggregation rules without opening Power BI Desktop.
- Extract Power Query M code and parameters from PBIX files for documentation or migration to other tools.
- Inspect row-level and object-level security configurations across many Power BI models programmatically.
- Retrieve table data and schema from PBIX files as pandas DataFrames for analysis or export.
- Stream large Power BI tables in chunks to avoid loading entire models into memory.
- Analyze relationships, perspectives, and metadata across a portfolio of Power BI or PowerPivot files.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real gap: programmatic inspection of Power BI models without requiring Power BI Desktop. MIT licensing removes legal friction. Install if you need to audit, extract, or analyze PBIX files at scale or in automation; skip if you only work with Power BI interactively.
Install
pbixray on PyPI
Before you install
Low friction install with a pure-Python wheel. Actively maintained with a recent release; 140 repository stars indicate modest but steady adoption. Seven runtime dependencies are all established libraries (numpy, pandas, apsw for SQLite, plus xpress and xmhuffman for compression).
Requires Python 3.8 or later. For large models, pass on_disk=True to stream to disk instead of loading the entire decompressed model into memory.
License in practice
MIT license is permissive; you can use, modify, and distribute this package with minimal restrictions, provided you retain the license notice.
Quickstart
pip install pbixray
from pbixray import PBIXRay
model = PBIXRay('path/to/your/file.pbix')
tables = model.tables
df = model.get_table('TableName')
Verify before relying
- Performance characteristics and memory overhead for typical model sizes are not quantified in the fact sheet.
- Compatibility with specific Power BI versions or model complexity limits is not documented in the excerpt.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagesxpress8xpress9xmhuffmankaitaistructnumpypandasapsw |
| Maintenance | Actively maintained 9 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 260,109 / month, #8,399 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: Information TechnologyIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/Engineering :: Information AnalysisTopic :: Scientific/Engineering :: VisualizationTopic :: Software Development :: Libraries :: Python Modules |
Evidence: pbixray-0.15.4-py3-none-any.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 › “power bi pbix parser”
- pbixrayParse and extract metadata, tables, DAX expressions, Power Query…
- xmhuffmanDecodes canonical-Huffman compressed string dictionaries from…
- 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 xmhuffman · xpress8 · semantic-link-labs · azure-mgmt-powerbiembedded · airflow-powerbi-plugin · semantic-link-sempy · semantic-link · amazon-dax-client · DataProperty · pylightxl