Metadata-Version: 2.4
Name: pbi-enterprise-cli
Version: 4.0.1
Summary: Power BI one-stop-shop platform — CLI for AI-driven Power BI development
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: Documentation, https://github.com/mudassir09/pbi-enterprise-cli#readme
Project-URL: Changelog, https://github.com/mudassir09/pbi-enterprise-cli/blob/main/CHANGELOG.md
Project-URL: Bug Tracker, https://github.com/mudassir09/pbi-enterprise-cli/issues
Project-URL: Security Policy, https://github.com/mudassir09/pbi-enterprise-cli/blob/main/SECURITY.md
Keywords: power-bi,cli,dax,tmdl,pbir,powerbi,pbip,xmla,fabric
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: Topic :: Office/Business
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Database
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Environment :: Console
Classifier: Typing :: Typed
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
Provides-Extra: ai
Requires-Dist: anthropic>=0.105.2; extra == "ai"
Provides-Extra: viz
Requires-Dist: Pillow>=10.0; extra == "viz"
Requires-Dist: wcag-contrast-ratio>=0.9; 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.136.3; extra == "server"
Requires-Dist: uvicorn>=0.48.0; extra == "server"
Provides-Extra: sources
Requires-Dist: sqlalchemy>=2.0; extra == "sources"
Requires-Dist: openpyxl>=3.1.5; extra == "sources"
Requires-Dist: httpx>=0.27; extra == "sources"
Provides-Extra: dev
Requires-Dist: pytest>=9.0.3; extra == "dev"
Requires-Dist: pytest-cov>=7.1.0; extra == "dev"
Requires-Dist: ruff>=0.15.15; extra == "dev"
Requires-Dist: mypy>=2.1.0; extra == "dev"
Requires-Dist: pyyaml>=6.0; 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 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 (exit 3 on violations)
```

## Feature highlights

- **22 command groups** covering every layer of Power BI development
- **3 backends** — Desktop (TOM via pythonnet), XMLA (Premium/Fabric), Mock (CI)
- **PBIR GA format** — read and write `.pbip` project files directly
- **Governance engine** — built-in rules + BPA + custom plugin system, `--fail-on` CI gate
- **Model snapshots** — create/list/restore/diff with `pbi snapshot`
- **Multi-environment** — named connections, `pbi env promote dev→prod`
- **Authenticated REST server** — API key auth, localhost-only default
- **Source profiling** — SQL, Excel, CSV, REST → star-schema scaffold
- **30 Claude Code skills** — install with `pbi skills install --all`
- **575 unit tests** passing on Python 3.10–3.12, coverage gate enforced

## Install options

```bash
pip install pbi-enterprise-cli             # base
pip install "pbi-enterprise-cli[ai]"       # + Claude AI measure generation
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[server]"   # + authenticated FastAPI REST server
pip install "pbi-enterprise-cli[all]"      # everything
```

## Requirements

- Python 3.10+
- Windows (for Desktop/XMLA backends using .NET AMO)
- Power BI Desktop (for the `desktop` backend)

## Links

- [GitHub Repository](https://github.com/mudassir09/pbi-enterprise-cli)
- [Full Documentation](https://github.com/mudassir09/pbi-enterprise-cli#readme)
- [XMLA Auth Guide](https://github.com/mudassir09/pbi-enterprise-cli/blob/main/docs/auth/xmla-auth.md)
- [Deployment Guide](https://github.com/mudassir09/pbi-enterprise-cli/blob/main/docs/deployment.md)
- [Stability Policy](https://github.com/mudassir09/pbi-enterprise-cli/blob/main/STABILITY.md)
- [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)
