bideux 0.1.2__tar.gz

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 (127) hide show
  1. bideux-0.1.2/.gitignore +24 -0
  2. bideux-0.1.2/LICENSE +202 -0
  3. bideux-0.1.2/PKG-INFO +157 -0
  4. bideux-0.1.2/README.md +114 -0
  5. bideux-0.1.2/hatch_build.py +42 -0
  6. bideux-0.1.2/pyproject.toml +139 -0
  7. bideux-0.1.2/src/bideux/__init__.py +157 -0
  8. bideux-0.1.2/src/bideux/_guard.py +62 -0
  9. bideux-0.1.2/src/bideux/authoring.py +12 -0
  10. bideux-0.1.2/src/bideux/cli.py +118 -0
  11. bideux-0.1.2/src/bideux/core.py +12 -0
  12. bideux-0.1.2/src/bideux/corpus.py +19 -0
  13. bideux-0.1.2/src/bideux/demo.py +200 -0
  14. bideux-0.1.2/src/bideux/doctor.py +249 -0
  15. bideux-0.1.2/src/bideux/engine.py +14 -0
  16. bideux-0.1.2/src/bideux/fastapi/__init__.py +62 -0
  17. bideux-0.1.2/src/bideux/fastapi/authoring.py +472 -0
  18. bideux-0.1.2/src/bideux/fastapi/dashboards.py +381 -0
  19. bideux-0.1.2/src/bideux/fastapi/mount.py +354 -0
  20. bideux-0.1.2/src/bideux/fastapi/reader.py +227 -0
  21. bideux-0.1.2/src/bideux/fastapi/reports.py +95 -0
  22. bideux-0.1.2/src/bideux/hosting.py +387 -0
  23. bideux-0.1.2/src/bideux/init.py +109 -0
  24. bideux-0.1.2/src/bideux/py.typed +0 -0
  25. bideux-0.1.2/src/bideux/quickstart.py +154 -0
  26. bideux-0.1.2/src/bideux/report.py +12 -0
  27. bideux-0.1.2/src/bideux/server.py +12 -0
  28. bideux-0.1.2/src/bideux/spec.py +13 -0
  29. bideux-0.1.2/src/bideux/store.py +12 -0
  30. bideux-0.1.2/tests/test_cli.py +124 -0
  31. bideux-0.1.2/tests/test_distribution.py +84 -0
  32. bideux-0.1.2/tests/test_fastapi_routes.py +85 -0
  33. bideux-0.1.2/tests/test_mount_bideux.py +136 -0
  34. bideux-0.1.2/vendor/dashboard_authoring/__init__.py +223 -0
  35. bideux-0.1.2/vendor/dashboard_authoring/checks.py +604 -0
  36. bideux-0.1.2/vendor/dashboard_authoring/drafts.py +621 -0
  37. bideux-0.1.2/vendor/dashboard_authoring/grade.py +427 -0
  38. bideux-0.1.2/vendor/dashboard_authoring/grounding.py +257 -0
  39. bideux-0.1.2/vendor/dashboard_authoring/history.py +233 -0
  40. bideux-0.1.2/vendor/dashboard_authoring/parsing.py +48 -0
  41. bideux-0.1.2/vendor/dashboard_authoring/ports.py +412 -0
  42. bideux-0.1.2/vendor/dashboard_authoring/prompts.py +313 -0
  43. bideux-0.1.2/vendor/dashboard_authoring/py.typed +0 -0
  44. bideux-0.1.2/vendor/dashboard_authoring/render.py +809 -0
  45. bideux-0.1.2/vendor/dashboard_authoring/results.py +129 -0
  46. bideux-0.1.2/vendor/dashboard_authoring/service.py +1510 -0
  47. bideux-0.1.2/vendor/dashboard_authoring/suite.py +394 -0
  48. bideux-0.1.2/vendor/dashboard_authoring/tools.py +252 -0
  49. bideux-0.1.2/vendor/dashboard_authoring/warehouse.py +208 -0
  50. bideux-0.1.2/vendor/dashboard_core/__init__.py +128 -0
  51. bideux-0.1.2/vendor/dashboard_core/cron.py +127 -0
  52. bideux-0.1.2/vendor/dashboard_core/pivot.py +1259 -0
  53. bideux-0.1.2/vendor/dashboard_core/py.typed +0 -0
  54. bideux-0.1.2/vendor/dashboard_core/schedule_filters.py +205 -0
  55. bideux-0.1.2/vendor/dashboard_core/schedule_timing.py +184 -0
  56. bideux-0.1.2/vendor/dashboard_core/tokens.py +76 -0
  57. bideux-0.1.2/vendor/dashboard_engine/__init__.py +198 -0
  58. bideux-0.1.2/vendor/dashboard_engine/diagnostics.py +664 -0
  59. bideux-0.1.2/vendor/dashboard_engine/errors.py +48 -0
  60. bideux-0.1.2/vendor/dashboard_engine/execution.py +1146 -0
  61. bideux-0.1.2/vendor/dashboard_engine/expressions.py +725 -0
  62. bideux-0.1.2/vendor/dashboard_engine/periods.py +320 -0
  63. bideux-0.1.2/vendor/dashboard_engine/planning.py +665 -0
  64. bideux-0.1.2/vendor/dashboard_engine/ports.py +161 -0
  65. bideux-0.1.2/vendor/dashboard_engine/py.typed +0 -0
  66. bideux-0.1.2/vendor/dashboard_engine/reference.py +634 -0
  67. bideux-0.1.2/vendor/dashboard_engine/results.py +38 -0
  68. bideux-0.1.2/vendor/dashboard_engine/sql.py +490 -0
  69. bideux-0.1.2/vendor/dashboard_engine/tables.py +322 -0
  70. bideux-0.1.2/vendor/dashboard_engine/testing.py +245 -0
  71. bideux-0.1.2/vendor/dashboard_engine/widgets.py +717 -0
  72. bideux-0.1.2/vendor/dashboard_report/__init__.py +91 -0
  73. bideux-0.1.2/vendor/dashboard_report/bands.py +474 -0
  74. bideux-0.1.2/vendor/dashboard_report/charts.py +568 -0
  75. bideux-0.1.2/vendor/dashboard_report/constants.py +328 -0
  76. bideux-0.1.2/vendor/dashboard_report/csv_report.py +110 -0
  77. bideux-0.1.2/vendor/dashboard_report/deck.py +2554 -0
  78. bideux-0.1.2/vendor/dashboard_report/logos.py +104 -0
  79. bideux-0.1.2/vendor/dashboard_report/pages.py +1279 -0
  80. bideux-0.1.2/vendor/dashboard_report/pictures.py +55 -0
  81. bideux-0.1.2/vendor/dashboard_report/pivots.py +223 -0
  82. bideux-0.1.2/vendor/dashboard_report/plots.py +277 -0
  83. bideux-0.1.2/vendor/dashboard_report/ports.py +170 -0
  84. bideux-0.1.2/vendor/dashboard_report/py.typed +0 -0
  85. bideux-0.1.2/vendor/dashboard_report/report.py +464 -0
  86. bideux-0.1.2/vendor/dashboard_report/sections.py +516 -0
  87. bideux-0.1.2/vendor/dashboard_report/service.py +165 -0
  88. bideux-0.1.2/vendor/dashboard_report/theme.py +142 -0
  89. bideux-0.1.2/vendor/dashboard_report/values.py +235 -0
  90. bideux-0.1.2/vendor/dashboard_report/workbook.py +1087 -0
  91. bideux-0.1.2/vendor/dashboard_server/__init__.py +187 -0
  92. bideux-0.1.2/vendor/dashboard_server/access.py +201 -0
  93. bideux-0.1.2/vendor/dashboard_server/documents.py +373 -0
  94. bideux-0.1.2/vendor/dashboard_server/errors.py +104 -0
  95. bideux-0.1.2/vendor/dashboard_server/memory.py +660 -0
  96. bideux-0.1.2/vendor/dashboard_server/ports.py +264 -0
  97. bideux-0.1.2/vendor/dashboard_server/principals.py +93 -0
  98. bideux-0.1.2/vendor/dashboard_server/py.typed +0 -0
  99. bideux-0.1.2/vendor/dashboard_server/records.py +193 -0
  100. bideux-0.1.2/vendor/dashboard_server/service.py +1441 -0
  101. bideux-0.1.2/vendor/dashboard_spec/__init__.py +72 -0
  102. bideux-0.1.2/vendor/dashboard_spec/diagnostics.py +22 -0
  103. bideux-0.1.2/vendor/dashboard_spec/migrations.py +59 -0
  104. bideux-0.1.2/vendor/dashboard_spec/model_schema.py +44 -0
  105. bideux-0.1.2/vendor/dashboard_spec/models.py +988 -0
  106. bideux-0.1.2/vendor/dashboard_spec/parsing.py +185 -0
  107. bideux-0.1.2/vendor/dashboard_spec/py.typed +0 -0
  108. bideux-0.1.2/vendor/dashboard_spec/round_trip.py +37 -0
  109. bideux-0.1.2/vendor/dashboard_spec/schema.py +60 -0
  110. bideux-0.1.2/vendor/dashboard_spec/schema_aliases.py +43 -0
  111. bideux-0.1.2/vendor/dashboard_spec/slugs.py +43 -0
  112. bideux-0.1.2/vendor/dashboard_spec/widget_schema.py +570 -0
  113. bideux-0.1.2/vendor/dashboard_store/__init__.py +133 -0
  114. bideux-0.1.2/vendor/dashboard_store/authoring/__init__.py +1 -0
  115. bideux-0.1.2/vendor/dashboard_store/authoring/history.py +314 -0
  116. bideux-0.1.2/vendor/dashboard_store/binding.py +217 -0
  117. bideux-0.1.2/vendor/dashboard_store/config.py +404 -0
  118. bideux-0.1.2/vendor/dashboard_store/creation.py +145 -0
  119. bideux-0.1.2/vendor/dashboard_store/diagnostics.py +318 -0
  120. bideux-0.1.2/vendor/dashboard_store/inspection.py +599 -0
  121. bideux-0.1.2/vendor/dashboard_store/manifest.py +416 -0
  122. bideux-0.1.2/vendor/dashboard_store/model_repository.py +226 -0
  123. bideux-0.1.2/vendor/dashboard_store/py.typed +0 -0
  124. bideux-0.1.2/vendor/dashboard_store/repository.py +585 -0
  125. bideux-0.1.2/vendor/dashboard_store/rows.py +453 -0
  126. bideux-0.1.2/vendor/dashboard_store/schedule_repository.py +310 -0
  127. bideux-0.1.2/vendor/dashboard_store/share_repository.py +200 -0
@@ -0,0 +1,24 @@
1
+ node_modules/
2
+ dist/
3
+ *.tsbuildinfo
4
+ .venv/
5
+ __pycache__/
6
+ *.egg-info/
7
+ .pytest_cache/
8
+ .mypy_cache/
9
+ .ruff_cache/
10
+ .vitest/
11
+ coverage/
12
+ playwright-report/
13
+ test-results/
14
+ .DS_Store
15
+ *.sqlite3
16
+
17
+ vendor/
18
+ wheelhouse/
19
+ out/
20
+ .next/
21
+ .angular/
22
+ next-env.d.ts
23
+ examples/fresh-project/public/
24
+ artifacts/
bideux-0.1.2/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Datalakehouse (dlh.io)
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
bideux-0.1.2/PKG-INFO ADDED
@@ -0,0 +1,157 @@
1
+ Metadata-Version: 2.4
2
+ Name: bideux
3
+ Version: 0.1.2
4
+ Summary: Bideux dashboards in one install: spec, core, engine, store, server, report and authoring.
5
+ Project-URL: Homepage, https://github.com/datalakehouse/bideux-working
6
+ Project-URL: Repository, https://github.com/datalakehouse/bideux-working
7
+ Project-URL: Documentation, https://github.com/datalakehouse/bideux-working/tree/develop/docs
8
+ Project-URL: Issues, https://github.com/datalakehouse/bideux-working/issues
9
+ Author: Bideux contributors
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: bideux,dashboard,fastapi,reports,semantic-model
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Topic :: Software Development :: Libraries
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: <3.13,>=3.12
22
+ Requires-Dist: croniter==6.0.0
23
+ Requires-Dist: openpyxl==3.1.5
24
+ Requires-Dist: pillow==11.3.0
25
+ Requires-Dist: pydantic==2.13.4
26
+ Requires-Dist: python-dateutil==2.9.0.post0
27
+ Requires-Dist: python-pptx==1.0.2
28
+ Requires-Dist: pyyaml==6.0.2
29
+ Requires-Dist: ruamel-yaml==0.18.10
30
+ Requires-Dist: sqlalchemy>=2.0
31
+ Requires-Dist: sqlglot==27.14.0
32
+ Provides-Extra: demo
33
+ Requires-Dist: aiosqlite==0.21.0; extra == 'demo'
34
+ Requires-Dist: fastapi<1,>=0.115; extra == 'demo'
35
+ Requires-Dist: uvicorn<1,>=0.30; extra == 'demo'
36
+ Provides-Extra: fastapi
37
+ Requires-Dist: fastapi<1,>=0.115; extra == 'fastapi'
38
+ Provides-Extra: postgres
39
+ Requires-Dist: asyncpg==0.30.0; extra == 'postgres'
40
+ Provides-Extra: sqlite
41
+ Requires-Dist: aiosqlite==0.21.0; extra == 'sqlite'
42
+ Description-Content-Type: text/markdown
43
+
44
+ # `bideux`
45
+
46
+ Bideux dashboards in one install. This wheel carries the seven active Python
47
+ packages, `dashboard_spec`, `dashboard_core`, `dashboard_engine`,
48
+ `dashboard_store`, `dashboard_server`, `dashboard_report` and
49
+ `dashboard_authoring`, under their own import names, plus a `bideux` namespace
50
+ that re-exports the objects a host touches.
51
+
52
+ ```bash
53
+ uv add bideux # the packages, no web framework
54
+ uv add "bideux[fastapi,sqlite]" # plus the reader router and aiosqlite
55
+ uv add "bideux[fastapi,postgres]"
56
+ ```
57
+
58
+ The granular `bideux-dashboard-*` wheels are unchanged and keep publishing. Pick
59
+ one family per environment: both provide the same `dashboard_*` modules, so
60
+ `import bideux` warns (`BideuxInstallConflict`) when it finds a granular
61
+ distribution next to it.
62
+
63
+ ## What you import
64
+
65
+ ```python
66
+ from bideux import Caller, DashboardService, DashboardReportService, Principal, ScopeContext
67
+ from bideux import Repositories, ServiceOptions # ports and options
68
+ from bideux import DashboardAccessError, DashboardNotFoundError
69
+ from bideux.store import DashboardModelRepository # one namespace per layer
70
+ from bideux.engine import ReferenceWarehouse, FixedClock
71
+ ```
72
+
73
+ `bideux.spec`, `bideux.core`, `bideux.engine`, `bideux.store`, `bideux.server`,
74
+ `bideux.report` and `bideux.authoring` re-export every public name of the
75
+ matching layer, so a host never has to type a granular module name. The granular
76
+ names still work: every `from dashboard_server import ...` that runs against the
77
+ granular packages runs here unchanged. `bideux` is the short path, not a new
78
+ API.
79
+
80
+ ## One call: `mount_bideux` (extra `fastapi`)
81
+
82
+ ```python
83
+ from fastapi import FastAPI, Request
84
+ from bideux.fastapi import mount_bideux
85
+ from bideux.hosting import HostAdapter
86
+
87
+ class MyHost(HostAdapter):
88
+ async def caller(self, request: Request) -> Caller: ... # who is asking
89
+ def warehouse(self, caller: Caller) -> WarehousePort: ... # where the rows are
90
+
91
+ app = FastAPI()
92
+ bideux = mount_bideux(app, host=MyHost(), database_url="sqlite+aiosqlite:///dashboards.sqlite3")
93
+ ```
94
+
95
+ That installs the reader, dashboard management and sharing, authoring, semantic
96
+ model and report routes under `/api/dashboards`, creates the store tables on
97
+ startup, and is the API `BideuxDashboard`, `BideuxDashboardList` and the
98
+ `<bideux-dashboard>` element expect. Every other port (`locations`, `directory`,
99
+ `audit`, `cache`, `engine`, `report_builder`, ...) has a default on
100
+ `HostAdapter` and is overridden by method; `BideuxFeatures` switches route
101
+ groups off; `bideux.report_service(caller)` is the port a host scheduler calls.
102
+
103
+ ## The `bideux` command
104
+
105
+ ```bash
106
+ bideux demo # seeded API and page on http://127.0.0.1:5477 (needs bideux[demo] and the repo's conformance/fixtures)
107
+ bideux init my-app # writes bideux_host.py and dashboard.html to start from
108
+ bideux doctor . # checks the Python and Node install: versions, extras, mixed packages, stale node_modules
109
+ ```
110
+
111
+ ## `bideux.fastapi` piece by piece
112
+
113
+ The four reader routes the React reader and `@dlh.io/bideux`'s
114
+ `createHttpDashboardTransport` call, driven by one host-supplied factory:
115
+
116
+ ```python
117
+ from contextlib import asynccontextmanager
118
+ from bideux.fastapi import build_reader_router, install_error_handlers
119
+
120
+ @asynccontextmanager
121
+ async def service_for(request: Request):
122
+ caller = await authenticate(request) # the host's identity
123
+ async with sessions.begin() as session: # the host's database
124
+ yield DashboardService(caller=caller, repositories=repos(session), engines=engine_for, ...)
125
+
126
+ app.include_router(build_reader_router(service_for, prefix="/api/custom-dashboards"))
127
+ install_error_handlers(app)
128
+ ```
129
+
130
+ `build_dashboard_router`, `build_authoring_router` and `build_report_router` are
131
+ the other groups `mount_bideux` installs, usable one by one the same way.
132
+
133
+ ## `bideux.quickstart`
134
+
135
+ ```python
136
+ from bideux.quickstart import DashboardDocuments, local_caller, memory_service
137
+
138
+ service = memory_service(
139
+ caller=local_caller("olive"),
140
+ dashboards=[DashboardDocuments(dashboard_yaml, [kpi_yaml, chart_yaml])],
141
+ tables={"MART.RPT_DAILY_SALES_SUMMARY": rows},
142
+ )
143
+ render = await service.get_dashboard_render("sales-overview")
144
+ ```
145
+
146
+ No database, no warehouse: in-memory repositories and the reference SQL
147
+ evaluator. Each keyword is a port a host later replaces.
148
+
149
+ ## Not included
150
+
151
+ Scheduling. `bideux-dashboard-schedule` is deprecated and left out; a host owns
152
+ its schedules and calls `DashboardReportService.render` for the bytes.
153
+
154
+ ## Version
155
+
156
+ `bideux` tracks the version of the packages it bundles; the release script
157
+ refuses to publish when they differ.
bideux-0.1.2/README.md ADDED
@@ -0,0 +1,114 @@
1
+ # `bideux`
2
+
3
+ Bideux dashboards in one install. This wheel carries the seven active Python
4
+ packages, `dashboard_spec`, `dashboard_core`, `dashboard_engine`,
5
+ `dashboard_store`, `dashboard_server`, `dashboard_report` and
6
+ `dashboard_authoring`, under their own import names, plus a `bideux` namespace
7
+ that re-exports the objects a host touches.
8
+
9
+ ```bash
10
+ uv add bideux # the packages, no web framework
11
+ uv add "bideux[fastapi,sqlite]" # plus the reader router and aiosqlite
12
+ uv add "bideux[fastapi,postgres]"
13
+ ```
14
+
15
+ The granular `bideux-dashboard-*` wheels are unchanged and keep publishing. Pick
16
+ one family per environment: both provide the same `dashboard_*` modules, so
17
+ `import bideux` warns (`BideuxInstallConflict`) when it finds a granular
18
+ distribution next to it.
19
+
20
+ ## What you import
21
+
22
+ ```python
23
+ from bideux import Caller, DashboardService, DashboardReportService, Principal, ScopeContext
24
+ from bideux import Repositories, ServiceOptions # ports and options
25
+ from bideux import DashboardAccessError, DashboardNotFoundError
26
+ from bideux.store import DashboardModelRepository # one namespace per layer
27
+ from bideux.engine import ReferenceWarehouse, FixedClock
28
+ ```
29
+
30
+ `bideux.spec`, `bideux.core`, `bideux.engine`, `bideux.store`, `bideux.server`,
31
+ `bideux.report` and `bideux.authoring` re-export every public name of the
32
+ matching layer, so a host never has to type a granular module name. The granular
33
+ names still work: every `from dashboard_server import ...` that runs against the
34
+ granular packages runs here unchanged. `bideux` is the short path, not a new
35
+ API.
36
+
37
+ ## One call: `mount_bideux` (extra `fastapi`)
38
+
39
+ ```python
40
+ from fastapi import FastAPI, Request
41
+ from bideux.fastapi import mount_bideux
42
+ from bideux.hosting import HostAdapter
43
+
44
+ class MyHost(HostAdapter):
45
+ async def caller(self, request: Request) -> Caller: ... # who is asking
46
+ def warehouse(self, caller: Caller) -> WarehousePort: ... # where the rows are
47
+
48
+ app = FastAPI()
49
+ bideux = mount_bideux(app, host=MyHost(), database_url="sqlite+aiosqlite:///dashboards.sqlite3")
50
+ ```
51
+
52
+ That installs the reader, dashboard management and sharing, authoring, semantic
53
+ model and report routes under `/api/dashboards`, creates the store tables on
54
+ startup, and is the API `BideuxDashboard`, `BideuxDashboardList` and the
55
+ `<bideux-dashboard>` element expect. Every other port (`locations`, `directory`,
56
+ `audit`, `cache`, `engine`, `report_builder`, ...) has a default on
57
+ `HostAdapter` and is overridden by method; `BideuxFeatures` switches route
58
+ groups off; `bideux.report_service(caller)` is the port a host scheduler calls.
59
+
60
+ ## The `bideux` command
61
+
62
+ ```bash
63
+ bideux demo # seeded API and page on http://127.0.0.1:5477 (needs bideux[demo] and the repo's conformance/fixtures)
64
+ bideux init my-app # writes bideux_host.py and dashboard.html to start from
65
+ bideux doctor . # checks the Python and Node install: versions, extras, mixed packages, stale node_modules
66
+ ```
67
+
68
+ ## `bideux.fastapi` piece by piece
69
+
70
+ The four reader routes the React reader and `@dlh.io/bideux`'s
71
+ `createHttpDashboardTransport` call, driven by one host-supplied factory:
72
+
73
+ ```python
74
+ from contextlib import asynccontextmanager
75
+ from bideux.fastapi import build_reader_router, install_error_handlers
76
+
77
+ @asynccontextmanager
78
+ async def service_for(request: Request):
79
+ caller = await authenticate(request) # the host's identity
80
+ async with sessions.begin() as session: # the host's database
81
+ yield DashboardService(caller=caller, repositories=repos(session), engines=engine_for, ...)
82
+
83
+ app.include_router(build_reader_router(service_for, prefix="/api/custom-dashboards"))
84
+ install_error_handlers(app)
85
+ ```
86
+
87
+ `build_dashboard_router`, `build_authoring_router` and `build_report_router` are
88
+ the other groups `mount_bideux` installs, usable one by one the same way.
89
+
90
+ ## `bideux.quickstart`
91
+
92
+ ```python
93
+ from bideux.quickstart import DashboardDocuments, local_caller, memory_service
94
+
95
+ service = memory_service(
96
+ caller=local_caller("olive"),
97
+ dashboards=[DashboardDocuments(dashboard_yaml, [kpi_yaml, chart_yaml])],
98
+ tables={"MART.RPT_DAILY_SALES_SUMMARY": rows},
99
+ )
100
+ render = await service.get_dashboard_render("sales-overview")
101
+ ```
102
+
103
+ No database, no warehouse: in-memory repositories and the reference SQL
104
+ evaluator. Each keyword is a port a host later replaces.
105
+
106
+ ## Not included
107
+
108
+ Scheduling. `bideux-dashboard-schedule` is deprecated and left out; a host owns
109
+ its schedules and calls `DashboardReportService.render` for the bytes.
110
+
111
+ ## Version
112
+
113
+ `bideux` tracks the version of the packages it bundles; the release script
114
+ refuses to publish when they differ.
@@ -0,0 +1,42 @@
1
+ """Put the seven dashboard_* packages into the wheel.
2
+
3
+ Their source lives in sibling projects in the repository (``../engine/src``
4
+ and so on) and, inside an sdist, under ``vendor/``. The hook finds whichever
5
+ is present so ``uv build`` works from both.
6
+ """
7
+
8
+ from __future__ import annotations
9
+
10
+ from pathlib import Path
11
+
12
+ from hatchling.builders.config import BuilderConfig
13
+ from hatchling.builders.hooks.plugin.interface import BuildHookInterface
14
+
15
+ BUNDLED: dict[str, str] = {
16
+ "dashboard_spec": "dashboard_spec",
17
+ "dashboard_core": "dashboard_core",
18
+ "dashboard_engine": "engine",
19
+ "dashboard_store": "store",
20
+ "dashboard_server": "server",
21
+ "dashboard_report": "report",
22
+ "dashboard_authoring": "authoring",
23
+ }
24
+
25
+
26
+ def source_for(root: Path, package: str, project: str) -> Path:
27
+ for candidate in (root.parent / project / "src" / package, root / "vendor" / package):
28
+ if candidate.is_dir():
29
+ return candidate
30
+ raise FileNotFoundError(f"{package}: not at ../{project}/src nor vendor/")
31
+
32
+
33
+ class BundleHook(BuildHookInterface[BuilderConfig]):
34
+ PLUGIN_NAME = "bundle"
35
+
36
+ def initialize(self, version: str, build_data: dict[str, object]) -> None:
37
+ del version
38
+ root = Path(self.root)
39
+ forced = build_data.setdefault("force_include", {})
40
+ assert isinstance(forced, dict)
41
+ for package, project in BUNDLED.items():
42
+ forced[str(source_for(root, package, project))] = package
@@ -0,0 +1,139 @@
1
+ [project]
2
+ name = "bideux"
3
+ version = "0.1.2"
4
+ description = "Bideux dashboards in one install: spec, core, engine, store, server, report and authoring."
5
+ readme = "README.md"
6
+ requires-python = ">=3.12,<3.13"
7
+ license = "Apache-2.0"
8
+ license-files = ["LICENSE"]
9
+ authors = [{ name = "Bideux contributors" }]
10
+ keywords = ["bideux", "dashboard", "fastapi", "semantic-model", "reports"]
11
+ classifiers = [
12
+ "Development Status :: 4 - Beta",
13
+ "Intended Audience :: Developers",
14
+ "Operating System :: OS Independent",
15
+ "Programming Language :: Python :: 3",
16
+ "Programming Language :: Python :: 3.12",
17
+ "Programming Language :: Python :: 3 :: Only",
18
+ "Topic :: Software Development :: Libraries",
19
+ "Typing :: Typed",
20
+ ]
21
+ # The union of the seven bundled packages' runtime dependencies. Nothing here
22
+ # depends on a bideux-dashboard-* distribution: those trees ship inside this wheel.
23
+ dependencies = [
24
+ "croniter==6.0.0",
25
+ "openpyxl==3.1.5",
26
+ "pillow==11.3.0",
27
+ "pydantic==2.13.4",
28
+ "python-dateutil==2.9.0.post0",
29
+ "python-pptx==1.0.2",
30
+ "pyyaml==6.0.2",
31
+ "ruamel-yaml==0.18.10",
32
+ "sqlalchemy>=2.0",
33
+ "sqlglot==27.14.0",
34
+ ]
35
+
36
+ [project.optional-dependencies]
37
+ fastapi = ["fastapi>=0.115,<1"]
38
+ demo = ["fastapi>=0.115,<1", "aiosqlite==0.21.0", "uvicorn>=0.30,<1"]
39
+ postgres = ["asyncpg==0.30.0"]
40
+ sqlite = ["aiosqlite==0.21.0"]
41
+
42
+ [project.scripts]
43
+ bideux = "bideux.cli:main"
44
+
45
+ [project.urls]
46
+ Homepage = "https://github.com/datalakehouse/bideux-working"
47
+ Repository = "https://github.com/datalakehouse/bideux-working"
48
+ Documentation = "https://github.com/datalakehouse/bideux-working/tree/develop/docs"
49
+ Issues = "https://github.com/datalakehouse/bideux-working/issues"
50
+
51
+ [dependency-groups]
52
+ dev = [
53
+ "aiosqlite==0.21.0",
54
+ "fastapi==0.116.1",
55
+ "hatchling==1.27.0",
56
+ "httpx==0.28.1",
57
+ "mypy==1.17.1",
58
+ "pytest==8.4.1",
59
+ "ruff==0.12.9",
60
+ "types-openpyxl==3.1.5.20250919",
61
+ "types-python-dateutil>=2.9.0.20250516",
62
+ "types-pyyaml==6.0.12.20250915",
63
+ "uvicorn==0.35.0",
64
+ ]
65
+
66
+ [build-system]
67
+ requires = ["hatchling==1.27.0"]
68
+ build-backend = "hatchling.build"
69
+
70
+ # One wheel, eight import packages. The seven dashboard_* trees are copied from
71
+ # their sibling projects at build time so the modules keep the names every
72
+ # internal import already uses; only `bideux` itself lives in this directory.
73
+ [tool.uv]
74
+ # Rebuild the wheel whenever any of the source trees it bundles changes, so a
75
+ # host that depends on this path (examples/acme-host/api) picks up new modules
76
+ # on a plain `uv sync` instead of needing `--reinstall-package bideux`.
77
+ cache-keys = [
78
+ { file = "pyproject.toml" },
79
+ { file = "hatch_build.py" },
80
+ { file = "src/**/*.py" },
81
+ { file = "../dashboard_spec/src/**/*.py" },
82
+ { file = "../dashboard_core/src/**/*.py" },
83
+ { file = "../engine/src/**/*.py" },
84
+ { file = "../store/src/**/*.py" },
85
+ { file = "../server/src/**/*.py" },
86
+ { file = "../report/src/**/*.py" },
87
+ { file = "../authoring/src/**/*.py" },
88
+ ]
89
+
90
+ [tool.hatch.build.targets.wheel]
91
+ packages = ["src/bideux"]
92
+ # hatch_build.py adds the seven trees, from ../*/src in the repo or vendor/ in the sdist.
93
+ exclude = ["**/__pycache__", "**/*.pyc"]
94
+ dev-mode-dirs = [
95
+ "src",
96
+ "../dashboard_spec/src",
97
+ "../dashboard_core/src",
98
+ "../engine/src",
99
+ "../store/src",
100
+ "../server/src",
101
+ "../report/src",
102
+ "../authoring/src",
103
+ ]
104
+
105
+ [tool.hatch.build.targets.wheel.hooks.custom]
106
+ path = "hatch_build.py"
107
+
108
+ [tool.hatch.build.targets.sdist]
109
+ include = ["src", "tests", "hatch_build.py", "README.md", "LICENSE", "pyproject.toml"]
110
+
111
+ [tool.hatch.build.targets.sdist.force-include]
112
+ "../dashboard_spec/src/dashboard_spec" = "vendor/dashboard_spec"
113
+ "../dashboard_core/src/dashboard_core" = "vendor/dashboard_core"
114
+ "../engine/src/dashboard_engine" = "vendor/dashboard_engine"
115
+ "../store/src/dashboard_store" = "vendor/dashboard_store"
116
+ "../server/src/dashboard_server" = "vendor/dashboard_server"
117
+ "../report/src/dashboard_report" = "vendor/dashboard_report"
118
+ "../authoring/src/dashboard_authoring" = "vendor/dashboard_authoring"
119
+
120
+ [tool.mypy]
121
+ python_version = "3.12"
122
+ strict = true
123
+ plugins = ["pydantic.mypy"]
124
+
125
+ [tool.pytest.ini_options]
126
+ addopts = ["-q"]
127
+ pythonpath = ["."]
128
+ testpaths = ["tests"]
129
+
130
+ [[tool.mypy.overrides]]
131
+ module = ["croniter.*"]
132
+ ignore_missing_imports = true
133
+
134
+ [tool.ruff]
135
+ line-length = 100
136
+ target-version = "py312"
137
+
138
+ [tool.ruff.lint]
139
+ select = ["E", "F", "I", "UP"]