Metadata-Version: 2.4
Name: pbi-enterprise-cli
Version: 0.1.0.dev2
Summary: Power BI enterprise CLI — AI-driven model management, governance, PBIR authoring, XMLA, and DAX testing
Author-email: Mudassir <mir.mudassir1@gmail.com>
License: MIT AND LicenseRef-Microsoft-AS-Client-Libraries
Project-URL: Homepage, https://github.com/mudassir09/pbi-enterprise-cli
Project-URL: Repository, https://github.com/mudassir09/pbi-enterprise-cli
Project-URL: Bug Tracker, https://github.com/mudassir09/pbi-enterprise-cli/issues
Project-URL: Changelog, https://github.com/mudassir09/pbi-enterprise-cli/blob/main/CHANGELOG.md
Keywords: power-bi,cli,dax,tmdl,pbir,powerbi,microsoft,governance
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Office/Business
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.1
Requires-Dist: rich>=13.0
Requires-Dist: pythonnet>=3.0
Requires-Dist: pydantic>=2.0
Requires-Dist: python-dotenv>=1.0
Requires-Dist: PyYAML>=6.0
Provides-Extra: ai
Requires-Dist: anthropic>=0.25; extra == "ai"
Provides-Extra: viz
Requires-Dist: Pillow>=10.0; extra == "viz"
Requires-Dist: python-wcag-contrast-ratio>=1.0; extra == "viz"
Requires-Dist: playwright>=1.44; extra == "viz"
Provides-Extra: xmla
Requires-Dist: msal>=1.28; extra == "xmla"
Provides-Extra: server
Requires-Dist: fastapi>=0.110; extra == "server"
Requires-Dist: uvicorn>=0.29; extra == "server"
Provides-Extra: sources
Requires-Dist: sqlalchemy>=2.0; extra == "sources"
Requires-Dist: openpyxl>=3.1; extra == "sources"
Requires-Dist: httpx>=0.27; extra == "sources"
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0; extra == "dev"
Requires-Dist: ruff>=0.4.0; extra == "dev"
Requires-Dist: mypy>=1.10; extra == "dev"
Provides-Extra: all
Requires-Dist: pbi-enterprise-cli[ai,dev,server,sources,viz,xmla]; extra == "all"
Dynamic: license-file

# pbi-enterprise-cli

**Full-stack Power BI enterprise automation from the command line.**

```bash
pip install pbi-enterprise-cli
pbi doctor          # verify setup
pbi model tables    # list tables in the connected model
pbi govern check    # run governance rules
```

## Feature highlights

- **25 command groups** covering every layer of Power BI development
- **32 visual types** — from cards to decomposition trees
- **3 backends** — Desktop (TOM via pythonnet), XMLA (Premium/Fabric), Mock (CI)
- **PBIR GA format** — read and write `.pbip` project files directly
- **Governance engine** — 5 built-in rules + custom plugin system + **BPA compatibility** (run Microsoft community BPA rules natively — no Tabular Editor required)
- **REST source profiling** — Bearer/API-key auth, OData pagination, star-schema scaffold
- **REPL mode** — interactive session with tab completion and persistent history
- **Custom visual SDK** — scaffold, build, package, import `.pbiviz`
- **AI measure generation** — Claude API integration (requires `[ai]` extra)
- **24 AI skills** — install Claude Code skills (`pbi skills install --all`)
- **547 unit tests** passing on Python 3.10–3.12

## Install options

```bash
pip install pbi-enterprise-cli             # base
pip install "pbi-enterprise-cli[ai]"       # + Claude AI
pip install "pbi-enterprise-cli[xmla]"     # + MSAL auth for XMLA
pip install "pbi-enterprise-cli[sources]"  # + SQL/Excel/REST profiling
pip install "pbi-enterprise-cli[all]"      # everything
```

## Requirements

- Python 3.10+
- Windows (for Desktop/XMLA backends using .NET AMO — AMO DLLs are bundled in the wheel)

## Links

- [GitHub Repository](https://github.com/mudassir09/pbi-enterprise-cli)
- [Full Documentation](https://github.com/mudassir09/pbi-enterprise-cli#readme)
- [Changelog](https://github.com/mudassir09/pbi-enterprise-cli/blob/main/CHANGELOG.md)
- [Security Policy](https://github.com/mudassir09/pbi-enterprise-cli/blob/main/SECURITY.md)
