feat: initial pbi-cli project with all 20+ command groups
Complete CLI framework for Power BI semantic models via MCP server:
- Core: MCP client (stdio via mcp SDK), binary manager (VSIX download),
config, connection store, dual output (JSON + Rich)
- Commands: setup, connect, dax, measure, table, column, relationship,
model, database, security-role, calc-group, partition, perspective,
hierarchy, expression, calendar, trace, transaction, advanced
- Binary resolution: env var > managed > VS Code extension fallback
- Global --json flag for agent consumption
2026-03-26 11:05:53 +00:00
|
|
|
[build-system]
|
|
|
|
|
requires = ["setuptools>=68.0", "wheel"]
|
|
|
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
|
|
|
|
|
|
[project]
|
2026-03-26 12:09:21 +00:00
|
|
|
name = "pbi-cli-tool"
|
feat: v3.10.0 -- audit fixes, 12 skills, README rewrite
- Fix 4 code bugs: TopN filter cross-table, theme_set corruption,
visual_bind type annotation, tmdl_diff hierarchy pluralization
- Add missing VisualTypeError and ReportNotFoundError to errors.py
- Register 5 command groups in CLI (report, visual, filters, format, bookmarks)
- Split monolithic report skill into 5 focused skills (12 total):
power-bi-report, power-bi-visuals, power-bi-pages, power-bi-themes,
power-bi-filters
- Update CLAUDE.md snippet for 12 skills organised by layer
- Add diff-tmdl section to deployment skill
- Write CHANGELOG entries for v3.0.0 through v3.10.0
- Rewrite README.md and README.pypi.md for both model and report layers
- Add skill triggering test suite (19/19 passing)
- 488 tests passing, ruff clean
2026-04-01 22:07:52 +00:00
|
|
|
version = "3.10.0"
|
2026-04-01 17:18:32 +00:00
|
|
|
description = "CLI for Power BI semantic models and PBIR reports - direct .NET connection for token-efficient AI agent usage"
|
2026-03-26 17:29:35 +00:00
|
|
|
readme = "README.pypi.md"
|
feat: initial pbi-cli project with all 20+ command groups
Complete CLI framework for Power BI semantic models via MCP server:
- Core: MCP client (stdio via mcp SDK), binary manager (VSIX download),
config, connection store, dual output (JSON + Rich)
- Commands: setup, connect, dax, measure, table, column, relationship,
model, database, security-role, calc-group, partition, perspective,
hierarchy, expression, calendar, trace, transaction, advanced
- Binary resolution: env var > managed > VS Code extension fallback
- Global --json flag for agent consumption
2026-03-26 11:05:53 +00:00
|
|
|
license = {text = "MIT"}
|
|
|
|
|
requires-python = ">=3.10"
|
|
|
|
|
authors = [
|
|
|
|
|
{name = "pbi-cli contributors"},
|
|
|
|
|
]
|
2026-04-01 17:18:32 +00:00
|
|
|
keywords = ["power-bi", "cli", "semantic-model", "dax", "claude-code", "tom", "pbir", "report"]
|
feat: initial pbi-cli project with all 20+ command groups
Complete CLI framework for Power BI semantic models via MCP server:
- Core: MCP client (stdio via mcp SDK), binary manager (VSIX download),
config, connection store, dual output (JSON + Rich)
- Commands: setup, connect, dax, measure, table, column, relationship,
model, database, security-role, calc-group, partition, perspective,
hierarchy, expression, calendar, trace, transaction, advanced
- Binary resolution: env var > managed > VS Code extension fallback
- Global --json flag for agent consumption
2026-03-26 11:05:53 +00:00
|
|
|
classifiers = [
|
2026-03-26 14:49:34 +00:00
|
|
|
"Development Status :: 5 - Production/Stable",
|
feat: initial pbi-cli project with all 20+ command groups
Complete CLI framework for Power BI semantic models via MCP server:
- Core: MCP client (stdio via mcp SDK), binary manager (VSIX download),
config, connection store, dual output (JSON + Rich)
- Commands: setup, connect, dax, measure, table, column, relationship,
model, database, security-role, calc-group, partition, perspective,
hierarchy, expression, calendar, trace, transaction, advanced
- Binary resolution: env var > managed > VS Code extension fallback
- Global --json flag for agent consumption
2026-03-26 11:05:53 +00:00
|
|
|
"Environment :: Console",
|
|
|
|
|
"Intended Audience :: Developers",
|
|
|
|
|
"License :: OSI Approved :: MIT License",
|
|
|
|
|
"Operating System :: OS Independent",
|
|
|
|
|
"Programming Language :: Python :: 3",
|
|
|
|
|
"Programming Language :: Python :: 3.10",
|
|
|
|
|
"Programming Language :: Python :: 3.11",
|
|
|
|
|
"Programming Language :: Python :: 3.12",
|
|
|
|
|
"Programming Language :: Python :: 3.13",
|
|
|
|
|
"Topic :: Database",
|
|
|
|
|
"Topic :: Software Development :: Libraries",
|
|
|
|
|
]
|
|
|
|
|
dependencies = [
|
|
|
|
|
"click>=8.0.0",
|
|
|
|
|
"rich>=13.0.0",
|
|
|
|
|
"prompt-toolkit>=3.0.0",
|
2026-03-27 05:19:21 +00:00
|
|
|
"pythonnet==3.1.0rc0",
|
|
|
|
|
"clr-loader>=0.2.6",
|
feat: initial pbi-cli project with all 20+ command groups
Complete CLI framework for Power BI semantic models via MCP server:
- Core: MCP client (stdio via mcp SDK), binary manager (VSIX download),
config, connection store, dual output (JSON + Rich)
- Commands: setup, connect, dax, measure, table, column, relationship,
model, database, security-role, calc-group, partition, perspective,
hierarchy, expression, calendar, trace, transaction, advanced
- Binary resolution: env var > managed > VS Code extension fallback
- Global --json flag for agent consumption
2026-03-26 11:05:53 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
|
pbi = "pbi_cli.main:cli"
|
|
|
|
|
|
|
|
|
|
[project.urls]
|
2026-03-26 12:09:21 +00:00
|
|
|
Homepage = "https://github.com/MinaSaad1/pbi-cli"
|
|
|
|
|
Repository = "https://github.com/MinaSaad1/pbi-cli"
|
|
|
|
|
Issues = "https://github.com/MinaSaad1/pbi-cli/issues"
|
feat: initial pbi-cli project with all 20+ command groups
Complete CLI framework for Power BI semantic models via MCP server:
- Core: MCP client (stdio via mcp SDK), binary manager (VSIX download),
config, connection store, dual output (JSON + Rich)
- Commands: setup, connect, dax, measure, table, column, relationship,
model, database, security-role, calc-group, partition, perspective,
hierarchy, expression, calendar, trace, transaction, advanced
- Binary resolution: env var > managed > VS Code extension fallback
- Global --json flag for agent consumption
2026-03-26 11:05:53 +00:00
|
|
|
|
|
|
|
|
[project.optional-dependencies]
|
|
|
|
|
dev = [
|
|
|
|
|
"pytest>=7.0",
|
|
|
|
|
"pytest-cov>=4.0",
|
|
|
|
|
"ruff>=0.4.0",
|
|
|
|
|
"mypy>=1.10",
|
|
|
|
|
]
|
2026-04-01 17:18:32 +00:00
|
|
|
reload = ["pywin32>=306"]
|
|
|
|
|
preview = ["websockets>=12.0"]
|
feat: initial pbi-cli project with all 20+ command groups
Complete CLI framework for Power BI semantic models via MCP server:
- Core: MCP client (stdio via mcp SDK), binary manager (VSIX download),
config, connection store, dual output (JSON + Rich)
- Commands: setup, connect, dax, measure, table, column, relationship,
model, database, security-role, calc-group, partition, perspective,
hierarchy, expression, calendar, trace, transaction, advanced
- Binary resolution: env var > managed > VS Code extension fallback
- Global --json flag for agent consumption
2026-03-26 11:05:53 +00:00
|
|
|
|
|
|
|
|
[tool.setuptools.packages.find]
|
|
|
|
|
where = ["src"]
|
|
|
|
|
|
feat: add REPL mode, test suite, CI/CD, and Claude Skills (Sprints 6-8)
Sprint 6 - REPL Mode + Polish:
- Error hierarchy (PbiCliError, McpToolError, etc.) for clean REPL error handling
- Interactive REPL with prompt-toolkit (persistent MCP connection, command completion, history)
- REPL-aware run_tool() and connection commands that reuse shared client
- README.md and CHANGELOG.md
Sprint 7 - Tests + CI/CD:
- 120 tests across unit, command, and e2e test files (79% coverage)
- MockPbiMcpClient with canned responses for test isolation
- GitHub Actions CI (lint + typecheck + test matrix: 3 OS x 3 Python)
- GitHub Actions release workflow for PyPI trusted publishing
Sprint 8 - Claude Skills + Installer:
- 5 bundled SKILL.md files (modeling, dax, deployment, security, docs)
- `pbi skills install/list/uninstall` command for Claude Code discovery
- Skills packaged with wheel via setuptools package-data
2026-03-26 11:54:24 +00:00
|
|
|
[tool.setuptools.package-data]
|
|
|
|
|
"pbi_cli.skills" = ["**/*.md"]
|
2026-03-27 05:19:21 +00:00
|
|
|
"pbi_cli.dlls" = ["*.dll"]
|
2026-04-01 17:18:32 +00:00
|
|
|
"pbi_cli.templates" = ["**/*.json"]
|
feat: add REPL mode, test suite, CI/CD, and Claude Skills (Sprints 6-8)
Sprint 6 - REPL Mode + Polish:
- Error hierarchy (PbiCliError, McpToolError, etc.) for clean REPL error handling
- Interactive REPL with prompt-toolkit (persistent MCP connection, command completion, history)
- REPL-aware run_tool() and connection commands that reuse shared client
- README.md and CHANGELOG.md
Sprint 7 - Tests + CI/CD:
- 120 tests across unit, command, and e2e test files (79% coverage)
- MockPbiMcpClient with canned responses for test isolation
- GitHub Actions CI (lint + typecheck + test matrix: 3 OS x 3 Python)
- GitHub Actions release workflow for PyPI trusted publishing
Sprint 8 - Claude Skills + Installer:
- 5 bundled SKILL.md files (modeling, dax, deployment, security, docs)
- `pbi skills install/list/uninstall` command for Claude Code discovery
- Skills packaged with wheel via setuptools package-data
2026-03-26 11:54:24 +00:00
|
|
|
|
feat: initial pbi-cli project with all 20+ command groups
Complete CLI framework for Power BI semantic models via MCP server:
- Core: MCP client (stdio via mcp SDK), binary manager (VSIX download),
config, connection store, dual output (JSON + Rich)
- Commands: setup, connect, dax, measure, table, column, relationship,
model, database, security-role, calc-group, partition, perspective,
hierarchy, expression, calendar, trace, transaction, advanced
- Binary resolution: env var > managed > VS Code extension fallback
- Global --json flag for agent consumption
2026-03-26 11:05:53 +00:00
|
|
|
[tool.ruff]
|
|
|
|
|
target-version = "py310"
|
|
|
|
|
line-length = 100
|
|
|
|
|
|
|
|
|
|
[tool.ruff.lint]
|
|
|
|
|
select = ["E", "F", "I", "N", "W", "UP"]
|
|
|
|
|
|
2026-03-27 05:19:21 +00:00
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
|
|
|
# .NET interop code uses CamelCase names to match the .NET API surface
|
|
|
|
|
"src/pbi_cli/core/adomd_backend.py" = ["N806"]
|
|
|
|
|
"src/pbi_cli/core/session.py" = ["N806"]
|
|
|
|
|
"src/pbi_cli/core/tom_backend.py" = ["N806", "N814"]
|
|
|
|
|
"src/pbi_cli/core/dotnet_loader.py" = ["N806", "N814"]
|
2026-04-01 17:18:32 +00:00
|
|
|
# Win32 API constants use UPPER_CASE; PowerShell inline scripts are long
|
|
|
|
|
"src/pbi_cli/utils/desktop_reload.py" = ["N806", "E501"]
|
|
|
|
|
# HTML/SVG template strings are inherently long
|
|
|
|
|
"src/pbi_cli/preview/renderer.py" = ["E501"]
|
2026-03-27 05:19:21 +00:00
|
|
|
# Mock objects mirror .NET CamelCase API
|
|
|
|
|
"tests/conftest.py" = ["N802", "N806"]
|
|
|
|
|
|
feat: initial pbi-cli project with all 20+ command groups
Complete CLI framework for Power BI semantic models via MCP server:
- Core: MCP client (stdio via mcp SDK), binary manager (VSIX download),
config, connection store, dual output (JSON + Rich)
- Commands: setup, connect, dax, measure, table, column, relationship,
model, database, security-role, calc-group, partition, perspective,
hierarchy, expression, calendar, trace, transaction, advanced
- Binary resolution: env var > managed > VS Code extension fallback
- Global --json flag for agent consumption
2026-03-26 11:05:53 +00:00
|
|
|
[tool.pytest.ini_options]
|
|
|
|
|
testpaths = ["tests"]
|
|
|
|
|
markers = [
|
2026-03-27 05:19:21 +00:00
|
|
|
"e2e: end-to-end tests requiring running Power BI Desktop",
|
feat: initial pbi-cli project with all 20+ command groups
Complete CLI framework for Power BI semantic models via MCP server:
- Core: MCP client (stdio via mcp SDK), binary manager (VSIX download),
config, connection store, dual output (JSON + Rich)
- Commands: setup, connect, dax, measure, table, column, relationship,
model, database, security-role, calc-group, partition, perspective,
hierarchy, expression, calendar, trace, transaction, advanced
- Binary resolution: env var > managed > VS Code extension fallback
- Global --json flag for agent consumption
2026-03-26 11:05:53 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.mypy]
|
|
|
|
|
python_version = "3.10"
|
|
|
|
|
strict = true
|
2026-03-27 05:28:44 +00:00
|
|
|
|
|
|
|
|
[[tool.mypy.overrides]]
|
|
|
|
|
module = ["pythonnet", "clr", "clr_loader"]
|
|
|
|
|
ignore_missing_imports = true
|