A Python library to parse and analyze PBIX files used with Microsoft Power BI and Excel PowerPivot. It allows you to extract data models, measures, relationships, Power Query M code, and report metadata from Power BI files. Current version: 0.10.0.
pip install pbixrayNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Load a PBIX file, inspect tables, measures, and relationships.
Call `pbix.close()` after processing, or use a context manager (not yet implemented).
Ensure the PBIX file is directly from Power BI Desktop, not from the service.
Check `hasattr(pbix, 'data_model')` before accessing.
Do not rely on the structure of report JSON; use with caution.