ducta 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 (292) hide show
  1. ducta-0.1.0/LICENSE +201 -0
  2. ducta-0.1.0/PKG-INFO +358 -0
  3. ducta-0.1.0/README.md +281 -0
  4. ducta-0.1.0/pyproject.toml +279 -0
  5. ducta-0.1.0/src/ducta/__init__.py +39 -0
  6. ducta-0.1.0/src/ducta/api/README.md +146 -0
  7. ducta-0.1.0/src/ducta/api/__init__.py +267 -0
  8. ducta-0.1.0/src/ducta/api/auth/__init__.py +26 -0
  9. ducta-0.1.0/src/ducta/api/auth/service.py +154 -0
  10. ducta-0.1.0/src/ducta/api/auth/users.py +144 -0
  11. ducta-0.1.0/src/ducta/api/config.py +304 -0
  12. ducta-0.1.0/src/ducta/api/core/__init__.py +29 -0
  13. ducta-0.1.0/src/ducta/api/core/file_watcher.py +112 -0
  14. ducta-0.1.0/src/ducta/api/core/git_sync.py +325 -0
  15. ducta-0.1.0/src/ducta/api/core/locks.py +156 -0
  16. ducta-0.1.0/src/ducta/api/db/__init__.py +24 -0
  17. ducta-0.1.0/src/ducta/api/db/base.py +29 -0
  18. ducta-0.1.0/src/ducta/api/db/engine.py +83 -0
  19. ducta-0.1.0/src/ducta/api/db/migrate.py +84 -0
  20. ducta-0.1.0/src/ducta/api/db/migrations/__init__.py +21 -0
  21. ducta-0.1.0/src/ducta/api/db/migrations/env.py +137 -0
  22. ducta-0.1.0/src/ducta/api/db/migrations/versions/0001_initial.py +140 -0
  23. ducta-0.1.0/src/ducta/api/db/migrations/versions/0002_add_execution_user_id.py +49 -0
  24. ducta-0.1.0/src/ducta/api/db/migrations/versions/0003_add_execution_sweep_fields.py +50 -0
  25. ducta-0.1.0/src/ducta/api/db/migrations/versions/0004_users_email_not_null.py +64 -0
  26. ducta-0.1.0/src/ducta/api/db/models.py +142 -0
  27. ducta-0.1.0/src/ducta/api/db/session.py +64 -0
  28. ducta-0.1.0/src/ducta/api/db/stores/__init__.py +21 -0
  29. ducta-0.1.0/src/ducta/api/db/stores/execution_store.py +282 -0
  30. ducta-0.1.0/src/ducta/api/db/stores/user_store.py +197 -0
  31. ducta-0.1.0/src/ducta/api/dependencies.py +260 -0
  32. ducta-0.1.0/src/ducta/api/exceptions.py +158 -0
  33. ducta-0.1.0/src/ducta/api/execution/__init__.py +25 -0
  34. ducta-0.1.0/src/ducta/api/execution/buffering.py +246 -0
  35. ducta-0.1.0/src/ducta/api/execution/context.py +37 -0
  36. ducta-0.1.0/src/ducta/api/execution/error_recovery.py +370 -0
  37. ducta-0.1.0/src/ducta/api/execution/file_log_store.py +173 -0
  38. ducta-0.1.0/src/ducta/api/execution/isolation.py +146 -0
  39. ducta-0.1.0/src/ducta/api/execution/log_sink.py +94 -0
  40. ducta-0.1.0/src/ducta/api/execution/manager.py +832 -0
  41. ducta-0.1.0/src/ducta/api/execution/output_capture.py +191 -0
  42. ducta-0.1.0/src/ducta/api/execution/queue.py +271 -0
  43. ducta-0.1.0/src/ducta/api/execution/resilience_core.py +162 -0
  44. ducta-0.1.0/src/ducta/api/execution/resilience_helpers.py +76 -0
  45. ducta-0.1.0/src/ducta/api/execution/runner.py +615 -0
  46. ducta-0.1.0/src/ducta/api/execution/scheduler.py +249 -0
  47. ducta-0.1.0/src/ducta/api/execution/store.py +157 -0
  48. ducta-0.1.0/src/ducta/api/execution/timeout.py +192 -0
  49. ducta-0.1.0/src/ducta/api/main.py +252 -0
  50. ducta-0.1.0/src/ducta/api/middleware/__init__.py +181 -0
  51. ducta-0.1.0/src/ducta/api/middleware/audit.py +94 -0
  52. ducta-0.1.0/src/ducta/api/middleware/rate_limit.py +397 -0
  53. ducta-0.1.0/src/ducta/api/models/__init__.py +68 -0
  54. ducta-0.1.0/src/ducta/api/models/auth.py +125 -0
  55. ducta-0.1.0/src/ducta/api/models/config.py +48 -0
  56. ducta-0.1.0/src/ducta/api/models/execution.py +292 -0
  57. ducta-0.1.0/src/ducta/api/models/git.py +121 -0
  58. ducta-0.1.0/src/ducta/api/models/git_sync.py +114 -0
  59. ducta-0.1.0/src/ducta/api/models/ingestion.py +97 -0
  60. ducta-0.1.0/src/ducta/api/models/node_schema.py +76 -0
  61. ducta-0.1.0/src/ducta/api/models/project.py +133 -0
  62. ducta-0.1.0/src/ducta/api/models/quality.py +82 -0
  63. ducta-0.1.0/src/ducta/api/models/repository.py +91 -0
  64. ducta-0.1.0/src/ducta/api/models/responses.py +108 -0
  65. ducta-0.1.0/src/ducta/api/models/template.py +51 -0
  66. ducta-0.1.0/src/ducta/api/models/workspace.py +98 -0
  67. ducta-0.1.0/src/ducta/api/repositories/__init__.py +33 -0
  68. ducta-0.1.0/src/ducta/api/repositories/config_repository.py +104 -0
  69. ducta-0.1.0/src/ducta/api/repositories/node_repository.py +398 -0
  70. ducta-0.1.0/src/ducta/api/repositories/pipeline_repository.py +121 -0
  71. ducta-0.1.0/src/ducta/api/repositories/project_repository.py +326 -0
  72. ducta-0.1.0/src/ducta/api/repository/__init__.py +33 -0
  73. ducta-0.1.0/src/ducta/api/repository/aws.py +205 -0
  74. ducta-0.1.0/src/ducta/api/repository/azure.py +177 -0
  75. ducta-0.1.0/src/ducta/api/repository/base.py +83 -0
  76. ducta-0.1.0/src/ducta/api/repository/github.py +163 -0
  77. ducta-0.1.0/src/ducta/api/repository/local.py +107 -0
  78. ducta-0.1.0/src/ducta/api/routes/__init__.py +109 -0
  79. ducta-0.1.0/src/ducta/api/routes/auth.py +194 -0
  80. ducta-0.1.0/src/ducta/api/routes/certificates.py +154 -0
  81. ducta-0.1.0/src/ducta/api/routes/configs.py +129 -0
  82. ducta-0.1.0/src/ducta/api/routes/connect.py +95 -0
  83. ducta-0.1.0/src/ducta/api/routes/environments.py +51 -0
  84. ducta-0.1.0/src/ducta/api/routes/execution.py +829 -0
  85. ducta-0.1.0/src/ducta/api/routes/git.py +452 -0
  86. ducta-0.1.0/src/ducta/api/routes/health.py +59 -0
  87. ducta-0.1.0/src/ducta/api/routes/ingestion.py +238 -0
  88. ducta-0.1.0/src/ducta/api/routes/mlops.py +359 -0
  89. ducta-0.1.0/src/ducta/api/routes/nodes.py +384 -0
  90. ducta-0.1.0/src/ducta/api/routes/projects.py +590 -0
  91. ducta-0.1.0/src/ducta/api/routes/quality.py +257 -0
  92. ducta-0.1.0/src/ducta/api/routes/repository.py +316 -0
  93. ducta-0.1.0/src/ducta/api/routes/schedules.py +118 -0
  94. ducta-0.1.0/src/ducta/api/routes/templates.py +100 -0
  95. ducta-0.1.0/src/ducta/api/routes/terminal.py +209 -0
  96. ducta-0.1.0/src/ducta/api/routes/workspace.py +249 -0
  97. ducta-0.1.0/src/ducta/api/routes/workspace_files.py +91 -0
  98. ducta-0.1.0/src/ducta/api/services/__init__.py +37 -0
  99. ducta-0.1.0/src/ducta/api/services/config_cache.py +125 -0
  100. ducta-0.1.0/src/ducta/api/services/config_service.py +109 -0
  101. ducta-0.1.0/src/ducta/api/services/node_schema_service.py +266 -0
  102. ducta-0.1.0/src/ducta/api/services/node_service.py +194 -0
  103. ducta-0.1.0/src/ducta/api/services/project.py +429 -0
  104. ducta-0.1.0/src/ducta/api/source/__init__.py +24 -0
  105. ducta-0.1.0/src/ducta/api/source/models.py +59 -0
  106. ducta-0.1.0/src/ducta/api/source/resolver.py +419 -0
  107. ducta-0.1.0/src/ducta/api/utils/__init__.py +19 -0
  108. ducta-0.1.0/src/ducta/api/utils/audit.py +76 -0
  109. ducta-0.1.0/src/ducta/api/utils/git_utils.py +197 -0
  110. ducta-0.1.0/src/ducta/api/utils/logging.py +55 -0
  111. ducta-0.1.0/src/ducta/api/utils/platform_utils.py +83 -0
  112. ducta-0.1.0/src/ducta/api/utils/validators.py +132 -0
  113. ducta-0.1.0/src/ducta/api/workspace/__init__.py +23 -0
  114. ducta-0.1.0/src/ducta/api/workspace/loaders.py +267 -0
  115. ducta-0.1.0/src/ducta/api/workspace/manager.py +372 -0
  116. ducta-0.1.0/src/ducta/api/workspace/preflight.py +244 -0
  117. ducta-0.1.0/src/ducta/api/workspace/structure_detector.py +223 -0
  118. ducta-0.1.0/src/ducta/api/workspace/utils.py +122 -0
  119. ducta-0.1.0/src/ducta/check/README.md +168 -0
  120. ducta-0.1.0/src/ducta/check/__init__.py +186 -0
  121. ducta-0.1.0/src/ducta/check/advisor.py +110 -0
  122. ducta-0.1.0/src/ducta/check/checks/__init__.py +66 -0
  123. ducta-0.1.0/src/ducta/check/checks/business.py +312 -0
  124. ducta-0.1.0/src/ducta/check/checks/cross_table.py +214 -0
  125. ducta-0.1.0/src/ducta/check/checks/distribution.py +395 -0
  126. ducta-0.1.0/src/ducta/check/checks/structural.py +507 -0
  127. ducta-0.1.0/src/ducta/check/checks/temporal.py +383 -0
  128. ducta-0.1.0/src/ducta/check/core.py +509 -0
  129. ducta-0.1.0/src/ducta/check/engine.py +1130 -0
  130. ducta-0.1.0/src/ducta/check/gate.py +213 -0
  131. ducta-0.1.0/src/ducta/check/output_manager.py +237 -0
  132. ducta-0.1.0/src/ducta/check/profiles.py +126 -0
  133. ducta-0.1.0/src/ducta/check/serialization.py +125 -0
  134. ducta-0.1.0/src/ducta/check/service.py +379 -0
  135. ducta-0.1.0/src/ducta/check/storage.py +627 -0
  136. ducta-0.1.0/src/ducta/console/README.md +150 -0
  137. ducta-0.1.0/src/ducta/console/__init__.py +214 -0
  138. ducta-0.1.0/src/ducta/console/cli.py +388 -0
  139. ducta-0.1.0/src/ducta/console/commands/__init__.py +26 -0
  140. ducta-0.1.0/src/ducta/console/commands/certify_cmds.py +213 -0
  141. ducta-0.1.0/src/ducta/console/commands/config_cmds.py +315 -0
  142. ducta-0.1.0/src/ducta/console/commands/execution_cmds.py +503 -0
  143. ducta-0.1.0/src/ducta/console/commands/ingestion_cmds.py +45 -0
  144. ducta-0.1.0/src/ducta/console/commands/ingestion_setup.py +284 -0
  145. ducta-0.1.0/src/ducta/console/commands/quality_cmds.py +356 -0
  146. ducta-0.1.0/src/ducta/console/config.py +449 -0
  147. ducta-0.1.0/src/ducta/console/core.py +420 -0
  148. ducta-0.1.0/src/ducta/console/execution.py +288 -0
  149. ducta-0.1.0/src/ducta/console/mlops_commands.py +175 -0
  150. ducta-0.1.0/src/ducta/console/parser.py +658 -0
  151. ducta-0.1.0/src/ducta/console/template.py +1683 -0
  152. ducta-0.1.0/src/ducta/console/ui.py +169 -0
  153. ducta-0.1.0/src/ducta/console/ux/__init__.py +78 -0
  154. ducta-0.1.0/src/ducta/console/ux/error_analyzer.py +387 -0
  155. ducta-0.1.0/src/ducta/console/ux/formatters.py +278 -0
  156. ducta-0.1.0/src/ducta/console/ux/rich_logger.py +326 -0
  157. ducta-0.1.0/src/ducta/console/ux/schema_formatter.py +194 -0
  158. ducta-0.1.0/src/ducta/console/validation.py +447 -0
  159. ducta-0.1.0/src/ducta/console/wrapper.py +108 -0
  160. ducta-0.1.0/src/ducta/core/README.md +165 -0
  161. ducta-0.1.0/src/ducta/core/__init__.py +228 -0
  162. ducta-0.1.0/src/ducta/core/certificate.py +388 -0
  163. ducta-0.1.0/src/ducta/core/commands.py +377 -0
  164. ducta-0.1.0/src/ducta/core/dependency_inference.py +177 -0
  165. ducta-0.1.0/src/ducta/core/dependency_resolver.py +136 -0
  166. ducta-0.1.0/src/ducta/core/execution_context.py +42 -0
  167. ducta-0.1.0/src/ducta/core/executor.py +2029 -0
  168. ducta-0.1.0/src/ducta/core/import_security.py +280 -0
  169. ducta-0.1.0/src/ducta/core/ml_context.py +81 -0
  170. ducta-0.1.0/src/ducta/core/ml_node_validator.py +197 -0
  171. ducta-0.1.0/src/ducta/core/mlflow_node_executor.py +214 -0
  172. ducta-0.1.0/src/ducta/core/mlops_auto_config.py +177 -0
  173. ducta-0.1.0/src/ducta/core/mlops_integration.py +610 -0
  174. ducta-0.1.0/src/ducta/core/node_executor.py +1932 -0
  175. ducta-0.1.0/src/ducta/core/pipeline_dependency_resolver.py +111 -0
  176. ducta-0.1.0/src/ducta/core/pipeline_state.py +690 -0
  177. ducta-0.1.0/src/ducta/core/pipeline_validator.py +625 -0
  178. ducta-0.1.0/src/ducta/core/preflight.py +311 -0
  179. ducta-0.1.0/src/ducta/core/resilience.py +65 -0
  180. ducta-0.1.0/src/ducta/core/resource_manager.py +436 -0
  181. ducta-0.1.0/src/ducta/core/split_validator.py +195 -0
  182. ducta-0.1.0/src/ducta/core/storage/__init__.py +35 -0
  183. ducta-0.1.0/src/ducta/core/storage/base.py +220 -0
  184. ducta-0.1.0/src/ducta/core/sweep.py +66 -0
  185. ducta-0.1.0/src/ducta/core/utils.py +173 -0
  186. ducta-0.1.0/src/ducta/gate/README.md +235 -0
  187. ducta-0.1.0/src/ducta/gate/__init__.py +128 -0
  188. ducta-0.1.0/src/ducta/gate/base.py +139 -0
  189. ducta-0.1.0/src/ducta/gate/concurrency.py +74 -0
  190. ducta-0.1.0/src/ducta/gate/constants.py +68 -0
  191. ducta-0.1.0/src/ducta/gate/context_manager.py +121 -0
  192. ducta-0.1.0/src/ducta/gate/exceptions.py +64 -0
  193. ducta-0.1.0/src/ducta/gate/factories.py +128 -0
  194. ducta-0.1.0/src/ducta/gate/fingerprinting.py +71 -0
  195. ducta-0.1.0/src/ducta/gate/gateway/__init__.py +28 -0
  196. ducta-0.1.0/src/ducta/gate/gateway/circuit_breaker.py +101 -0
  197. ducta-0.1.0/src/ducta/gate/gateway/connector.py +399 -0
  198. ducta-0.1.0/src/ducta/gate/gateway/exceptions.py +28 -0
  199. ducta-0.1.0/src/ducta/gate/gateway/manager.py +453 -0
  200. ducta-0.1.0/src/ducta/gate/gateway/service.py +220 -0
  201. ducta-0.1.0/src/ducta/gate/gateway/spark_setup.py +91 -0
  202. ducta-0.1.0/src/ducta/gate/handoff.py +144 -0
  203. ducta-0.1.0/src/ducta/gate/input.py +360 -0
  204. ducta-0.1.0/src/ducta/gate/output/__init__.py +39 -0
  205. ducta-0.1.0/src/ducta/gate/output/dataframes.py +112 -0
  206. ducta-0.1.0/src/ducta/gate/output/manager.py +353 -0
  207. ducta-0.1.0/src/ducta/gate/output/paths.py +135 -0
  208. ducta-0.1.0/src/ducta/gate/output/unity_catalog.py +300 -0
  209. ducta-0.1.0/src/ducta/gate/readers.py +313 -0
  210. ducta-0.1.0/src/ducta/gate/sql.py +492 -0
  211. ducta-0.1.0/src/ducta/gate/validators.py +158 -0
  212. ducta-0.1.0/src/ducta/gate/writers.py +275 -0
  213. ducta-0.1.0/src/ducta/mlrun/README.md +159 -0
  214. ducta-0.1.0/src/ducta/mlrun/__init__.py +310 -0
  215. ducta-0.1.0/src/ducta/mlrun/base.py +532 -0
  216. ducta-0.1.0/src/ducta/mlrun/baseline.py +126 -0
  217. ducta-0.1.0/src/ducta/mlrun/cache.py +743 -0
  218. ducta-0.1.0/src/ducta/mlrun/concurrency.py +971 -0
  219. ducta-0.1.0/src/ducta/mlrun/config.py +703 -0
  220. ducta-0.1.0/src/ducta/mlrun/environment.py +156 -0
  221. ducta-0.1.0/src/ducta/mlrun/error_analysis.py +214 -0
  222. ducta-0.1.0/src/ducta/mlrun/events.py +1111 -0
  223. ducta-0.1.0/src/ducta/mlrun/exceptions.py +786 -0
  224. ducta-0.1.0/src/ducta/mlrun/experiment_tracking.py +1466 -0
  225. ducta-0.1.0/src/ducta/mlrun/fingerprint.py +186 -0
  226. ducta-0.1.0/src/ducta/mlrun/gc.py +110 -0
  227. ducta-0.1.0/src/ducta/mlrun/health.py +703 -0
  228. ducta-0.1.0/src/ducta/mlrun/hyperparams.py +644 -0
  229. ducta-0.1.0/src/ducta/mlrun/mlflow.py +1001 -0
  230. ducta-0.1.0/src/ducta/mlrun/model_registry.py +869 -0
  231. ducta-0.1.0/src/ducta/mlrun/persistence.py +132 -0
  232. ducta-0.1.0/src/ducta/mlrun/protocols.py +530 -0
  233. ducta-0.1.0/src/ducta/mlrun/resilience.py +626 -0
  234. ducta-0.1.0/src/ducta/mlrun/split.py +204 -0
  235. ducta-0.1.0/src/ducta/mlrun/storage.py +1253 -0
  236. ducta-0.1.0/src/ducta/mlrun/validators.py +579 -0
  237. ducta-0.1.0/src/ducta/setting/README.md +194 -0
  238. ducta-0.1.0/src/ducta/setting/__init__.py +175 -0
  239. ducta-0.1.0/src/ducta/setting/config_forms.py +212 -0
  240. ducta-0.1.0/src/ducta/setting/context_loader.py +109 -0
  241. ducta-0.1.0/src/ducta/setting/contexts.py +919 -0
  242. ducta-0.1.0/src/ducta/setting/environments.py +191 -0
  243. ducta-0.1.0/src/ducta/setting/exceptions.py +55 -0
  244. ducta-0.1.0/src/ducta/setting/interpolator.py +195 -0
  245. ducta-0.1.0/src/ducta/setting/layered_config.py +483 -0
  246. ducta-0.1.0/src/ducta/setting/loaders.py +270 -0
  247. ducta-0.1.0/src/ducta/setting/schemas.py +816 -0
  248. ducta-0.1.0/src/ducta/setting/session.py +528 -0
  249. ducta-0.1.0/src/ducta/setting/utils.py +34 -0
  250. ducta-0.1.0/src/ducta/setting/validators.py +522 -0
  251. ducta-0.1.0/src/ducta/stream/README.md +145 -0
  252. ducta-0.1.0/src/ducta/stream/__init__.py +115 -0
  253. ducta-0.1.0/src/ducta/stream/checkpoints.py +208 -0
  254. ducta-0.1.0/src/ducta/stream/constants.py +130 -0
  255. ducta-0.1.0/src/ducta/stream/context_utils.py +33 -0
  256. ducta-0.1.0/src/ducta/stream/exceptions.py +262 -0
  257. ducta-0.1.0/src/ducta/stream/pipeline_manager.py +1328 -0
  258. ducta-0.1.0/src/ducta/stream/progress_listener.py +175 -0
  259. ducta-0.1.0/src/ducta/stream/query_manager.py +942 -0
  260. ducta-0.1.0/src/ducta/stream/readers.py +495 -0
  261. ducta-0.1.0/src/ducta/stream/trigger_scheduler.py +247 -0
  262. ducta-0.1.0/src/ducta/stream/validators.py +1131 -0
  263. ducta-0.1.0/src/ducta/stream/writers.py +369 -0
  264. ducta-0.1.0/src/ducta/ui/dist/assets/ActionButton-DMlTJENg.js +1 -0
  265. ducta-0.1.0/src/ducta/ui/dist/assets/CodeEditor-Bv79wUIa.js +17 -0
  266. ducta-0.1.0/src/ducta/ui/dist/assets/CodeEditorModal-Bn6HIvo_.js +2 -0
  267. ducta-0.1.0/src/ducta/ui/dist/assets/FileTree-fy0K1hc5.js +11 -0
  268. ducta-0.1.0/src/ducta/ui/dist/assets/GitPage-BLZTifzs.js +1 -0
  269. ducta-0.1.0/src/ducta/ui/dist/assets/IconDeviceFloppy-DJx3woB0.js +6 -0
  270. ducta-0.1.0/src/ducta/ui/dist/assets/IconFile-BOwCvB1N.js +6 -0
  271. ducta-0.1.0/src/ducta/ui/dist/assets/IconGauge-C7_OWA3r.js +6 -0
  272. ducta-0.1.0/src/ducta/ui/dist/assets/IconRefresh--9MuA2Po.js +6 -0
  273. ducta-0.1.0/src/ducta/ui/dist/assets/IngestionPage-BejE_vmJ.js +16 -0
  274. ducta-0.1.0/src/ducta/ui/dist/assets/NodeCodePage-BDebkLnk.js +2 -0
  275. ducta-0.1.0/src/ducta/ui/dist/assets/PageHeader-CirL0F2V.js +1 -0
  276. ducta-0.1.0/src/ducta/ui/dist/assets/SchedulesPage-OXeqg9bk.js +6 -0
  277. ducta-0.1.0/src/ducta/ui/dist/assets/SlidePanel-DvSLs86R.js +1 -0
  278. ducta-0.1.0/src/ducta/ui/dist/assets/TerminalPage-CRnPkCpN.js +6 -0
  279. ducta-0.1.0/src/ducta/ui/dist/assets/index-5f-7Noni.js +6 -0
  280. ducta-0.1.0/src/ducta/ui/dist/assets/index-C3Z4BcMk.js +16 -0
  281. ducta-0.1.0/src/ducta/ui/dist/assets/index-D5LWWk6j.js +410 -0
  282. ducta-0.1.0/src/ducta/ui/dist/assets/index-DLMDRgWR.css +1 -0
  283. ducta-0.1.0/src/ducta/ui/dist/assets/index-DtQrMoBQ.js +6 -0
  284. ducta-0.1.0/src/ducta/ui/dist/assets/logs.worker-OYhZsjGZ.js +1 -0
  285. ducta-0.1.0/src/ducta/ui/dist/assets/vendor-query-Dhnd9gHa.js +1 -0
  286. ducta-0.1.0/src/ducta/ui/dist/assets/vendor-react-DX4KxU8z.js +50 -0
  287. ducta-0.1.0/src/ducta/ui/dist/assets/vendor-router-Bmx9pU3G.js +13 -0
  288. ducta-0.1.0/src/ducta/ui/dist/assets/vendor-state-y7_o29KJ.js +1 -0
  289. ducta-0.1.0/src/ducta/ui/dist/assets/vendor-utils-BxtLg8Md.js +37 -0
  290. ducta-0.1.0/src/ducta/ui/dist/index.html +22 -0
  291. ducta-0.1.0/src/ducta/ui/scripts/contrast-check.mjs +150 -0
  292. ducta-0.1.0/src/ducta/ui/scripts/ui-quality-check.mjs +62 -0
ducta-0.1.0/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
ducta-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,358 @@
1
+ Metadata-Version: 2.4
2
+ Name: ducta
3
+ Version: 0.1.0
4
+ Summary: A unified data-pipeline framework for batch, streaming, ML, and hybrid workflows.
5
+ License: Apache-2.0
6
+ License-File: LICENSE
7
+ Keywords: data-pipeline,etl,spark,streaming,orchestration,workflow,data-quality,mlops
8
+ Author: Faustino Lopez Ramos
9
+ Author-email: faustinolopezramos@gmail.com
10
+ Maintainer: Faustino Lopez Ramos
11
+ Maintainer-email: faustinolopezramos@gmail.com
12
+ Requires-Python: >=3.10,<3.14
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Environment :: Console
15
+ Classifier: Environment :: Web Environment
16
+ Classifier: Framework :: FastAPI
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: Intended Audience :: Science/Research
19
+ Classifier: License :: OSI Approved :: Apache Software License
20
+ Classifier: Operating System :: OS Independent
21
+ Classifier: Programming Language :: Python :: 3
22
+ Classifier: Programming Language :: Python :: 3.10
23
+ Classifier: Programming Language :: Python :: 3.11
24
+ Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Topic :: Scientific/Engineering :: Information Analysis
27
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
28
+ Classifier: Topic :: System :: Distributed Computing
29
+ Provides-Extra: all
30
+ Provides-Extra: api
31
+ Provides-Extra: database
32
+ Provides-Extra: databricks
33
+ Provides-Extra: mlops
34
+ Provides-Extra: monitoring
35
+ Provides-Extra: spark
36
+ Requires-Dist: GitPython (>=3.1.0,<4.0.0) ; extra == "api" or extra == "all"
37
+ Requires-Dist: PyYAML (>=6.0,<7.0)
38
+ Requires-Dist: aiosqlite (>=0.20.0,<0.21.0) ; extra == "api" or extra == "database" or extra == "all"
39
+ Requires-Dist: alembic (>=1.14.0,<2.0.0) ; extra == "api" or extra == "database" or extra == "all"
40
+ Requires-Dist: asyncpg (>=0.30.0,<0.31.0) ; extra == "api" or extra == "database" or extra == "all"
41
+ Requires-Dist: bcrypt (>=4.0.0,<5.0.0) ; extra == "api" or extra == "all"
42
+ Requires-Dist: databricks-connect (>=14.0.0,<15.0.0) ; extra == "databricks"
43
+ Requires-Dist: fastapi (>=0.104.0,<1.0.0) ; extra == "api" or extra == "all"
44
+ Requires-Dist: loguru (>=0.7.0,<0.8.0)
45
+ Requires-Dist: mlflow (>=2.10.0,<3.0.0) ; extra == "mlops" or extra == "all"
46
+ Requires-Dist: msgpack (>=1.0.0,<2.0.0) ; extra == "api" or extra == "all"
47
+ Requires-Dist: numpy (>=1.24.0,<2.0.0) ; extra == "mlops" or extra == "all"
48
+ Requires-Dist: pandas (>=2.0.0,<3.0.0)
49
+ Requires-Dist: prometheus-client (>=0.17.0,<0.18.0) ; extra == "monitoring" or extra == "all"
50
+ Requires-Dist: psycopg2-binary (>=2.9.0,<3.0.0) ; extra == "api" or extra == "database" or extra == "all"
51
+ Requires-Dist: pyarrow (>=15.0.0,<20.0.0) ; extra == "spark" or extra == "all"
52
+ Requires-Dist: pydantic (>=2.0.0,<3.0.0)
53
+ Requires-Dist: pydantic-settings (>=2.0.0,<3.0.0)
54
+ Requires-Dist: pyspark (>=3.5.0,<4.0.0) ; extra == "spark" or extra == "all"
55
+ Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
56
+ Requires-Dist: python-jose[cryptography] (>=3.3.0,<4.0.0) ; extra == "api" or extra == "all"
57
+ Requires-Dist: redis (>=5.0.0,<6.0.0) ; extra == "api" or extra == "all"
58
+ Requires-Dist: rich (>=13.0.0,<14.0.0)
59
+ Requires-Dist: scikit-learn (>=1.3.0,<2.0.0) ; extra == "mlops" or extra == "all"
60
+ Requires-Dist: scipy (>=1.11.0,<2.0.0) ; extra == "mlops" or extra == "all"
61
+ Requires-Dist: setuptools (>=68.0.0) ; (python_version >= "3.12") and (extra == "spark" or extra == "all")
62
+ Requires-Dist: sqlalchemy[asyncio] (>=2.0.0,<3.0.0) ; extra == "api" or extra == "database" or extra == "all"
63
+ Requires-Dist: sqlglot (>=23.0.0,<31.0.0)
64
+ Requires-Dist: tomli (>=1.2.0,<2.0.0) ; python_version < "3.11"
65
+ Requires-Dist: tomli-w (>=1.0.0,<2.0.0)
66
+ Requires-Dist: typing-extensions (>=4.3.0,<5.0.0)
67
+ Requires-Dist: uvicorn[standard] (>=0.23.0,<0.24.0) ; extra == "api" or extra == "all"
68
+ Requires-Dist: watchdog (>=4.0.0,<5.0.0) ; extra == "api" or extra == "all"
69
+ Project-URL: Changelog, https://github.com/faustinolopezramos/ducta/blob/main/CHANGELOG.md
70
+ Project-URL: Documentation, https://github.com/faustinolopezramos/ducta/tree/main/docs
71
+ Project-URL: Homepage, https://github.com/faustinolopezramos/ducta
72
+ Project-URL: Issues, https://github.com/faustinolopezramos/ducta/issues
73
+ Project-URL: Repository, https://github.com/faustinolopezramos/ducta
74
+ Project-URL: Source, https://github.com/faustinolopezramos/ducta
75
+ Description-Content-Type: text/markdown
76
+
77
+ <div align="center">
78
+
79
+ # Ducta
80
+
81
+ **Build, run, and trust data pipelines — batch, streaming, and machine learning — from simple configuration.**
82
+
83
+ [![Python](https://img.shields.io/badge/python-3.10%20|%203.11%20|%203.12%20|%203.13-blue)](https://www.python.org/)
84
+ [![License: Apache 2.0](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE)
85
+ [![Status: Alpha](https://img.shields.io/badge/status-alpha-orange)](CHANGELOG.md)
86
+
87
+ </div>
88
+
89
+ Ducta lets you describe a data pipeline in a few config files, write your
90
+ transformations as ordinary Python functions, and run them with one command —
91
+ locally or on the cloud. Data-quality checks, experiment tracking, and a
92
+ tamper-evident record of every run come built in, so you can trust the results.
93
+
94
+ > **Status:** Alpha (`0.1.0`). Things may change between releases — see the
95
+ > [CHANGELOG](CHANGELOG.md).
96
+
97
+ > **Using Ducta vs. contributing to it.** If you just want to *use* Ducta,
98
+ > install the package from PyPI — `pip install ducta` (see [Install](#install)) —
99
+ > and you never touch this source tree. **This repository is organized for
100
+ > contributors** working on Ducta itself: its layout, tooling, and the
101
+ > [Development setup](#development-setup) below are built around that. The
102
+ > feature sections in between explain what Ducta does — useful context whichever
103
+ > side you're on.
104
+
105
+ ---
106
+
107
+ ## Why Ducta
108
+
109
+ - **One tool for every pipeline** — batch, streaming, and machine learning, the same way.
110
+ - **You write plain Python** — Ducta runs your functions in the right order and handles the data plumbing.
111
+ - **Runs anywhere** — your laptop (local Spark) or a cluster (Apache Spark / Databricks), no code changes.
112
+ - **Quality you can enforce** — automatic checks on your data that can warn or stop a run before bad data spreads.
113
+ - **Reproducible & auditable** — every run leaves a signed certificate of what ran, on which data, and with what result.
114
+ - **Work how you like** — a command line, a REST API, or a visual web app.
115
+
116
+ ---
117
+
118
+ ## Install
119
+
120
+ Requires **Python 3.10–3.13**. Once a release is published, the intended
121
+ end-user install is:
122
+
123
+ ```bash
124
+ pip install "ducta[spark]" # running pipelines (start here)
125
+ pip install "ducta[mlops]" # + experiment tracking & model registry
126
+ pip install "ducta[api]" # + web app / REST API
127
+ pip install "ducta[all]" # everything above
128
+ ```
129
+
130
+ > **Spark is required to run a pipeline.** Bare `pip install ducta` gives you the
131
+ > library and the CLI, but every execution context builds a Spark session, so
132
+ > commands that load a project (`ducta start`, `ducta config list-pipelines`, …)
133
+ > need the `spark` extra. Install `ducta[spark]` unless you only want to import
134
+ > Ducta as a library.
135
+
136
+ > **`databricks` is a separate, mutually exclusive extra.** Use
137
+ > `pip install "ducta[databricks]"` *instead of* `[spark]`, never alongside it:
138
+ > `databricks-connect` ships its own `pyspark` package and overwrites the real
139
+ > one, after which local execution fails. For that reason it is not part of
140
+ > `[all]`.
141
+
142
+ > **Contributing / working from source?** Don't use `pip` — set up the dev
143
+ > environment with Poetry (or Docker) instead. See [Development setup](#development-setup).
144
+
145
+ ---
146
+
147
+ ## Get started in 5 minutes
148
+
149
+ Scaffold a ready-to-run project and execute your first pipeline:
150
+
151
+ ```bash
152
+ # 1. Create a project (Medallion layout: bronze → silver → gold)
153
+ ducta template --template medallion_basic --project-name my_project --format yaml
154
+ cd my_project
155
+
156
+ # 2. See what pipelines it comes with
157
+ ducta config list-pipelines
158
+
159
+ # 3. Run one for a date range
160
+ ducta start --env dev --pipeline <pipeline-name> \
161
+ --start-date 2026-01-01 --end-date 2026-01-31
162
+ ```
163
+
164
+ Other starting points: `--template ml_ready`, `streaming_core`, or `hybrid`.
165
+ Run `ducta --help` to see every command.
166
+
167
+ ---
168
+
169
+ ## Anatomy of a pipeline
170
+
171
+ A Ducta project is **your transformation code** plus a few **config files** that
172
+ wire everything together. Here is a complete, minimal pipeline.
173
+
174
+ **1. Your transformation** — a normal Python function. Ducta passes in the input
175
+ data (a Spark DataFrame) and the run's date range, and you return the result.
176
+
177
+ ```python
178
+ # nodes.py
179
+ def clean_sales(sales, start_date, end_date):
180
+ return sales.dropna() # any DataFrame transformation
181
+ ```
182
+
183
+ **2. Where the data comes from and goes** (`config/input.yaml`, `config/output.yaml`):
184
+
185
+ ```yaml
186
+ # input.yaml
187
+ raw_sales:
188
+ format: "csv"
189
+ filepath: "${input_path}/sales.csv"
190
+ options: { header: "true", inferSchema: "true" }
191
+ ```
192
+
193
+ ```yaml
194
+ # output.yaml
195
+ core.analytics.sales_clean:
196
+ format: "parquet"
197
+ write_mode: "overwrite"
198
+ ```
199
+
200
+ **3. The step and the pipeline** (`config/nodes.yaml`, `config/pipelines.yaml`):
201
+
202
+ ```yaml
203
+ # nodes.yaml — one entry per transformation
204
+ clean_sales:
205
+ module: "nodes" # your nodes.py
206
+ function: "clean_sales"
207
+ input: ["raw_sales"] # passed to your function, in order
208
+ output: ["core.analytics.sales_clean"]
209
+
210
+ # pipelines.yaml — order your steps into a pipeline
211
+ sales_daily:
212
+ type: batch
213
+ nodes: ["clean_sales"]
214
+ ```
215
+
216
+ **4. Run it:**
217
+
218
+ ```bash
219
+ ducta start --env dev --pipeline sales_daily \
220
+ --start-date 2026-01-01 --end-date 2026-01-31
221
+ ```
222
+
223
+ Ducta reads `raw_sales`, runs `clean_sales`, checks the output, writes
224
+ `sales_clean`, and records a run certificate — all from that config.
225
+
226
+ ---
227
+
228
+ ## Enforce data quality
229
+
230
+ Add checks to any step. A **quality gate** decides whether a failure just warns
231
+ or actually stops the run.
232
+
233
+ ```yaml
234
+ # nodes.yaml
235
+ clean_sales:
236
+ module: "nodes"
237
+ function: "clean_sales"
238
+ input: ["raw_sales"]
239
+ output: ["core.analytics.sales_clean"]
240
+ data_quality:
241
+ checks:
242
+ row_count: { min: 1000 } # expect at least 1,000 rows
243
+ null_rate: { column: "id", max: 0.0 } # no missing ids
244
+ duplicates: { columns: ["id"] } # ids must be unique
245
+ quality_gate:
246
+ max_errors: 0 # any error blocks downstream steps
247
+ ```
248
+
249
+ Built-in checks include row counts, null rates, ranges, duplicates, schema,
250
+ freshness, and drift — and you can add your own.
251
+
252
+ ---
253
+
254
+ ## Use the web app
255
+
256
+ Prefer a visual workspace? Launch the built-in server and open it in your browser:
257
+
258
+ ```bash
259
+ ducta server start --port 8000
260
+ # Web app & API docs: http://localhost:8000
261
+ ```
262
+
263
+ From there you can browse pipelines, edit configuration, launch runs, and watch
264
+ logs stream live.
265
+
266
+ ---
267
+
268
+ ## Command cheatsheet
269
+
270
+ | Command | What it does |
271
+ |---------|--------------|
272
+ | `ducta template --template medallion_basic --project-name NAME` | Scaffold a new project |
273
+ | `ducta config list-pipelines` | List the pipelines in a project |
274
+ | `ducta start --env dev --pipeline NAME` | Run a batch / ML pipeline |
275
+ | `ducta stream run --pipeline NAME` | Start a streaming pipeline |
276
+ | `ducta quality run --input data.parquet --config checks.yaml` | Check a data file's quality |
277
+ | `ducta server start --port 8000` | Launch the web app + API |
278
+ | `ducta certify verify --run-id RUN_ID` | Verify a run certificate (from `.ducta/runs/`) |
279
+ | `ducta --help` | Full command reference |
280
+
281
+ ---
282
+
283
+ ## Development setup
284
+
285
+ This repository is where Ducta is built — the following gets you a working copy
286
+ to develop or contribute against. Two ways in:
287
+
288
+ ### Native — Poetry is the source of truth
289
+
290
+ Requires **Python 3.10–3.13** (a JRE is only needed if you work on the Spark paths).
291
+
292
+ ```bash
293
+ git clone <repo-url> && cd ducta
294
+ poetry install --extras all # all runtime extras + dev tools
295
+ poetry run ducta --help
296
+ poetry run pytest # run the test suite (tests/)
297
+ ```
298
+
299
+ > Use `--extras all`, **not** `--all-extras`: the latter also installs the
300
+ > `databricks` extra, whose `databricks-connect` overwrites `pyspark` and breaks
301
+ > local Spark (and therefore most of the test suite).
302
+
303
+ `pyproject.toml` + `poetry.lock` define every dependency — there is **no
304
+ hand-maintained `requirements.txt`**. (The docs build keeps a minimal
305
+ `docs/requirements.txt`, and the Docker image exports a locked constraints file
306
+ at build time; both are generated from the lock, never edited by hand.) Docs
307
+ dependencies are an optional group: `poetry install --with docs`.
308
+
309
+ ### Docker — the "works on any OS" fallback
310
+
311
+ If the native toolchain misbehaves on your OS (Spark/JRE, native wheels, Python
312
+ version), develop against a container instead. It runs the **full app — React
313
+ UI + API on one port** (the same thing `ducta ui` does):
314
+
315
+ ```bash
316
+ docker compose up --build
317
+ # UI: http://localhost:8000/ · API docs: /docs
318
+ ```
319
+
320
+ Run any CLI command in that same reproducible environment:
321
+
322
+ ```bash
323
+ docker compose run --rm ducta config list-pipelines
324
+ docker compose run --rm ducta --help
325
+ ```
326
+
327
+ ### Frontend
328
+
329
+ The visual workspace lives in `src/ducta/ui` (React + Vite). The API serves its
330
+ compiled output, so build it once and `ducta ui` picks it up (the Docker image
331
+ does this for you):
332
+
333
+ ```bash
334
+ cd src/ducta/ui && npm ci && npm run build
335
+ ```
336
+
337
+ See `src/ducta/ui/README.md` for live UI development.
338
+
339
+ ---
340
+
341
+ ## Documentation
342
+
343
+ - [Getting started](docs/getting_started.rst)
344
+ - [Installation](docs/installation.rst)
345
+ - [Configuration reference](docs/configuration.rst)
346
+ - [CLI usage](docs/cli_usage.rst)
347
+ - [Databricks setup](docs/databricks_setup.rst)
348
+ - [Best practices](docs/best_practices.rst)
349
+
350
+ Building on top of Ducta or contributing? Each module has its own guide under
351
+ `src/ducta/<module>/README.md`.
352
+
353
+ ---
354
+
355
+ ## License
356
+
357
+ [Apache License 2.0](LICENSE). Copyright © Faustino Lopez Ramos.
358
+