pbi-enterprise-cli 0.1.0.dev0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. pbi_cli/__init__.py +3 -0
  2. pbi_cli/_audit.py +57 -0
  3. pbi_cli/_snapshot.py +95 -0
  4. pbi_cli/backends/__init__.py +1 -0
  5. pbi_cli/backends/mock_backend.py +323 -0
  6. pbi_cli/backends/pbir_backend.py +813 -0
  7. pbi_cli/backends/protocol.py +52 -0
  8. pbi_cli/backends/tom_backend.py +650 -0
  9. pbi_cli/backends/xmla_backend.py +627 -0
  10. pbi_cli/cli.py +332 -0
  11. pbi_cli/commands/__init__.py +1 -0
  12. pbi_cli/commands/_doctor.py +84 -0
  13. pbi_cli/commands/_shared.py +88 -0
  14. pbi_cli/commands/calendar_cmd.py +186 -0
  15. pbi_cli/commands/connections.py +153 -0
  16. pbi_cli/commands/custom_visual.py +325 -0
  17. pbi_cli/commands/database.py +76 -0
  18. pbi_cli/commands/dax.py +174 -0
  19. pbi_cli/commands/deploy.py +193 -0
  20. pbi_cli/commands/docs.py +57 -0
  21. pbi_cli/commands/filter_cmd.py +235 -0
  22. pbi_cli/commands/govern.py +124 -0
  23. pbi_cli/commands/layout.py +104 -0
  24. pbi_cli/commands/measure.py +185 -0
  25. pbi_cli/commands/model.py +499 -0
  26. pbi_cli/commands/partition.py +89 -0
  27. pbi_cli/commands/repl.py +209 -0
  28. pbi_cli/commands/report.py +561 -0
  29. pbi_cli/commands/security.py +90 -0
  30. pbi_cli/commands/server_cmd.py +30 -0
  31. pbi_cli/commands/skills_cmd.py +168 -0
  32. pbi_cli/commands/source.py +581 -0
  33. pbi_cli/commands/theme.py +60 -0
  34. pbi_cli/commands/trace.py +142 -0
  35. pbi_cli/commands/visual.py +507 -0
  36. pbi_cli/commands/watch.py +145 -0
  37. pbi_cli/docs_gen/__init__.py +1 -0
  38. pbi_cli/docs_gen/confluence.py +24 -0
  39. pbi_cli/docs_gen/markdown.py +36 -0
  40. pbi_cli/governance/__init__.py +1 -0
  41. pbi_cli/governance/engine.py +70 -0
  42. pbi_cli/governance/rules/__init__.py +85 -0
  43. pbi_cli/governance/rules/measure_brackets.py +27 -0
  44. pbi_cli/governance/rules/measure_description.py +41 -0
  45. pbi_cli/governance/rules/measure_format.py +38 -0
  46. pbi_cli/governance/rules/measure_naming.py +93 -0
  47. pbi_cli/governance/rules/table_pascal_case.py +44 -0
  48. pbi_cli/intelligence/__init__.py +1 -0
  49. pbi_cli/intelligence/layout_engine.py +192 -0
  50. pbi_cli/intelligence/measure_generator.py +40 -0
  51. pbi_cli/intelligence/theme_generator.py +193 -0
  52. pbi_cli/intelligence/visual_builder.py +429 -0
  53. pbi_cli/intelligence/visual_recommender.py +42 -0
  54. pbi_cli/server/__init__.py +1 -0
  55. pbi_cli/server/api.py +185 -0
  56. pbi_enterprise_cli-0.1.0.dev0.dist-info/METADATA +103 -0
  57. pbi_enterprise_cli-0.1.0.dev0.dist-info/RECORD +61 -0
  58. pbi_enterprise_cli-0.1.0.dev0.dist-info/WHEEL +5 -0
  59. pbi_enterprise_cli-0.1.0.dev0.dist-info/entry_points.txt +2 -0
  60. pbi_enterprise_cli-0.1.0.dev0.dist-info/licenses/LICENSE +21 -0
  61. pbi_enterprise_cli-0.1.0.dev0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,103 @@
1
+ Metadata-Version: 2.4
2
+ Name: pbi-enterprise-cli
3
+ Version: 0.1.0.dev0
4
+ Summary: Power BI enterprise CLI — AI-driven model management, governance, PBIR authoring, XMLA, and DAX testing
5
+ Author-email: Mudassir <mir.mudassir1@gmail.com>
6
+ License: MIT AND LicenseRef-Microsoft-AS-Client-Libraries
7
+ Project-URL: Homepage, https://github.com/mudassir09/pbi-enterprise-cli
8
+ Project-URL: Repository, https://github.com/mudassir09/pbi-enterprise-cli
9
+ Project-URL: Bug Tracker, https://github.com/mudassir09/pbi-enterprise-cli/issues
10
+ Project-URL: Changelog, https://github.com/mudassir09/pbi-enterprise-cli/blob/main/CHANGELOG.md
11
+ Keywords: power-bi,cli,dax,tmdl,pbir,powerbi,microsoft,governance
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Information Technology
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Operating System :: OS Independent
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.10
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Classifier: Topic :: Office/Business
24
+ Requires-Python: >=3.10
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE
27
+ Requires-Dist: click>=8.1
28
+ Requires-Dist: rich>=13.0
29
+ Requires-Dist: pythonnet>=3.0
30
+ Requires-Dist: pydantic>=2.0
31
+ Requires-Dist: python-dotenv>=1.0
32
+ Requires-Dist: PyYAML>=6.0
33
+ Provides-Extra: ai
34
+ Requires-Dist: anthropic>=0.25; extra == "ai"
35
+ Provides-Extra: viz
36
+ Requires-Dist: Pillow>=10.0; extra == "viz"
37
+ Requires-Dist: python-wcag-contrast-ratio>=1.0; extra == "viz"
38
+ Requires-Dist: playwright>=1.44; extra == "viz"
39
+ Provides-Extra: xmla
40
+ Requires-Dist: msal>=1.28; extra == "xmla"
41
+ Provides-Extra: server
42
+ Requires-Dist: fastapi>=0.110; extra == "server"
43
+ Requires-Dist: uvicorn>=0.29; extra == "server"
44
+ Provides-Extra: sources
45
+ Requires-Dist: sqlalchemy>=2.0; extra == "sources"
46
+ Requires-Dist: openpyxl>=3.1; extra == "sources"
47
+ Requires-Dist: httpx>=0.27; extra == "sources"
48
+ Provides-Extra: dev
49
+ Requires-Dist: pytest>=7.0; extra == "dev"
50
+ Requires-Dist: pytest-cov>=4.0; extra == "dev"
51
+ Requires-Dist: ruff>=0.4.0; extra == "dev"
52
+ Requires-Dist: mypy>=1.10; extra == "dev"
53
+ Provides-Extra: all
54
+ Requires-Dist: pbi-enterprise-cli[ai,dev,server,sources,viz,xmla]; extra == "all"
55
+ Dynamic: license-file
56
+
57
+ # pbi-enterprise-cli
58
+
59
+ **Full-stack Power BI enterprise automation from the command line.**
60
+
61
+ ```bash
62
+ pip install pbi-enterprise-cli
63
+ pbi doctor # verify setup
64
+ pbi model tables # list tables in the connected model
65
+ pbi govern check # run governance rules
66
+ ```
67
+
68
+ ## Feature highlights
69
+
70
+ - **25 command groups** covering every layer of Power BI development
71
+ - **32 visual types** — from cards to decomposition trees
72
+ - **3 backends** — Desktop (TOM via pythonnet), XMLA (Premium/Fabric), Mock (CI)
73
+ - **PBIR GA format** — read and write `.pbip` project files directly
74
+ - **Governance engine** — 5 built-in rules + custom plugin system
75
+ - **REST source profiling** — Bearer/API-key auth, OData pagination, star-schema scaffold
76
+ - **REPL mode** — interactive session with tab completion and persistent history
77
+ - **Custom visual SDK** — scaffold, build, package, import `.pbiviz`
78
+ - **AI measure generation** — Claude API integration (requires `[ai]` extra)
79
+ - **24 AI skills** — install Claude Code skills (`pbi skills install --all`)
80
+ - **547 unit tests** passing on Python 3.10–3.12
81
+
82
+ ## Install options
83
+
84
+ ```bash
85
+ pip install pbi-enterprise-cli # base
86
+ pip install "pbi-enterprise-cli[ai]" # + Claude AI
87
+ pip install "pbi-enterprise-cli[xmla]" # + MSAL auth for XMLA
88
+ pip install "pbi-enterprise-cli[sources]" # + SQL/Excel/REST profiling
89
+ pip install "pbi-enterprise-cli[all]" # everything
90
+ ```
91
+
92
+ ## Requirements
93
+
94
+ - Python 3.10+
95
+ - Windows (for Desktop/XMLA backends using .NET AMO)
96
+ - Power BI Desktop (for the `desktop` backend)
97
+
98
+ ## Links
99
+
100
+ - [GitHub Repository](https://github.com/mudassir09/pbi-enterprise-cli)
101
+ - [Full Documentation](https://github.com/mudassir09/pbi-enterprise-cli#readme)
102
+ - [Changelog](https://github.com/mudassir09/pbi-enterprise-cli/blob/main/CHANGELOG.md)
103
+ - [Security Policy](https://github.com/mudassir09/pbi-enterprise-cli/blob/main/SECURITY.md)
@@ -0,0 +1,61 @@
1
+ pbi_cli/__init__.py,sha256=gfxjnBSorJ138d-PaYz_qTVM_pKv9IbidwJLDXNeB-Q,102
2
+ pbi_cli/_audit.py,sha256=FEfBHrrPfDJ8mQfNBVvpSDjs50BANCD6z9Zm06xytmA,1558
3
+ pbi_cli/_snapshot.py,sha256=nX-JqQWM3QHXBbOidFgoj_ssH1L7JziE_ZiQ6Kpc6jE,2902
4
+ pbi_cli/cli.py,sha256=PDcDmg0XNWw7HiKhqRFTBcRQWNHe_TsM3TAY2GprJgs,10518
5
+ pbi_cli/backends/__init__.py,sha256=UOwEc7UL6WyqvF-JiFsiEyBcMW4H2Hl28o72-dokjgE,32
6
+ pbi_cli/backends/mock_backend.py,sha256=3lIBDhRYpax6FCfkZMXcHD4acAb_COHlA6OS5-odFMM,13529
7
+ pbi_cli/backends/pbir_backend.py,sha256=t18y3dV7XUwwbxHgSIOE8LKwGq9mylmjJ5o76q-14m4,32951
8
+ pbi_cli/backends/protocol.py,sha256=6Tk9fTkEVB3mk9yGjghnUhRRiXOWQqZVuHJsTNf5lUM,1891
9
+ pbi_cli/backends/tom_backend.py,sha256=9Hy8hc-jgHDDEQ7qQ2JK2P9AUdc5d9mdf3OgxcQAJkg,23617
10
+ pbi_cli/backends/xmla_backend.py,sha256=hs80kRC6RqzGTmxtIyYLs8eh8DjsqJ5ESVOpvHgePyg,23372
11
+ pbi_cli/commands/__init__.py,sha256=kjdcihxmBzGClbHaCHFLJjhvII2Qpz72OfekenlvVow,38
12
+ pbi_cli/commands/_doctor.py,sha256=GHIdw3HSNuXsCCvJSr5kuysIuqRRVOphN78VN9VnZLo,2225
13
+ pbi_cli/commands/_shared.py,sha256=uhK-GSL9NJfUjRCVz2aijcm5pxPfkVnh6onPPh2b3sk,2800
14
+ pbi_cli/commands/calendar_cmd.py,sha256=ZCDFiWgKSa6Ms328-1jbJi5hm9X2Qhw7nbqH8F3hZEE,6862
15
+ pbi_cli/commands/connections.py,sha256=S6czwCup30Vr93FHLOx7R5Kad8KRWbsZqP1iMR7Md5M,5235
16
+ pbi_cli/commands/custom_visual.py,sha256=al-jb92c5pHHbvy2Sm8vyDkHEADoVw1XhWBaxdFG-1c,11184
17
+ pbi_cli/commands/database.py,sha256=-03RYusWMNtcUAieQdQkfHPgXcw_TXxGagkRHSfHVA8,2500
18
+ pbi_cli/commands/dax.py,sha256=qRFDVVWKtbISnjyGYzeT0-552uOtmmI2FO41sdtfFQc,6589
19
+ pbi_cli/commands/deploy.py,sha256=1UMHxCTlRLwXsmRiEY-4IvUgy0j4Usso5-ZOIm7KcYs,7305
20
+ pbi_cli/commands/docs.py,sha256=PoJvELYNsEXk4MKDJZGgXNKIftO8ZJRzrsUKPztTMg8,1957
21
+ pbi_cli/commands/filter_cmd.py,sha256=5R6u9YcCOOYd-c0yv55C0KJQQ6NJFC0N55sOq7oXtww,7747
22
+ pbi_cli/commands/govern.py,sha256=picHfB02JtquNJeh_auIofAmXKVdKCcSYvnuE2giNb0,4246
23
+ pbi_cli/commands/layout.py,sha256=yHx4b0rrllGyHHuZ5TFkT0puDJt2uluqA9sfVx3YafM,3879
24
+ pbi_cli/commands/measure.py,sha256=CBevo610_3Tsm6pI68-gABmKlmpvioTNRdgQMdXfloU,7354
25
+ pbi_cli/commands/model.py,sha256=5qtpyeRSQoIz8OF5wWQC0O2nyj4WLwjGFZT9mHgjDJY,18224
26
+ pbi_cli/commands/partition.py,sha256=_qpopq07AjGYDTdEm0tZ1sPEQTNqu3x8vSjzvZgqbH4,3488
27
+ pbi_cli/commands/repl.py,sha256=y7SHc9rGlk-R5htPOK_2rkLz7a7q2Hx0elTTslgq5gk,5858
28
+ pbi_cli/commands/report.py,sha256=XPQekT6lvqAInASsnh_xwsQtQx3z6MFtTGlL_udcgMs,21744
29
+ pbi_cli/commands/security.py,sha256=XnZp4o48M64Xrl9IvzcKGhjzTFuQVxNgq69USrRMLpw,3258
30
+ pbi_cli/commands/server_cmd.py,sha256=4Odk_u9evaeI2mRcqZvr5fKq1FW4RpjmLkQZzXGMVHg,885
31
+ pbi_cli/commands/skills_cmd.py,sha256=1vp9c08wPgjM90cs0h_GRm2V0AKhhk0U5GNXMpTHYjo,6831
32
+ pbi_cli/commands/source.py,sha256=MGKNQ7fZpLJP0PZ6zsapMNhXSOgyewyAp0_jdxzaPzY,20706
33
+ pbi_cli/commands/theme.py,sha256=tbmgvijPUfNXPkCxZktRAtPntgpatZ6LE5Kk4iyFlJ8,2215
34
+ pbi_cli/commands/trace.py,sha256=-Nl5j6tJ3SlDe_PF3RZtFNeYdy8MZwGr5UeOohdFafI,4796
35
+ pbi_cli/commands/visual.py,sha256=27KuZyKyLP5YHcJDiyHun46tQotgVddpA6nG3LPfr4Q,20768
36
+ pbi_cli/commands/watch.py,sha256=4bBodnC2X5Q8fyknWlKRgbiM0l3a94kUCqdBjhIaj2I,4932
37
+ pbi_cli/docs_gen/__init__.py,sha256=n_5I83VOIt5gZe0pHiMOA-nG4YGh4uoJUMXq5o2TymU,52
38
+ pbi_cli/docs_gen/confluence.py,sha256=BiZ_Z6tFPoMK_rkLGeLics6REAmF6WEI2euIhoJze9Q,772
39
+ pbi_cli/docs_gen/markdown.py,sha256=Sr_32Y-0rlDf5yaAudKq1IwsK0YfW23MqlvZWw9VPNA,1389
40
+ pbi_cli/governance/__init__.py,sha256=aXEbGQH6sutzQPT8iMjCs1gnbU5WrbrfSiTSSVCyJSc,37
41
+ pbi_cli/governance/engine.py,sha256=RkGOv19RBQpwQ6NHsANCMgKePhCLSVG82DY5zxuDLs8,2623
42
+ pbi_cli/governance/rules/__init__.py,sha256=9xOFHywY3Jv1Teu3R1MCjyTe2FTgwYM0um75ubtrz30,2764
43
+ pbi_cli/governance/rules/measure_brackets.py,sha256=gU0KRLkXFGul46B29n-D4XUz6Ks3EGnj_bXuqqZeTFE,897
44
+ pbi_cli/governance/rules/measure_description.py,sha256=wxyxYsTY7FEbzDo9gmTX6rWnI6rW1zEiF-myD3WlaNA,1394
45
+ pbi_cli/governance/rules/measure_format.py,sha256=hHJiM5PzcS7Z_IzXnyr9wcB4EpIJj0C79Jjr3WmbcuY,1183
46
+ pbi_cli/governance/rules/measure_naming.py,sha256=ctCzO8KbZWlkBAcJUPd1_0_M8iGb8pKwhJYkgqlneRA,3272
47
+ pbi_cli/governance/rules/table_pascal_case.py,sha256=9CCyuNB-coaZ-T-IqBgKJMSvNF1flEeAAvDjLAd31L0,1337
48
+ pbi_cli/intelligence/__init__.py,sha256=5vxSKE1iCG2U5EZ0XdcxK7_ebzXVig3kIflEbHmvqck,40
49
+ pbi_cli/intelligence/layout_engine.py,sha256=2IKHoOmmlwxg9OAAf7Ai1bHBBUOSwA92UmgqGE0zqmg,5518
50
+ pbi_cli/intelligence/measure_generator.py,sha256=3yxBDOYdjl2yWGDhOfXVEIh-Vq8Aj_TKt3XyjiEY5vc,1664
51
+ pbi_cli/intelligence/theme_generator.py,sha256=duDJ_WLhY_ygOlv-BkK8kWMZD9ko3AbpD47JZCqSzBA,7258
52
+ pbi_cli/intelligence/visual_builder.py,sha256=jcV_eCi8lMNrfdTzG3WeDWnD90cJJLLDuDIk7QgpLkE,13561
53
+ pbi_cli/intelligence/visual_recommender.py,sha256=r0Rqa8S38FX6dLKk6OLtF2T8zg0BjrQmxWzICiBnT_g,1660
54
+ pbi_cli/server/__init__.py,sha256=9UyeH7LJ3PTRrjQL_x8R7nQ7ID-PtcZTK5Y7JrdMAL4,42
55
+ pbi_cli/server/api.py,sha256=-O8-_lc7oKlYCRAIHN79KHEWxDwlcKSllGYq5EKSm6Q,7602
56
+ pbi_enterprise_cli-0.1.0.dev0.dist-info/licenses/LICENSE,sha256=To21Z1huMDExSuBltTBG76Wg1nar_DUm3eKPKXnqAxA,1065
57
+ pbi_enterprise_cli-0.1.0.dev0.dist-info/METADATA,sha256=4wsW1hsT-tKYGTOR9arpGMcH5w0y22jtMYjW1M4sz-k,4349
58
+ pbi_enterprise_cli-0.1.0.dev0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
59
+ pbi_enterprise_cli-0.1.0.dev0.dist-info/entry_points.txt,sha256=XeHOu0A4q5jRT_AZYbVPXwLuT1sIm-8nAj6CfJ692fw,40
60
+ pbi_enterprise_cli-0.1.0.dev0.dist-info/top_level.txt,sha256=aleYNHn8O_gCbBMf8BURgCmBaWCS0ziQbNfV_fv4QAs,8
61
+ pbi_enterprise_cli-0.1.0.dev0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (82.0.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ pbi = pbi_cli.cli:cli
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mudassir
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ pbi_cli