platybus 0.1.0__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 (357) hide show
  1. platybus-0.1.0/.gitignore +46 -0
  2. platybus-0.1.0/LICENSE +21 -0
  3. platybus-0.1.0/PKG-INFO +424 -0
  4. platybus-0.1.0/README.md +329 -0
  5. platybus-0.1.0/docs/adr/README.md +13 -0
  6. platybus-0.1.0/docs/connectors/README.md +20 -0
  7. platybus-0.1.0/docs/plugins/README.md +134 -0
  8. platybus-0.1.0/docs/stores/README.md +117 -0
  9. platybus-0.1.0/examples/jaffle-shop/.gitignore +2 -0
  10. platybus-0.1.0/examples/jaffle-shop/README.md +34 -0
  11. platybus-0.1.0/examples/jaffle-shop/connections.yml +6 -0
  12. platybus-0.1.0/examples/jaffle-shop/dashboards/.gitkeep +0 -0
  13. platybus-0.1.0/examples/jaffle-shop/dashboards/customers.yml +74 -0
  14. platybus-0.1.0/examples/jaffle-shop/dashboards/overview.yml +141 -0
  15. platybus-0.1.0/examples/jaffle-shop/dashboards/queries/top_customers.sql +12 -0
  16. platybus-0.1.0/examples/jaffle-shop/dbt_project.yml +13 -0
  17. platybus-0.1.0/examples/jaffle-shop/macros/generate_schema_name.sql +15 -0
  18. platybus-0.1.0/examples/jaffle-shop/models/marts/customers.sql +22 -0
  19. platybus-0.1.0/examples/jaffle-shop/models/marts/orders.sql +24 -0
  20. platybus-0.1.0/examples/jaffle-shop/models/marts/orders_daily.sql +13 -0
  21. platybus-0.1.0/examples/jaffle-shop/models/schema.yml +25 -0
  22. platybus-0.1.0/examples/jaffle-shop/models/sources.yml +10 -0
  23. platybus-0.1.0/examples/jaffle-shop/models/staging/stg_customers.sql +6 -0
  24. platybus-0.1.0/examples/jaffle-shop/models/staging/stg_orders.sql +7 -0
  25. platybus-0.1.0/examples/jaffle-shop/models/staging/stg_payments.sql +8 -0
  26. platybus-0.1.0/examples/jaffle-shop/pipelines/jaffle.yml +45 -0
  27. platybus-0.1.0/examples/jaffle-shop/pipelines/jaffle_pg.yml +37 -0
  28. platybus-0.1.0/examples/jaffle-shop/platybus.yml +16 -0
  29. platybus-0.1.0/examples/jaffle-shop/seeds/raw_customers.csv +101 -0
  30. platybus-0.1.0/examples/jaffle-shop/seeds/raw_orders.csv +1001 -0
  31. platybus-0.1.0/examples/jaffle-shop/seeds/raw_payments.csv +1138 -0
  32. platybus-0.1.0/plugins/platybus-assistant/LICENSE +21 -0
  33. platybus-0.1.0/plugins/platybus-assistant/README.md +30 -0
  34. platybus-0.1.0/plugins/platybus-assistant/tests/test_providers.py +358 -0
  35. platybus-0.1.0/plugins/platybus-clickhouse/LICENSE +21 -0
  36. platybus-0.1.0/plugins/platybus-clickhouse/README.md +16 -0
  37. platybus-0.1.0/plugins/platybus-clickhouse/tests/conftest.py +97 -0
  38. platybus-0.1.0/plugins/platybus-clickhouse/tests/test_clickhouse_connector.py +346 -0
  39. platybus-0.1.0/plugins/platybus-clickhouse/tests/test_clickhouse_extract.py +186 -0
  40. platybus-0.1.0/plugins/platybus-clickhouse/tests/test_clickhouse_query.py +180 -0
  41. platybus-0.1.0/plugins/platybus-clickhouse/tests/test_clickhouse_types.py +105 -0
  42. platybus-0.1.0/plugins/platybus-dashboards/LICENSE +21 -0
  43. platybus-0.1.0/plugins/platybus-dashboards/README.md +16 -0
  44. platybus-0.1.0/plugins/platybus-dbt/LICENSE +21 -0
  45. platybus-0.1.0/plugins/platybus-dbt/README.md +16 -0
  46. platybus-0.1.0/plugins/platybus-dbt/tests/conftest.py +35 -0
  47. platybus-0.1.0/plugins/platybus-dbt/tests/dbt_testkit.py +130 -0
  48. platybus-0.1.0/plugins/platybus-dbt/tests/test_dbt_e2e.py +436 -0
  49. platybus-0.1.0/plugins/platybus-dbt/tests/test_dbt_iceberg.py +237 -0
  50. platybus-0.1.0/plugins/platybus-dbt/tests/test_dbt_manifest.py +203 -0
  51. platybus-0.1.0/plugins/platybus-dbt/tests/test_dbt_postgres.py +254 -0
  52. platybus-0.1.0/plugins/platybus-dbt/tests/test_dbt_profile.py +575 -0
  53. platybus-0.1.0/plugins/platybus-dbt/tests/test_dbt_projects.py +132 -0
  54. platybus-0.1.0/plugins/platybus-files/LICENSE +21 -0
  55. platybus-0.1.0/plugins/platybus-files/README.md +16 -0
  56. platybus-0.1.0/plugins/platybus-iceberg/LICENSE +21 -0
  57. platybus-0.1.0/plugins/platybus-iceberg/README.md +16 -0
  58. platybus-0.1.0/plugins/platybus-iceberg/tests/test_iceberg_overwrite.py +205 -0
  59. platybus-0.1.0/plugins/platybus-iceberg/tests/test_iceberg_store.py +347 -0
  60. platybus-0.1.0/plugins/platybus-iceberg/tests/test_iceberg_types.py +98 -0
  61. platybus-0.1.0/plugins/platybus-mysql/LICENSE +21 -0
  62. platybus-0.1.0/plugins/platybus-mysql/README.md +16 -0
  63. platybus-0.1.0/plugins/platybus-postgres/LICENSE +21 -0
  64. platybus-0.1.0/plugins/platybus-postgres/README.md +16 -0
  65. platybus-0.1.0/plugins/platybus-postgres/tests/test_postgres_store.py +234 -0
  66. platybus-0.1.0/plugins/platybus-redash/LICENSE +21 -0
  67. platybus-0.1.0/plugins/platybus-redash/README.md +16 -0
  68. platybus-0.1.0/plugins/platybus-samples/LICENSE +21 -0
  69. platybus-0.1.0/plugins/platybus-samples/README.md +16 -0
  70. platybus-0.1.0/plugins/platybus-samples/tests/conftest.py +72 -0
  71. platybus-0.1.0/plugins/platybus-samples/tests/samples_testkit.py +40 -0
  72. platybus-0.1.0/plugins/platybus-samples/tests/test_benchmark_script.py +58 -0
  73. platybus-0.1.0/plugins/platybus-samples/tests/test_samples_api.py +112 -0
  74. platybus-0.1.0/plugins/platybus-samples/tests/test_samples_datasets.py +128 -0
  75. platybus-0.1.0/plugins/platybus-skills/LICENSE +21 -0
  76. platybus-0.1.0/plugins/platybus-skills/README.md +20 -0
  77. platybus-0.1.0/plugins/platybus-sqlite/LICENSE +21 -0
  78. platybus-0.1.0/plugins/platybus-sqlite/README.md +16 -0
  79. platybus-0.1.0/plugins/platybus-sqlmodels/LICENSE +21 -0
  80. platybus-0.1.0/plugins/platybus-sqlmodels/README.md +16 -0
  81. platybus-0.1.0/plugins/platybus-superset/LICENSE +21 -0
  82. platybus-0.1.0/plugins/platybus-superset/README.md +16 -0
  83. platybus-0.1.0/pyproject.toml +210 -0
  84. platybus-0.1.0/src/platybus/__init__.py +3 -0
  85. platybus-0.1.0/src/platybus/__main__.py +6 -0
  86. platybus-0.1.0/src/platybus/assistant/__init__.py +41 -0
  87. platybus-0.1.0/src/platybus/assistant/agent.py +302 -0
  88. platybus-0.1.0/src/platybus/assistant/base.py +179 -0
  89. platybus-0.1.0/src/platybus/assistant/conversations.py +170 -0
  90. platybus-0.1.0/src/platybus/assistant/mcp.py +162 -0
  91. platybus-0.1.0/src/platybus/assistant/prompt.py +75 -0
  92. platybus-0.1.0/src/platybus/assistant/providers.py +120 -0
  93. platybus-0.1.0/src/platybus/assistant/redaction.py +46 -0
  94. platybus-0.1.0/src/platybus/assistant/service.py +236 -0
  95. platybus-0.1.0/src/platybus/assistant/settings.py +192 -0
  96. platybus-0.1.0/src/platybus/assistant/skills.py +394 -0
  97. platybus-0.1.0/src/platybus/assistant/sqlguard.py +125 -0
  98. platybus-0.1.0/src/platybus/assistant/tools.py +666 -0
  99. platybus-0.1.0/src/platybus/catalog/__init__.py +18 -0
  100. platybus-0.1.0/src/platybus/catalog/base.py +47 -0
  101. platybus-0.1.0/src/platybus/catalog/ducklake.py +254 -0
  102. platybus-0.1.0/src/platybus/catalog/meta.py +91 -0
  103. platybus-0.1.0/src/platybus/cli/__init__.py +111 -0
  104. platybus-0.1.0/src/platybus/cli/_context.py +76 -0
  105. platybus-0.1.0/src/platybus/cli/_output.py +59 -0
  106. platybus-0.1.0/src/platybus/cli/assistant.py +436 -0
  107. platybus-0.1.0/src/platybus/cli/connect.py +155 -0
  108. platybus-0.1.0/src/platybus/cli/datasets.py +128 -0
  109. platybus-0.1.0/src/platybus/cli/dev.py +63 -0
  110. platybus-0.1.0/src/platybus/cli/hub.py +256 -0
  111. platybus-0.1.0/src/platybus/cli/init.py +50 -0
  112. platybus-0.1.0/src/platybus/cli/lifecycle.py +239 -0
  113. platybus-0.1.0/src/platybus/cli/pipelines.py +289 -0
  114. platybus-0.1.0/src/platybus/cli/plugins.py +100 -0
  115. platybus-0.1.0/src/platybus/cli/sandbox.py +117 -0
  116. platybus-0.1.0/src/platybus/cli/sql.py +93 -0
  117. platybus-0.1.0/src/platybus/cli/stores.py +230 -0
  118. platybus-0.1.0/src/platybus/client.py +458 -0
  119. platybus-0.1.0/src/platybus/config/__init__.py +14 -0
  120. platybus-0.1.0/src/platybus/config/assistant.py +60 -0
  121. platybus-0.1.0/src/platybus/config/base.py +11 -0
  122. platybus-0.1.0/src/platybus/config/connections.py +68 -0
  123. platybus-0.1.0/src/platybus/config/env.py +164 -0
  124. platybus-0.1.0/src/platybus/config/loader.py +184 -0
  125. platybus-0.1.0/src/platybus/config/pipelines.py +233 -0
  126. platybus-0.1.0/src/platybus/config/project.py +130 -0
  127. platybus-0.1.0/src/platybus/config/runtime.py +59 -0
  128. platybus-0.1.0/src/platybus/config/schema.py +32 -0
  129. platybus-0.1.0/src/platybus/config/secrets.py +102 -0
  130. platybus-0.1.0/src/platybus/config/stores.py +87 -0
  131. platybus-0.1.0/src/platybus/connectors/__init__.py +33 -0
  132. platybus-0.1.0/src/platybus/connectors/base.py +200 -0
  133. platybus-0.1.0/src/platybus/connectors/common.py +318 -0
  134. platybus-0.1.0/src/platybus/connectors/database.py +106 -0
  135. platybus-0.1.0/src/platybus/connectors/files.py +60 -0
  136. platybus-0.1.0/src/platybus/connectors/manage.py +340 -0
  137. platybus-0.1.0/src/platybus/connectors/refs.py +121 -0
  138. platybus-0.1.0/src/platybus/connectors/registry.py +95 -0
  139. platybus-0.1.0/src/platybus/datasets.py +138 -0
  140. platybus-0.1.0/src/platybus/deploy/__init__.py +5 -0
  141. platybus-0.1.0/src/platybus/deploy/full.py +471 -0
  142. platybus-0.1.0/src/platybus/deploy/lite.py +146 -0
  143. platybus-0.1.0/src/platybus/deploy/state.py +154 -0
  144. platybus-0.1.0/src/platybus/deploy/templates/compose.yml.j2 +123 -0
  145. platybus-0.1.0/src/platybus/engine/__init__.py +17 -0
  146. platybus-0.1.0/src/platybus/engine/core.py +588 -0
  147. platybus-0.1.0/src/platybus/engine/introspect.py +132 -0
  148. platybus-0.1.0/src/platybus/engine/result.py +43 -0
  149. platybus-0.1.0/src/platybus/engine/serialize.py +73 -0
  150. platybus-0.1.0/src/platybus/errors.py +135 -0
  151. platybus-0.1.0/src/platybus/etl/__init__.py +14 -0
  152. platybus-0.1.0/src/platybus/etl/checks.py +151 -0
  153. platybus-0.1.0/src/platybus/etl/extract.py +229 -0
  154. platybus-0.1.0/src/platybus/etl/history.py +293 -0
  155. platybus-0.1.0/src/platybus/etl/runner.py +374 -0
  156. platybus-0.1.0/src/platybus/etl/seeds.py +50 -0
  157. platybus-0.1.0/src/platybus/etl/service.py +200 -0
  158. platybus-0.1.0/src/platybus/etl/specs.py +78 -0
  159. platybus-0.1.0/src/platybus/etl/sql.py +214 -0
  160. platybus-0.1.0/src/platybus/etl/watermarks.py +113 -0
  161. platybus-0.1.0/src/platybus/hub/__init__.py +23 -0
  162. platybus-0.1.0/src/platybus/hub/core.py +353 -0
  163. platybus-0.1.0/src/platybus/hub/service.py +274 -0
  164. platybus-0.1.0/src/platybus/log.py +95 -0
  165. platybus-0.1.0/src/platybus/plugins/__init__.py +65 -0
  166. platybus-0.1.0/src/platybus/plugins/base.py +155 -0
  167. platybus-0.1.0/src/platybus/plugins/dashboards.py +57 -0
  168. platybus-0.1.0/src/platybus/plugins/forms.py +88 -0
  169. platybus-0.1.0/src/platybus/plugins/manage.py +248 -0
  170. platybus-0.1.0/src/platybus/plugins/registry.py +180 -0
  171. platybus-0.1.0/src/platybus/plugins/transform.py +155 -0
  172. platybus-0.1.0/src/platybus/plugins/webview.py +140 -0
  173. platybus-0.1.0/src/platybus/projectfiles.py +237 -0
  174. platybus-0.1.0/src/platybus/py.typed +0 -0
  175. platybus-0.1.0/src/platybus/sandbox/__init__.py +21 -0
  176. platybus-0.1.0/src/platybus/sandbox/base.py +65 -0
  177. platybus-0.1.0/src/platybus/sandbox/builtin.py +234 -0
  178. platybus-0.1.0/src/platybus/sandbox/manager.py +111 -0
  179. platybus-0.1.0/src/platybus/sandbox/registry.py +151 -0
  180. platybus-0.1.0/src/platybus/sandbox/runner.py +503 -0
  181. platybus-0.1.0/src/platybus/scaffold.py +165 -0
  182. platybus-0.1.0/src/platybus/scheduler/__init__.py +5 -0
  183. platybus-0.1.0/src/platybus/scheduler/service.py +226 -0
  184. platybus-0.1.0/src/platybus/server/__init__.py +5 -0
  185. platybus-0.1.0/src/platybus/server/app.py +289 -0
  186. platybus-0.1.0/src/platybus/server/context.py +153 -0
  187. platybus-0.1.0/src/platybus/server/openapi.py +28 -0
  188. platybus-0.1.0/src/platybus/server/providers.py +99 -0
  189. platybus-0.1.0/src/platybus/server/routers/__init__.py +86 -0
  190. platybus-0.1.0/src/platybus/server/routers/assistant.py +299 -0
  191. platybus-0.1.0/src/platybus/server/routers/catalog.py +96 -0
  192. platybus-0.1.0/src/platybus/server/routers/connections.py +119 -0
  193. platybus-0.1.0/src/platybus/server/routers/datasets.py +33 -0
  194. platybus-0.1.0/src/platybus/server/routers/files.py +98 -0
  195. platybus-0.1.0/src/platybus/server/routers/health.py +34 -0
  196. platybus-0.1.0/src/platybus/server/routers/hub.py +301 -0
  197. platybus-0.1.0/src/platybus/server/routers/models.py +30 -0
  198. platybus-0.1.0/src/platybus/server/routers/pipelines.py +95 -0
  199. platybus-0.1.0/src/platybus/server/routers/plugins.py +157 -0
  200. platybus-0.1.0/src/platybus/server/routers/runs.py +34 -0
  201. platybus-0.1.0/src/platybus/server/routers/sandbox.py +69 -0
  202. platybus-0.1.0/src/platybus/server/routers/sql.py +78 -0
  203. platybus-0.1.0/src/platybus/server/routers/stores.py +154 -0
  204. platybus-0.1.0/src/platybus/server/run.py +49 -0
  205. platybus-0.1.0/src/platybus/server/schemas/__init__.py +1 -0
  206. platybus-0.1.0/src/platybus/server/schemas/assistant.py +248 -0
  207. platybus-0.1.0/src/platybus/server/schemas/catalog.py +48 -0
  208. platybus-0.1.0/src/platybus/server/schemas/common.py +29 -0
  209. platybus-0.1.0/src/platybus/server/schemas/connections.py +64 -0
  210. platybus-0.1.0/src/platybus/server/schemas/hub.py +199 -0
  211. platybus-0.1.0/src/platybus/server/schemas/pipelines.py +105 -0
  212. platybus-0.1.0/src/platybus/server/schemas/plugins.py +80 -0
  213. platybus-0.1.0/src/platybus/server/schemas/sandbox.py +52 -0
  214. platybus-0.1.0/src/platybus/server/schemas/sql.py +47 -0
  215. platybus-0.1.0/src/platybus/server/schemas/stores.py +71 -0
  216. platybus-0.1.0/src/platybus/server/static/assets/CodeEditor-vuCQ_kpb.js +1 -0
  217. platybus-0.1.0/src/platybus/server/static/assets/FilesPage-Bgy22Luj.js +2 -0
  218. platybus-0.1.0/src/platybus/server/static/assets/SqlPage-BYK9TScl.js +2 -0
  219. platybus-0.1.0/src/platybus/server/static/assets/codicon-DCmgc-ay.ttf +0 -0
  220. platybus-0.1.0/src/platybus/server/static/assets/echarts-CP2rjyrQ.js +41 -0
  221. platybus-0.1.0/src/platybus/server/static/assets/editor.worker-BCzxt1at.js +12 -0
  222. platybus-0.1.0/src/platybus/server/static/assets/files-BCzKX1TK.js +6 -0
  223. platybus-0.1.0/src/platybus/server/static/assets/index-BhaxD90p.js +144 -0
  224. platybus-0.1.0/src/platybus/server/static/assets/index-CUcKNW1-.css +1 -0
  225. platybus-0.1.0/src/platybus/server/static/assets/markdown-DSZPf7rp.js +6 -0
  226. platybus-0.1.0/src/platybus/server/static/assets/sql-CCSDG5nI.js +6 -0
  227. platybus-0.1.0/src/platybus/server/static/assets/themes-BfH__uJv.css +1 -0
  228. platybus-0.1.0/src/platybus/server/static/assets/themes-C45wmF8v.js +741 -0
  229. platybus-0.1.0/src/platybus/server/static/assets/yaml-DF2upZAE.js +6 -0
  230. platybus-0.1.0/src/platybus/server/static/favicon.png +0 -0
  231. platybus-0.1.0/src/platybus/server/static/index.html +26 -0
  232. platybus-0.1.0/src/platybus/server/static/logo.png +0 -0
  233. platybus-0.1.0/src/platybus/server/static/mark.png +0 -0
  234. platybus-0.1.0/src/platybus/sqlutil.py +48 -0
  235. platybus-0.1.0/src/platybus/storage/__init__.py +48 -0
  236. platybus-0.1.0/src/platybus/storage/base.py +82 -0
  237. platybus-0.1.0/src/platybus/storage/local.py +80 -0
  238. platybus-0.1.0/src/platybus/storage/s3.py +154 -0
  239. platybus-0.1.0/src/platybus/stores/__init__.py +32 -0
  240. platybus-0.1.0/src/platybus/stores/base.py +232 -0
  241. platybus-0.1.0/src/platybus/stores/builtin.py +219 -0
  242. platybus-0.1.0/src/platybus/stores/manage.py +249 -0
  243. platybus-0.1.0/src/platybus/stores/registry.py +65 -0
  244. platybus-0.1.0/src/platybus/templates/default/.gitignore +2 -0
  245. platybus-0.1.0/src/platybus/templates/default/README.md +13 -0
  246. platybus-0.1.0/src/platybus/templates/default/connections.yml +9 -0
  247. platybus-0.1.0/src/platybus/templates/default/dashboards/sales.yml +24 -0
  248. platybus-0.1.0/src/platybus/templates/default/models/marts/sales_daily.sql +7 -0
  249. platybus-0.1.0/src/platybus/templates/default/models/staging/stg_orders.sql +8 -0
  250. platybus-0.1.0/src/platybus/templates/default/pipelines/demo.yml +10 -0
  251. platybus-0.1.0/src/platybus/templates/default/platybus.yml +47 -0
  252. platybus-0.1.0/src/platybus/templates/default/seeds/orders.csv +11 -0
  253. platybus-0.1.0/src/platybus/templates/empty/.gitignore +2 -0
  254. platybus-0.1.0/src/platybus/templates/empty/README.md +12 -0
  255. platybus-0.1.0/src/platybus/templates/empty/connections.yml +9 -0
  256. platybus-0.1.0/src/platybus/templates/empty/platybus.yml +27 -0
  257. platybus-0.1.0/tests/__init__.py +0 -0
  258. platybus-0.1.0/tests/conftest.py +44 -0
  259. platybus-0.1.0/tests/e2e/__init__.py +0 -0
  260. platybus-0.1.0/tests/integration/__init__.py +0 -0
  261. platybus-0.1.0/tests/integration/catalog/__init__.py +0 -0
  262. platybus-0.1.0/tests/integration/catalog/test_lake_s3_postgres.py +64 -0
  263. platybus-0.1.0/tests/integration/conftest.py +222 -0
  264. platybus-0.1.0/tests/integration/connectors/__init__.py +0 -0
  265. platybus-0.1.0/tests/integration/connectors/test_clickhouse.py +467 -0
  266. platybus-0.1.0/tests/integration/connectors/test_mysql.py +67 -0
  267. platybus-0.1.0/tests/integration/connectors/test_postgres.py +105 -0
  268. platybus-0.1.0/tests/integration/connectors/test_s3.py +66 -0
  269. platybus-0.1.0/tests/integration/deploy/__init__.py +0 -0
  270. platybus-0.1.0/tests/integration/deploy/test_full_mode.py +124 -0
  271. platybus-0.1.0/tests/integration/etl/__init__.py +0 -0
  272. platybus-0.1.0/tests/integration/etl/test_jaffle_pg.py +127 -0
  273. platybus-0.1.0/tests/integration/icebergstack.py +137 -0
  274. platybus-0.1.0/tests/integration/pgstore.py +87 -0
  275. platybus-0.1.0/tests/integration/sandbox/__init__.py +0 -0
  276. platybus-0.1.0/tests/integration/sandbox/test_sandbox.py +303 -0
  277. platybus-0.1.0/tests/integration/stores/__init__.py +0 -0
  278. platybus-0.1.0/tests/integration/stores/test_iceberg.py +601 -0
  279. platybus-0.1.0/tests/integration/stores/test_iceberg_polaris.py +287 -0
  280. platybus-0.1.0/tests/integration/stores/test_postgres_store.py +403 -0
  281. platybus-0.1.0/tests/unit/__init__.py +0 -0
  282. platybus-0.1.0/tests/unit/assistant/__init__.py +0 -0
  283. platybus-0.1.0/tests/unit/assistant/conftest.py +103 -0
  284. platybus-0.1.0/tests/unit/assistant/test_agent.py +208 -0
  285. platybus-0.1.0/tests/unit/assistant/test_api.py +246 -0
  286. platybus-0.1.0/tests/unit/assistant/test_cli.py +76 -0
  287. platybus-0.1.0/tests/unit/assistant/test_mcp.py +128 -0
  288. platybus-0.1.0/tests/unit/assistant/test_settings.py +88 -0
  289. platybus-0.1.0/tests/unit/assistant/test_skills.py +208 -0
  290. platybus-0.1.0/tests/unit/assistant/test_sqlguard.py +63 -0
  291. platybus-0.1.0/tests/unit/assistant/test_tools.py +183 -0
  292. platybus-0.1.0/tests/unit/catalog/__init__.py +0 -0
  293. platybus-0.1.0/tests/unit/catalog/test_ducklake.py +86 -0
  294. platybus-0.1.0/tests/unit/cli/__init__.py +0 -0
  295. platybus-0.1.0/tests/unit/cli/test_connect.py +104 -0
  296. platybus-0.1.0/tests/unit/cli/test_hub_cli.py +179 -0
  297. platybus-0.1.0/tests/unit/cli/test_init.py +57 -0
  298. platybus-0.1.0/tests/unit/cli/test_lifecycle.py +157 -0
  299. platybus-0.1.0/tests/unit/cli/test_run.py +160 -0
  300. platybus-0.1.0/tests/unit/cli/test_sql.py +72 -0
  301. platybus-0.1.0/tests/unit/config/__init__.py +0 -0
  302. platybus-0.1.0/tests/unit/config/test_env.py +48 -0
  303. platybus-0.1.0/tests/unit/config/test_loader.py +77 -0
  304. platybus-0.1.0/tests/unit/config/test_secrets.py +39 -0
  305. platybus-0.1.0/tests/unit/connectors/__init__.py +0 -0
  306. platybus-0.1.0/tests/unit/connectors/conftest.py +28 -0
  307. platybus-0.1.0/tests/unit/connectors/test_common.py +135 -0
  308. platybus-0.1.0/tests/unit/connectors/test_databases.py +135 -0
  309. platybus-0.1.0/tests/unit/connectors/test_files.py +130 -0
  310. platybus-0.1.0/tests/unit/connectors/test_manage.py +120 -0
  311. platybus-0.1.0/tests/unit/connectors/test_refs.py +46 -0
  312. platybus-0.1.0/tests/unit/connectors/test_registry.py +81 -0
  313. platybus-0.1.0/tests/unit/connectors/test_sqlite.py +123 -0
  314. platybus-0.1.0/tests/unit/dashboards/__init__.py +0 -0
  315. platybus-0.1.0/tests/unit/dashboards/test_examples.py +116 -0
  316. platybus-0.1.0/tests/unit/dashboards/test_params.py +144 -0
  317. platybus-0.1.0/tests/unit/dashboards/test_service.py +224 -0
  318. platybus-0.1.0/tests/unit/dashboards/test_spec.py +186 -0
  319. platybus-0.1.0/tests/unit/deploy/__init__.py +0 -0
  320. platybus-0.1.0/tests/unit/deploy/test_discovery.py +133 -0
  321. platybus-0.1.0/tests/unit/deploy/test_full.py +366 -0
  322. platybus-0.1.0/tests/unit/deploy/test_lite_logs.py +39 -0
  323. platybus-0.1.0/tests/unit/engine/__init__.py +0 -0
  324. platybus-0.1.0/tests/unit/engine/test_engine.py +146 -0
  325. platybus-0.1.0/tests/unit/etl/__init__.py +0 -0
  326. platybus-0.1.0/tests/unit/etl/conftest.py +131 -0
  327. platybus-0.1.0/tests/unit/etl/test_extract.py +287 -0
  328. platybus-0.1.0/tests/unit/etl/test_models.py +167 -0
  329. platybus-0.1.0/tests/unit/etl/test_runner.py +319 -0
  330. platybus-0.1.0/tests/unit/etl/test_specs.py +122 -0
  331. platybus-0.1.0/tests/unit/hub/__init__.py +0 -0
  332. platybus-0.1.0/tests/unit/hub/test_hub.py +308 -0
  333. platybus-0.1.0/tests/unit/plugins/__init__.py +0 -0
  334. platybus-0.1.0/tests/unit/plugins/test_manage.py +234 -0
  335. platybus-0.1.0/tests/unit/plugins/test_registry.py +239 -0
  336. platybus-0.1.0/tests/unit/sandbox/__init__.py +0 -0
  337. platybus-0.1.0/tests/unit/sandbox/conftest.py +102 -0
  338. platybus-0.1.0/tests/unit/sandbox/test_api.py +207 -0
  339. platybus-0.1.0/tests/unit/sandbox/test_cli.py +81 -0
  340. platybus-0.1.0/tests/unit/sandbox/test_registry.py +74 -0
  341. platybus-0.1.0/tests/unit/sandbox/test_runner.py +268 -0
  342. platybus-0.1.0/tests/unit/scheduler/__init__.py +0 -0
  343. platybus-0.1.0/tests/unit/scheduler/test_service.py +139 -0
  344. platybus-0.1.0/tests/unit/server/__init__.py +0 -0
  345. platybus-0.1.0/tests/unit/server/conftest.py +17 -0
  346. platybus-0.1.0/tests/unit/server/test_api.py +126 -0
  347. platybus-0.1.0/tests/unit/server/test_connections.py +75 -0
  348. platybus-0.1.0/tests/unit/server/test_dashboards.py +112 -0
  349. platybus-0.1.0/tests/unit/server/test_hub_api.py +313 -0
  350. platybus-0.1.0/tests/unit/server/test_pipelines.py +192 -0
  351. platybus-0.1.0/tests/unit/server/test_plugins.py +172 -0
  352. platybus-0.1.0/tests/unit/server/test_static.py +43 -0
  353. platybus-0.1.0/tests/unit/storage/__init__.py +0 -0
  354. platybus-0.1.0/tests/unit/storage/test_storage.py +79 -0
  355. platybus-0.1.0/tests/unit/stores/__init__.py +0 -0
  356. platybus-0.1.0/tests/unit/stores/test_stores.py +446 -0
  357. platybus-0.1.0/tests/unit/test_regressions.py +48 -0
@@ -0,0 +1,46 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ .venv/
5
+ dist/
6
+ build/
7
+ *.egg-info/
8
+ .pytest_cache/
9
+ .mypy_cache/
10
+ .ruff_cache/
11
+ .coverage
12
+ htmlcov/
13
+
14
+ # Node
15
+ web/node_modules/
16
+ web/dist/
17
+ src/platybus/server/static/
18
+ web/*.tsbuildinfo
19
+ # Playwright artifacts
20
+ web/playwright-report/
21
+ web/test-results/
22
+ web/blob-report/
23
+ web/playwright/.cache/
24
+
25
+ # Platybus local state and demos
26
+ .platybus/
27
+ .tmp/
28
+ *.duckdb
29
+ *.duckdb.wal
30
+
31
+ # Secrets
32
+ .env
33
+ .env.*
34
+ !.env.example
35
+
36
+ # Editors / OS
37
+ .idea/
38
+ .vscode/
39
+ .DS_Store
40
+ Thumbs.db
41
+
42
+ # Claude Code local settings
43
+ .claude/settings.local.json
44
+ .claude
45
+ # MkDocs output
46
+ site/
platybus-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Yaroslav Ozerov
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,424 @@
1
+ Metadata-Version: 2.5
2
+ Name: platybus
3
+ Version: 0.1.0
4
+ Summary: A compact data platform in one command: S3 object storage, lakehouse tables, ETL and dashboards.
5
+ Project-URL: Homepage, https://github.com/RobbyTheFish/platybus
6
+ Project-URL: Documentation, https://robbythefish.github.io/platybus/
7
+ Project-URL: Repository, https://github.com/RobbyTheFish/platybus
8
+ Project-URL: Issues, https://github.com/RobbyTheFish/platybus/issues
9
+ Project-URL: Changelog, https://github.com/RobbyTheFish/platybus/blob/main/CHANGELOG.md
10
+ Author: Yaroslav Ozerov
11
+ License-Expression: MIT
12
+ License-File: LICENSE
13
+ Keywords: dashboards,data-platform,duckdb,ducklake,etl,lakehouse,s3
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: Environment :: Web Environment
16
+ Classifier: Framework :: FastAPI
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: Intended Audience :: Science/Research
19
+ Classifier: Operating System :: OS Independent
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Database
24
+ Classifier: Typing :: Typed
25
+ Requires-Python: >=3.12
26
+ Requires-Dist: apscheduler<4,>=3.10
27
+ Requires-Dist: duckdb<1.6,>=1.5
28
+ Requires-Dist: fastapi>=0.115
29
+ Requires-Dist: httpx>=0.28
30
+ Requires-Dist: jinja2>=3.1
31
+ Requires-Dist: mcp<3,>=2.3
32
+ Requires-Dist: obstore>=0.6
33
+ Requires-Dist: pyarrow>=18
34
+ Requires-Dist: pydantic>=2.10
35
+ Requires-Dist: pytz>=2024.1
36
+ Requires-Dist: pyyaml>=6.0
37
+ Requires-Dist: rich>=13.9
38
+ Requires-Dist: sqlglot>=26
39
+ Requires-Dist: structlog>=24.4
40
+ Requires-Dist: typer>=0.15
41
+ Requires-Dist: uvicorn[standard]>=0.32
42
+ Provides-Extra: all
43
+ Requires-Dist: platybus-assistant; extra == 'all'
44
+ Requires-Dist: platybus-clickhouse; extra == 'all'
45
+ Requires-Dist: platybus-dashboards; extra == 'all'
46
+ Requires-Dist: platybus-dbt; extra == 'all'
47
+ Requires-Dist: platybus-files; extra == 'all'
48
+ Requires-Dist: platybus-iceberg; extra == 'all'
49
+ Requires-Dist: platybus-mysql; extra == 'all'
50
+ Requires-Dist: platybus-postgres; extra == 'all'
51
+ Requires-Dist: platybus-redash; extra == 'all'
52
+ Requires-Dist: platybus-samples; extra == 'all'
53
+ Requires-Dist: platybus-skills; extra == 'all'
54
+ Requires-Dist: platybus-sqlite; extra == 'all'
55
+ Requires-Dist: platybus-sqlmodels; extra == 'all'
56
+ Requires-Dist: platybus-superset; extra == 'all'
57
+ Provides-Extra: assistant
58
+ Requires-Dist: platybus-assistant; extra == 'assistant'
59
+ Requires-Dist: platybus-skills; extra == 'assistant'
60
+ Provides-Extra: clickhouse
61
+ Requires-Dist: platybus-clickhouse; extra == 'clickhouse'
62
+ Provides-Extra: dashboards
63
+ Requires-Dist: platybus-dashboards; extra == 'dashboards'
64
+ Provides-Extra: dbt
65
+ Requires-Dist: platybus-dbt; extra == 'dbt'
66
+ Provides-Extra: files
67
+ Requires-Dist: platybus-files; extra == 'files'
68
+ Provides-Extra: iceberg
69
+ Requires-Dist: platybus-iceberg; extra == 'iceberg'
70
+ Provides-Extra: mysql
71
+ Requires-Dist: platybus-mysql; extra == 'mysql'
72
+ Provides-Extra: postgres
73
+ Requires-Dist: platybus-postgres; extra == 'postgres'
74
+ Provides-Extra: redash
75
+ Requires-Dist: platybus-redash; extra == 'redash'
76
+ Provides-Extra: samples
77
+ Requires-Dist: platybus-samples; extra == 'samples'
78
+ Provides-Extra: skills
79
+ Requires-Dist: platybus-skills; extra == 'skills'
80
+ Provides-Extra: sql
81
+ Requires-Dist: platybus-sqlmodels; extra == 'sql'
82
+ Provides-Extra: sqlite
83
+ Requires-Dist: platybus-sqlite; extra == 'sqlite'
84
+ Provides-Extra: standard
85
+ Requires-Dist: platybus-assistant; extra == 'standard'
86
+ Requires-Dist: platybus-dashboards; extra == 'standard'
87
+ Requires-Dist: platybus-dbt; extra == 'standard'
88
+ Requires-Dist: platybus-files; extra == 'standard'
89
+ Requires-Dist: platybus-postgres; extra == 'standard'
90
+ Requires-Dist: platybus-samples; extra == 'standard'
91
+ Requires-Dist: platybus-skills; extra == 'standard'
92
+ Provides-Extra: superset
93
+ Requires-Dist: platybus-superset; extra == 'superset'
94
+ Description-Content-Type: text/markdown
95
+
96
+ <p align="center">
97
+ <img src="https://raw.githubusercontent.com/RobbyTheFish/platybus/main/assets/logo.png" alt="Platybus" width="420">
98
+ </p>
99
+
100
+ <p align="center">
101
+ <a href="https://github.com/RobbyTheFish/platybus/actions/workflows/ci.yml"><img src="https://github.com/RobbyTheFish/platybus/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
102
+ <a href="https://robbythefish.github.io/platybus/"><img src="https://github.com/RobbyTheFish/platybus/actions/workflows/docs.yml/badge.svg" alt="Docs"></a>
103
+ <a href="https://pypi.org/project/platybus/"><img src="https://img.shields.io/pypi/v/platybus" alt="PyPI version"></a>
104
+ <a href="https://pypi.org/project/platybus/"><img src="https://img.shields.io/pypi/pyversions/platybus" alt="Python versions"></a>
105
+ <a href="https://github.com/RobbyTheFish/platybus/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-blue" alt="License: MIT"></a>
106
+ </p>
107
+
108
+ <p align="center">
109
+ <b>A hub for small data platforms.</b><br>
110
+ Create a project, pick where its tables live, connect sources, build models —
111
+ from a cloud-console-style UI, the CLI or plain YAML.
112
+ </p>
113
+
114
+ > **`v0.1.0` — first release.** Install it from PyPI, run it with one command, keep everything
115
+ > it builds in git. See the [CHANGELOG](https://github.com/RobbyTheFish/platybus/blob/main/CHANGELOG.md) for what is in it.
116
+
117
+ <p align="center">
118
+ <img src="https://raw.githubusercontent.com/RobbyTheFish/platybus/main/docs/assets/demo.gif" alt="Creating a project, running SQL and browsing the catalog in the Platybus UI" width="820">
119
+ </p>
120
+
121
+ ---
122
+
123
+ ## Contents
124
+
125
+ - [What it is](#what-it-is)
126
+ - [Install](#install)
127
+ - [Quick start](#quick-start)
128
+ - [Features](#features)
129
+ - [Stores](#stores)
130
+ - [Plugins](#plugins)
131
+ - [Architecture](#architecture)
132
+ - [Development](#development)
133
+ - [Roadmap](#roadmap)
134
+ - [Documentation](#documentation)
135
+
136
+ ## What it is
137
+
138
+ Standing up even a small analytics stack usually means wiring object storage, a warehouse,
139
+ an orchestrator, dbt and a BI tool together. Platybus packs that into one process with a small
140
+ core and everything optional as a plugin.
141
+
142
+ One Platybus server is a **hub** of **projects**. Each project is a data platform of its own,
143
+ built from three kinds of services — the same idea as a Google Cloud project:
144
+
145
+ | Service | What it does | Options |
146
+ |---|---|---|
147
+ | **Store** | Where the tables live. Every store is attached to DuckDB as a catalog, so one project can have several and query across them | DuckLake (default, zero config), DuckDB file, Apache Iceberg (REST catalog), PostgreSQL |
148
+ | **Ingestion** | Sources by URL and ingestion jobs: `full`, `append`, `incremental` (cursor) or `merge` (key), on a cron schedule | PostgreSQL, MySQL, SQLite, ClickHouse, S3, GCS, HTTP and local files |
149
+ | **Transform** | Models, data quality checks, run history | dbt (default) or a lightweight dbt-style SQL engine |
150
+
151
+ Around them: a SQL editor, a catalog browser with snapshots and time travel, dashboards as
152
+ code, a **sandbox** of local test containers and ready-made **sample datasets**.
153
+
154
+ Everything a project is made of is a file you can keep in git: `platybus.yml`, `stores.yml`,
155
+ `connections.yml`, `pipelines/*.yml`, `models/**/*.sql`, `dashboards/*.yml`. Secrets live only
156
+ in `.env` and are masked in logs, the API and the UI.
157
+
158
+ ## Install
159
+
160
+ ```bash
161
+ pip install "platybus[standard]" # or: uv tool install "platybus[standard]"
162
+ platybus --version
163
+ ```
164
+
165
+ Python 3.12+. The `standard` extra brings what a new project expects: dbt, native dashboards,
166
+ PostgreSQL, file sources, sample datasets and the AI assistant; `platybus[all]` installs every
167
+ plugin, and single plugins are extras too (`platybus[iceberg]`, `platybus[clickhouse]`, …).
168
+ Docker is needed only for the sandbox and for `platybus up` in full mode, which runs the
169
+ image `ghcr.io/robbythefish/platybus`.
170
+
171
+ ## Quick start
172
+
173
+ ### 1. Start a hub
174
+
175
+ ```bash
176
+ platybus hub init myhub && cd myhub
177
+ platybus up -d # http://127.0.0.1:8765
178
+ ```
179
+
180
+ Open <http://127.0.0.1:8765> and click **Create project**. The wizard goes
181
+ **Basics → Store → Transform → Ingestion → Review**: for a first try pick the *Demo pipeline*
182
+ template, the DuckLake store, the dbt engine and the *Jaffle shop* sample dataset. Then run the
183
+ `demo` pipeline and look at the result in **Catalog** and the **SQL editor**.
184
+
185
+ The same from the CLI:
186
+
187
+ ```bash
188
+ platybus projects create shop
189
+ platybus -P shop datasets load jaffle_shop
190
+ platybus -P shop sql "select count(*) from jaffle_shop.orders"
191
+ ```
192
+
193
+ ### 2. Ask the assistant
194
+
195
+ In a project open **Settings → Assistant**, choose a provider (Anthropic, an OpenAI-compatible
196
+ API or a local Ollama) and enter its API key (it is saved to the project's `.env`). Then ask in **Assistant** or in the side panel
197
+ (Ctrl/Cmd+I), for example *"which customers ordered most last month? make a dashboard"*: it looks up the
198
+ catalog, runs read-only SQL and saves a dashboard. Install more skills from **Marketplace**.
199
+ The same tools are available to Claude Desktop, Cursor and other MCP clients:
200
+
201
+ ```bash
202
+ platybus mcp -P shop # stdio; or http://127.0.0.1:8765/mcp/shop
203
+ ```
204
+
205
+ ### 3. Try Iceberg or PostgreSQL with the sandbox
206
+
207
+ ```bash
208
+ platybus sandbox up # S3, Postgres, ClickHouse, Iceberg REST catalog (first start pulls images)
209
+ platybus sandbox status
210
+ ```
211
+
212
+ In the wizard choose **Apache Iceberg** or **PostgreSQL** and click **Use sandbox**; the store
213
+ settings are filled in for the local containers. The sandbox Postgres also has a `shop`
214
+ database with source data for ingestion jobs. Details: [docs/sandbox.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/sandbox.md).
215
+
216
+ ### 4. Stop
217
+
218
+ ```bash
219
+ platybus down
220
+ platybus sandbox down # --volumes also deletes the sandbox data
221
+ ```
222
+
223
+ ### A single project without a hub
224
+
225
+ ```bash
226
+ platybus init demo --example jaffle-shop && cd demo
227
+ platybus up --lite -d # no Docker: local files + SQLite catalog
228
+ platybus run jaffle # seeds -> models -> checks
229
+ platybus sql "select * from marts.orders_daily order by day desc limit 7"
230
+ ```
231
+
232
+ `platybus up` without `--lite` runs the project with Docker Compose (SeaweedFS + Postgres +
233
+ Platybus): see [docs/deployment.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/deployment.md).
234
+
235
+ ## Features
236
+
237
+ - **Hub of projects** — create, list, rename, label and delete projects in the UI, the CLI
238
+ (`platybus projects`) or the API (`/api/projects`); every project resource lives under
239
+ `/api/projects/{id}/…`. See [docs/hub.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/hub.md).
240
+ - **Stores on demand** — DuckLake, DuckDB, [Apache Iceberg](https://github.com/RobbyTheFish/platybus/blob/main/docs/stores/iceberg.md) and
241
+ [PostgreSQL](https://github.com/RobbyTheFish/platybus/blob/main/docs/stores/postgres.md); several stores per project and queries across them
242
+ (`lake.raw.orders join wh.public.customers`). See [Stores](#stores).
243
+ - **Connect anything by URL** — `postgres://`, `mysql://`, `sqlite:///`, `clickhouse://`,
244
+ `s3://`, `gs://`, `https://…csv|parquet`, `file://`.
245
+ - **ETL as code** — YAML pipelines with seeds, extracts in four load modes, models, checks and
246
+ cron schedules; incremental watermarks are committed right after each extract.
247
+ - **Models with dbt or plain SQL** — [dbt](https://github.com/RobbyTheFish/platybus/blob/main/docs/plugins/dbt.md) runs in a persistent worker
248
+ process against the project's stores (DuckLake and PostgreSQL), passwords never touch the
249
+ disk; the `sql` engine starts instantly and needs no dbt.
250
+ - **Dashboards as code** — YAML + SQL rendered with ECharts, or existing Superset / Redash
251
+ embedded as [web views](https://github.com/RobbyTheFish/platybus/blob/main/docs/plugins/webview-dashboards.md).
252
+ - **Sandbox** — local S3, Postgres (with seeded source data), ClickHouse and Iceberg REST
253
+ containers with one command, bound to `127.0.0.1` only.
254
+ - **Sample datasets** — `tpch` (scale 0.01 / 0.1 / 1), `jaffle_shop`, `web_events`,
255
+ `taxi_trips`, loadable into any store. See [docs/datasets.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/datasets.md).
256
+ - **Cloud-console UI** — project picker, create-project wizard, per-project Overview,
257
+ Ingestion, Transform, Store, SQL, Dashboards, Sample data, Files and Settings pages; compact,
258
+ light and dark, down to phone width. See [docs/ui.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/ui.md).
259
+ - **AI assistant** — a chat in every project (and a side panel, Ctrl/Cmd+I) that browses the
260
+ catalog, runs read-only SQL, reads run and server logs and builds native dashboards. Works
261
+ with Anthropic, any OpenAI-compatible API (OpenAI, OpenRouter, vLLM, LM Studio) and Ollama.
262
+ See [docs/assistant.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/assistant.md).
263
+ - **Skills marketplace** — instruction packs for the assistant (SQL analyst, dashboard
264
+ builder, data quality, pipeline debugging, dbt modeling) installed per project, plus your
265
+ own or a remote index. See [docs/skills.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/skills.md).
266
+ - **MCP server** — the same tools for Claude Desktop, Cursor and other MCP clients:
267
+ `platybus mcp` (stdio) or `/mcp/<project>` on the running server. See [docs/mcp.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/mcp.md).
268
+ - **Modular** — stores, connectors, transform engines, dashboard providers, datasets and
269
+ sandbox services are plugins discovered through entry points.
270
+
271
+ ## Stores
272
+
273
+ | Type | Kind | Plugin | Views | Atomic replace | MERGE | Snapshots | Engines |
274
+ |---|---|---|---|---|---|---|---|
275
+ | `ducklake` | lakehouse (Parquet + SQLite/Postgres catalog) | core | ✅ | ✅ | ✅ | ✅ | sql, dbt |
276
+ | `duckdb` | warehouse (one local file) | core | ✅ | ✅ | ✅ | — | sql |
277
+ | `iceberg` | lakehouse (REST catalog + S3) | `platybus-iceberg` | — | ✅¹ | ✅ | ✅ | sql, dbt |
278
+ | `postgres` | warehouse | `platybus-postgres` | — | ✅ | ✅ | — | sql, dbt |
279
+
280
+ ¹ One atomic catalog commit that keeps the table's history (through pyiceberg); not with
281
+ SigV4-signed catalogs, and not for dbt `table` models. See [docs/stores/iceberg.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/stores/iceberg.md).
282
+
283
+ Pipelines and models adapt to what a store lacks: a `view` model becomes a table (the run
284
+ log says so), MERGE falls back to DELETE + INSERT in one transaction. Configuration is
285
+ `stores.yml` in the project:
286
+
287
+ ```yaml
288
+ default: lake
289
+ stores:
290
+ lake:
291
+ type: ducklake
292
+ wh:
293
+ type: postgres
294
+ host: db.internal
295
+ database: dwh
296
+ user: dwh
297
+ password: ${WH_PASSWORD} # the value is in .env
298
+ ```
299
+
300
+ More: [docs/stores/README.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/stores/README.md).
301
+
302
+ ## Plugins
303
+
304
+ | Plugin | Provides |
305
+ |---|---|
306
+ | `platybus-dbt` | dbt transform engine (default) |
307
+ | `platybus-sqlmodels` | built-in-style SQL transform engine |
308
+ | `platybus-iceberg` | Apache Iceberg store, Iceberg REST sandbox service |
309
+ | `platybus-postgres` | PostgreSQL connector and warehouse store |
310
+ | `platybus-clickhouse` | ClickHouse connector and sandbox service |
311
+ | `platybus-mysql`, `platybus-sqlite`, `platybus-files` | MySQL, SQLite, S3/GCS/HTTP/local file connectors |
312
+ | `platybus-samples` | sample datasets |
313
+ | `platybus-assistant` | assistant providers: Anthropic, OpenAI-compatible, Ollama |
314
+ | `platybus-skills` | bundled assistant skills |
315
+ | `platybus-dashboards` | native YAML dashboards |
316
+ | `platybus-superset`, `platybus-redash` | web-view dashboards |
317
+
318
+ Extras: `platybus[standard]` (dbt, native dashboards, Postgres, files, samples) and
319
+ `platybus[all]`. Writing a plugin: [docs/plugins/README.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/plugins/README.md).
320
+
321
+ ## Architecture
322
+
323
+ ```
324
+ web UI (React) ── CLI (Typer)
325
+ │ │
326
+ ▼ ▼
327
+ hub ── FastAPI server: /api/projects/{id}/… · scheduler · sandbox runner
328
+ │
329
+ ┌───────────┼──────────────────────────────┐
330
+ ▼ ▼ ▼
331
+ connectors ─▶ ETL runner ─▶ transform plugin (dbt | sql)
332
+ (plugins) │
333
+ ▼
334
+ DuckDB engine ── attaches every store of the project as a catalog
335
+ │
336
+ ┌───────────┬───┴──────────┬──────────────┐
337
+ ▼ ▼ ▼ ▼
338
+ DuckLake DuckDB file Iceberg REST PostgreSQL
339
+ (S3/local) (+ S3)
340
+ ```
341
+
342
+ Module boundaries: [docs/ARCHITECTURE.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/ARCHITECTURE.md) · decisions:
343
+ [docs/adr/](https://github.com/RobbyTheFish/platybus/blob/main/docs/adr/) · full map of the code (in Russian):
344
+ [docs/PROJECT_OVERVIEW.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/PROJECT_OVERVIEW.md).
345
+
346
+ ## Development
347
+
348
+ From a checkout — [uv](https://docs.astral.sh/uv/), Node.js ≥ 20.18 for the UI:
349
+
350
+ ```bash
351
+ git clone https://github.com/RobbyTheFish/platybus.git && cd platybus
352
+ uv sync --all-packages --all-extras # core + every plugin in plugins/
353
+ cd web && npm ci && npm run build && cd .. # web UI, bundled into the Python package
354
+ uv run platybus --version # in a checkout, prefix commands with `uv run`
355
+ ```
356
+
357
+ Checks:
358
+
359
+ ```bash
360
+ uv run ruff check . && uv run ruff format --check .
361
+ uv run mypy src plugins/*/src
362
+ uv run pytest -m "not integration" # ~850 unit tests, no Docker
363
+ uv run pytest -m integration # needs Docker (testcontainers)
364
+ cd web && npm ci && npm run lint && npm run typecheck && npm test
365
+ cd web && npm run build && npm run e2e # Playwright tests against a real hub
366
+ cd web && npm run dev # UI dev server, proxies /api to :8765
367
+ uv run --only-group docs mkdocs serve # documentation site
368
+ uv run python scripts/benchmark.py --scale 0.1 # TPC-H benchmark (docs/benchmark.md)
369
+ ```
370
+
371
+ Conventions (Conventional Commits, ADRs, secrets handling, tests for every fix) are in
372
+ [AGENTS.md](https://github.com/RobbyTheFish/platybus/blob/main/AGENTS.md).
373
+
374
+ ## Roadmap
375
+
376
+ `v0.1.0` completes milestones M0–M7 and the first part of M8 (assistant, skills, MCP). The
377
+ full plan with checkpoints (in Russian) is [docs/PLAN.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/PLAN.md).
378
+
379
+ | | Milestone |
380
+ |---|---|
381
+ | ✅ | **M0–M6** Foundation, DuckLake lakehouse, engine and HTTP API, connectors by URL, ETL, web UI and dashboards, one-command deployment |
382
+ | ✅ | **M6.5–M6.6** Plugin architecture; hub of projects, Iceberg and PostgreSQL stores, sandbox, sample datasets |
383
+ | ✅ | **M7** First release: docs site, TPC-H benchmark, PyPI packages and GHCR image |
384
+ | ✅ | **M8.1** AI assistant, skills marketplace, MCP server |
385
+ | ⬜ | **M8** Next — see below |
386
+
387
+ **Next**
388
+
389
+ - [ ] Authentication with tokens and read-only roles.
390
+ - [ ] Column-level lineage graph of models in the UI.
391
+ - [ ] Postgres wire protocol or Arrow Flight SQL for external BI tools.
392
+ - [ ] Python steps in pipelines, `dlt` integration for SaaS sources.
393
+ - [ ] Helm chart for Kubernetes.
394
+
395
+ **Known limitations**
396
+
397
+ - Iceberg: DuckDB cannot read Iceberg views, so `view` models stay tables; AWS Glue / SigV4
398
+ catalogs are unverified and fall back to non-atomic rebuilds; sandbox projects share one
399
+ Iceberg catalog.
400
+ - dbt on PostgreSQL: types Postgres cannot hold must be cast in the model.
401
+ - Assistant providers are tested against mocked API streams; report issues with
402
+ live APIs.
403
+ - Integration tests run in CI on demand (`workflow_dispatch`), unit and e2e tests on every push.
404
+
405
+ ## Documentation
406
+
407
+ | Topic | Where |
408
+ |---|---|
409
+ | Hub and projects | [docs/hub.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/hub.md) |
410
+ | Stores, Iceberg, PostgreSQL | [docs/stores/](https://github.com/RobbyTheFish/platybus/blob/main/docs/stores/README.md) |
411
+ | Sandbox and sample data | [docs/sandbox.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/sandbox.md), [docs/datasets.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/datasets.md) |
412
+ | Pipelines, models, dashboards | [docs/pipelines.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/pipelines.md), [docs/models.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/models.md), [docs/dashboards.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/dashboards.md) |
413
+ | Connectors | [docs/connectors/](https://github.com/RobbyTheFish/platybus/blob/main/docs/connectors/) |
414
+ | Plugins, dbt, web-view dashboards | [docs/plugins/](https://github.com/RobbyTheFish/platybus/blob/main/docs/plugins/README.md) |
415
+ | Web UI | [docs/ui.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/ui.md) |
416
+ | AI assistant, skills, MCP | [docs/assistant.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/assistant.md), [docs/skills.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/skills.md), [docs/mcp.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/mcp.md) |
417
+ | CLI reference | [docs/cli.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/cli.md) |
418
+ | Deployment | [docs/deployment.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/deployment.md) |
419
+ | Benchmark | [docs/benchmark.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/benchmark.md) |
420
+ | Releasing | [docs/releasing.md](https://github.com/RobbyTheFish/platybus/blob/main/docs/releasing.md) |
421
+
422
+ ## License
423
+
424
+ [MIT](https://github.com/RobbyTheFish/platybus/blob/main/LICENSE)