marivo 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 (416) hide show
  1. marivo-0.1.0/LICENSE +201 -0
  2. marivo-0.1.0/MANIFEST.in +3 -0
  3. marivo-0.1.0/PKG-INFO +168 -0
  4. marivo-0.1.0/README.md +114 -0
  5. marivo-0.1.0/marivo/__init__.py +3 -0
  6. marivo-0.1.0/marivo/analysis/__init__.py +138 -0
  7. marivo-0.1.0/marivo/analysis/calendar/__init__.py +15 -0
  8. marivo-0.1.0/marivo/analysis/calendar/align.py +528 -0
  9. marivo-0.1.0/marivo/analysis/calendar/loader.py +96 -0
  10. marivo-0.1.0/marivo/analysis/calendar/model.py +63 -0
  11. marivo-0.1.0/marivo/analysis/constraints.py +314 -0
  12. marivo-0.1.0/marivo/analysis/delta_math.py +51 -0
  13. marivo-0.1.0/marivo/analysis/errors.py +949 -0
  14. marivo-0.1.0/marivo/analysis/escape_hatch.py +1148 -0
  15. marivo-0.1.0/marivo/analysis/evidence/__init__.py +63 -0
  16. marivo-0.1.0/marivo/analysis/evidence/assessment.py +328 -0
  17. marivo-0.1.0/marivo/analysis/evidence/audit.py +266 -0
  18. marivo-0.1.0/marivo/analysis/evidence/extraction/__init__.py +1 -0
  19. marivo-0.1.0/marivo/analysis/evidence/extraction/anomaly.py +78 -0
  20. marivo-0.1.0/marivo/analysis/evidence/extraction/composition.py +109 -0
  21. marivo-0.1.0/marivo/analysis/evidence/extraction/correlation.py +87 -0
  22. marivo-0.1.0/marivo/analysis/evidence/extraction/delta.py +157 -0
  23. marivo-0.1.0/marivo/analysis/evidence/extraction/forecast.py +96 -0
  24. marivo-0.1.0/marivo/analysis/evidence/extraction/observation.py +94 -0
  25. marivo-0.1.0/marivo/analysis/evidence/extraction/test.py +86 -0
  26. marivo-0.1.0/marivo/analysis/evidence/followups.py +258 -0
  27. marivo-0.1.0/marivo/analysis/evidence/identity.py +160 -0
  28. marivo-0.1.0/marivo/analysis/evidence/knowledge.py +472 -0
  29. marivo-0.1.0/marivo/analysis/evidence/pipeline.py +840 -0
  30. marivo-0.1.0/marivo/analysis/evidence/seeding.py +348 -0
  31. marivo-0.1.0/marivo/analysis/evidence/store.py +253 -0
  32. marivo-0.1.0/marivo/analysis/evidence/types.py +293 -0
  33. marivo-0.1.0/marivo/analysis/executor/__init__.py +1 -0
  34. marivo-0.1.0/marivo/analysis/executor/query_record.py +85 -0
  35. marivo-0.1.0/marivo/analysis/executor/runner.py +1770 -0
  36. marivo-0.1.0/marivo/analysis/followups.py +99 -0
  37. marivo-0.1.0/marivo/analysis/frames/__init__.py +49 -0
  38. marivo-0.1.0/marivo/analysis/frames/_component.py +75 -0
  39. marivo-0.1.0/marivo/analysis/frames/_coverage.py +67 -0
  40. marivo-0.1.0/marivo/analysis/frames/_meta_defaults.py +137 -0
  41. marivo-0.1.0/marivo/analysis/frames/association.py +88 -0
  42. marivo-0.1.0/marivo/analysis/frames/attribution.py +60 -0
  43. marivo-0.1.0/marivo/analysis/frames/base.py +380 -0
  44. marivo-0.1.0/marivo/analysis/frames/candidate.py +113 -0
  45. marivo-0.1.0/marivo/analysis/frames/component.py +61 -0
  46. marivo-0.1.0/marivo/analysis/frames/coverage.py +28 -0
  47. marivo-0.1.0/marivo/analysis/frames/delta.py +100 -0
  48. marivo-0.1.0/marivo/analysis/frames/exploration.py +48 -0
  49. marivo-0.1.0/marivo/analysis/frames/forecast.py +43 -0
  50. marivo-0.1.0/marivo/analysis/frames/hypothesis.py +41 -0
  51. marivo-0.1.0/marivo/analysis/frames/metric.py +119 -0
  52. marivo-0.1.0/marivo/analysis/frames/quality.py +107 -0
  53. marivo-0.1.0/marivo/analysis/frames/render.py +12 -0
  54. marivo-0.1.0/marivo/analysis/help.py +926 -0
  55. marivo-0.1.0/marivo/analysis/intents/__init__.py +23 -0
  56. marivo-0.1.0/marivo/analysis/intents/_candidate_columns.py +250 -0
  57. marivo-0.1.0/marivo/analysis/intents/_derived.py +188 -0
  58. marivo-0.1.0/marivo/analysis/intents/_discover_scorers.py +558 -0
  59. marivo-0.1.0/marivo/analysis/intents/_quality_checks.py +186 -0
  60. marivo-0.1.0/marivo/analysis/intents/_shape.py +69 -0
  61. marivo-0.1.0/marivo/analysis/intents/_types.py +26 -0
  62. marivo-0.1.0/marivo/analysis/intents/_validate.py +192 -0
  63. marivo-0.1.0/marivo/analysis/intents/_window_pairs.py +303 -0
  64. marivo-0.1.0/marivo/analysis/intents/assess_quality.py +213 -0
  65. marivo-0.1.0/marivo/analysis/intents/compare.py +1638 -0
  66. marivo-0.1.0/marivo/analysis/intents/correlate.py +302 -0
  67. marivo-0.1.0/marivo/analysis/intents/decompose.py +577 -0
  68. marivo-0.1.0/marivo/analysis/intents/discover.py +969 -0
  69. marivo-0.1.0/marivo/analysis/intents/forecast.py +378 -0
  70. marivo-0.1.0/marivo/analysis/intents/observe.py +2144 -0
  71. marivo-0.1.0/marivo/analysis/intents/observe_errors.py +90 -0
  72. marivo-0.1.0/marivo/analysis/intents/observe_planner.py +2101 -0
  73. marivo-0.1.0/marivo/analysis/intents/sampled_fold.py +253 -0
  74. marivo-0.1.0/marivo/analysis/intents/select.py +195 -0
  75. marivo-0.1.0/marivo/analysis/intents/test.py +418 -0
  76. marivo-0.1.0/marivo/analysis/intents/transform.py +2056 -0
  77. marivo-0.1.0/marivo/analysis/lineage.py +30 -0
  78. marivo-0.1.0/marivo/analysis/policies.py +305 -0
  79. marivo-0.1.0/marivo/analysis/publish/__init__.py +86 -0
  80. marivo-0.1.0/marivo/analysis/publish/help.py +118 -0
  81. marivo-0.1.0/marivo/analysis/publish/publish_config.py +87 -0
  82. marivo-0.1.0/marivo/analysis/publish/publish_hash.py +42 -0
  83. marivo-0.1.0/marivo/analysis/publish/publish_secrets.py +69 -0
  84. marivo-0.1.0/marivo/analysis/publish/publish_targets.py +46 -0
  85. marivo-0.1.0/marivo/analysis/publish/replay_check.py +395 -0
  86. marivo-0.1.0/marivo/analysis/publish/report_mcp_adapter.py +543 -0
  87. marivo-0.1.0/marivo/analysis/publish/report_models.py +355 -0
  88. marivo-0.1.0/marivo/analysis/publish/report_package.py +102 -0
  89. marivo-0.1.0/marivo/analysis/publish/report_publish.py +180 -0
  90. marivo-0.1.0/marivo/analysis/publish/report_validation.py +634 -0
  91. marivo-0.1.0/marivo/analysis/refs.py +39 -0
  92. marivo-0.1.0/marivo/analysis/scripts/__init__.py +0 -0
  93. marivo-0.1.0/marivo/analysis/semantic_inputs.py +215 -0
  94. marivo-0.1.0/marivo/analysis/session/__init__.py +328 -0
  95. marivo-0.1.0/marivo/analysis/session/_connections.py +72 -0
  96. marivo-0.1.0/marivo/analysis/session/_layout.py +233 -0
  97. marivo-0.1.0/marivo/analysis/session/_load.py +147 -0
  98. marivo-0.1.0/marivo/analysis/session/_resolve.py +41 -0
  99. marivo-0.1.0/marivo/analysis/session/_runtime.py +319 -0
  100. marivo-0.1.0/marivo/analysis/session/_store.py +632 -0
  101. marivo-0.1.0/marivo/analysis/session/core.py +1677 -0
  102. marivo-0.1.0/marivo/analysis/timezone.py +81 -0
  103. marivo-0.1.0/marivo/analysis/validation.py +23 -0
  104. marivo-0.1.0/marivo/analysis/windows/__init__.py +25 -0
  105. marivo-0.1.0/marivo/analysis/windows/grain.py +208 -0
  106. marivo-0.1.0/marivo/analysis/windows/spec.py +176 -0
  107. marivo-0.1.0/marivo/cli.py +180 -0
  108. marivo-0.1.0/marivo/config.py +127 -0
  109. marivo-0.1.0/marivo/datasource/__init__.py +109 -0
  110. marivo-0.1.0/marivo/datasource/authoring.py +704 -0
  111. marivo-0.1.0/marivo/datasource/backends.py +188 -0
  112. marivo-0.1.0/marivo/datasource/catalog.py +299 -0
  113. marivo-0.1.0/marivo/datasource/constraints.py +251 -0
  114. marivo-0.1.0/marivo/datasource/errors.py +285 -0
  115. marivo-0.1.0/marivo/datasource/help.py +167 -0
  116. marivo-0.1.0/marivo/datasource/ir.py +225 -0
  117. marivo-0.1.0/marivo/datasource/loader.py +118 -0
  118. marivo-0.1.0/marivo/datasource/manage.py +1052 -0
  119. marivo-0.1.0/marivo/datasource/metadata.py +1138 -0
  120. marivo-0.1.0/marivo/datasource/runtime.py +117 -0
  121. marivo-0.1.0/marivo/datasource/scan.py +272 -0
  122. marivo-0.1.0/marivo/datasource/secrets.py +218 -0
  123. marivo-0.1.0/marivo/datasource/store.py +119 -0
  124. marivo-0.1.0/marivo/datasource/timezone.py +146 -0
  125. marivo-0.1.0/marivo/datasource/typing.py +88 -0
  126. marivo-0.1.0/marivo/introspection/__init__.py +1 -0
  127. marivo-0.1.0/marivo/introspection/_fuzzy.py +21 -0
  128. marivo-0.1.0/marivo/introspection/constraints.py +82 -0
  129. marivo-0.1.0/marivo/introspection/describe.py +335 -0
  130. marivo-0.1.0/marivo/introspection/errors.py +21 -0
  131. marivo-0.1.0/marivo/introspection/render.py +133 -0
  132. marivo-0.1.0/marivo/introspection/schema.py +71 -0
  133. marivo-0.1.0/marivo/introspection/surface.py +262 -0
  134. marivo-0.1.0/marivo/preview.py +315 -0
  135. marivo-0.1.0/marivo/project.py +42 -0
  136. marivo-0.1.0/marivo/refs.py +98 -0
  137. marivo-0.1.0/marivo/render.py +107 -0
  138. marivo-0.1.0/marivo/semantic/__init__.py +692 -0
  139. marivo-0.1.0/marivo/semantic/_registry_bridge.py +105 -0
  140. marivo-0.1.0/marivo/semantic/authoring.py +1674 -0
  141. marivo-0.1.0/marivo/semantic/catalog.py +1998 -0
  142. marivo-0.1.0/marivo/semantic/check.py +150 -0
  143. marivo-0.1.0/marivo/semantic/constraints.py +819 -0
  144. marivo-0.1.0/marivo/semantic/dtos.py +621 -0
  145. marivo-0.1.0/marivo/semantic/errors.py +320 -0
  146. marivo-0.1.0/marivo/semantic/help.py +695 -0
  147. marivo-0.1.0/marivo/semantic/ir.py +604 -0
  148. marivo-0.1.0/marivo/semantic/ledger.py +268 -0
  149. marivo-0.1.0/marivo/semantic/loader.py +700 -0
  150. marivo-0.1.0/marivo/semantic/materializer.py +619 -0
  151. marivo-0.1.0/marivo/semantic/parity.py +385 -0
  152. marivo-0.1.0/marivo/semantic/prepare.py +1216 -0
  153. marivo-0.1.0/marivo/semantic/reader.py +1144 -0
  154. marivo-0.1.0/marivo/semantic/readiness.py +627 -0
  155. marivo-0.1.0/marivo/semantic/refs.py +156 -0
  156. marivo-0.1.0/marivo/semantic/resolver.py +94 -0
  157. marivo-0.1.0/marivo/semantic/richness.py +295 -0
  158. marivo-0.1.0/marivo/semantic/scope.py +99 -0
  159. marivo-0.1.0/marivo/semantic/time_format.py +63 -0
  160. marivo-0.1.0/marivo/semantic/typing.py +31 -0
  161. marivo-0.1.0/marivo/semantic/unit_algebra.py +65 -0
  162. marivo-0.1.0/marivo/semantic/validator.py +1291 -0
  163. marivo-0.1.0/marivo/skills/__init__.py +1 -0
  164. marivo-0.1.0/marivo/skills/marivo-analysis/SKILL.md +362 -0
  165. marivo-0.1.0/marivo/skills/marivo-analysis/references/backend-setup.md +75 -0
  166. marivo-0.1.0/marivo/skills/marivo-analysis/references/cheatsheet.md +307 -0
  167. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/00_real_project_template.py +39 -0
  168. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/01_observe_single_window.py +27 -0
  169. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/02_compare_yoy.py +36 -0
  170. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/03_decompose_attribution.py +101 -0
  171. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/04_detect_anomaly.py +35 -0
  172. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/05_test_hypothesis.py +27 -0
  173. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/06_forecast_horizon.py +26 -0
  174. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/07_assess_metric_quality.py +22 -0
  175. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/08_discover_driver_axes.py +49 -0
  176. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/08_escape_hatch_promotion.py +141 -0
  177. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/09_discover_period_shifts.py +49 -0
  178. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/10_discover_interesting_slices.py +54 -0
  179. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/11_discover_cross_sectional.py +34 -0
  180. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/12_select_window_drilldown.py +39 -0
  181. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/13_dynamic_grain_observe.py +69 -0
  182. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/99_pitfall_pass_delta_to_compare.py +44 -0
  183. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/_fixtures/__init__.py +6 -0
  184. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/_fixtures/tiny_semantic.py +146 -0
  185. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/compare_calendar.py +59 -0
  186. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/compare_panel.py +37 -0
  187. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/compare_segmented.py +35 -0
  188. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/decompose_panel.py +38 -0
  189. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/observe_panel.py +29 -0
  190. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/observe_segmented.py +28 -0
  191. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/observe_timescope.py +35 -0
  192. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/session_frame_recovery.py +48 -0
  193. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/session_timezone.py +28 -0
  194. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/transform_normalize_share.py +37 -0
  195. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/transform_rollup_panel.py +43 -0
  196. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/transform_slice.py +56 -0
  197. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/transform_topk_delta.py +56 -0
  198. marivo-0.1.0/marivo/skills/marivo-analysis/references/examples/transform_window.py +31 -0
  199. marivo-0.1.0/marivo/skills/marivo-analysis/references/final-report.md +274 -0
  200. marivo-0.1.0/marivo/skills/marivo-analysis/references/judgment-db-schema.md +128 -0
  201. marivo-0.1.0/marivo/skills/marivo-analysis/references/pitfalls.md +472 -0
  202. marivo-0.1.0/marivo/skills/marivo-analysis/references/typed-facts.md +130 -0
  203. marivo-0.1.0/marivo/skills/marivo-semantic/SKILL.md +77 -0
  204. marivo-0.1.0/marivo/skills/marivo-semantic/references/authoring-patterns.md +411 -0
  205. marivo-0.1.0/marivo/skills/marivo-semantic/references/closeout.md +55 -0
  206. marivo-0.1.0/marivo/skills/marivo-semantic/references/datasource.md +257 -0
  207. marivo-0.1.0/marivo/skills/marivo-semantic/references/evidence-and-ledger.md +108 -0
  208. marivo-0.1.0/marivo/skills/marivo-semantic/references/examples/01_single_domain_file.py +109 -0
  209. marivo-0.1.0/marivo/skills/marivo-semantic/references/examples/02_source_evidence_to_check.py +71 -0
  210. marivo-0.1.0/marivo/skills/marivo-semantic/references/examples/03_closeout_readiness_richness.py +110 -0
  211. marivo-0.1.0/marivo/skills/marivo-semantic/references/examples/04_derived_metrics.py +168 -0
  212. marivo-0.1.0/marivo/skills/marivo-semantic/references/object-briefs.md +51 -0
  213. marivo-0.1.0/marivo/skills/marivo-semantic/references/pitfalls.md +199 -0
  214. marivo-0.1.0/marivo/skills/marivo-semantic/references/preview.md +82 -0
  215. marivo-0.1.0/marivo/skills/marivo-semantic/references/workflow.md +339 -0
  216. marivo-0.1.0/marivo.egg-info/PKG-INFO +168 -0
  217. marivo-0.1.0/marivo.egg-info/SOURCES.txt +414 -0
  218. marivo-0.1.0/marivo.egg-info/dependency_links.txt +1 -0
  219. marivo-0.1.0/marivo.egg-info/entry_points.txt +2 -0
  220. marivo-0.1.0/marivo.egg-info/requires.txt +40 -0
  221. marivo-0.1.0/marivo.egg-info/top_level.txt +1 -0
  222. marivo-0.1.0/pyproject.toml +166 -0
  223. marivo-0.1.0/setup.cfg +4 -0
  224. marivo-0.1.0/tests/test_agent_api_drift.py +333 -0
  225. marivo-0.1.0/tests/test_agent_result_protocol.py +294 -0
  226. marivo-0.1.0/tests/test_analysis_assess_quality.py +357 -0
  227. marivo-0.1.0/tests/test_analysis_calendar_loader.py +188 -0
  228. marivo-0.1.0/tests/test_analysis_candidate_columns.py +221 -0
  229. marivo-0.1.0/tests/test_analysis_candidate_followups.py +268 -0
  230. marivo-0.1.0/tests/test_analysis_candidate_select.py +487 -0
  231. marivo-0.1.0/tests/test_analysis_compare.py +817 -0
  232. marivo-0.1.0/tests/test_analysis_compare_calendar.py +957 -0
  233. marivo-0.1.0/tests/test_analysis_compare_panel.py +602 -0
  234. marivo-0.1.0/tests/test_analysis_compare_segmented.py +149 -0
  235. marivo-0.1.0/tests/test_analysis_component_compare_decompose.py +897 -0
  236. marivo-0.1.0/tests/test_analysis_correlate.py +480 -0
  237. marivo-0.1.0/tests/test_analysis_cross_session.py +56 -0
  238. marivo-0.1.0/tests/test_analysis_datasource_secrets.py +186 -0
  239. marivo-0.1.0/tests/test_analysis_decompose.py +501 -0
  240. marivo-0.1.0/tests/test_analysis_decompose_panel.py +123 -0
  241. marivo-0.1.0/tests/test_analysis_decompose_signature.py +15 -0
  242. marivo-0.1.0/tests/test_analysis_discover.py +301 -0
  243. marivo-0.1.0/tests/test_analysis_discover_objectives.py +587 -0
  244. marivo-0.1.0/tests/test_analysis_errors.py +140 -0
  245. marivo-0.1.0/tests/test_analysis_errors_shape.py +41 -0
  246. marivo-0.1.0/tests/test_analysis_errors_template.py +376 -0
  247. marivo-0.1.0/tests/test_analysis_escape_hatch.py +1299 -0
  248. marivo-0.1.0/tests/test_analysis_evidence_assess_quality.py +44 -0
  249. marivo-0.1.0/tests/test_analysis_evidence_assessment.py +126 -0
  250. marivo-0.1.0/tests/test_analysis_evidence_assessment_remaining.py +267 -0
  251. marivo-0.1.0/tests/test_analysis_evidence_correlate.py +71 -0
  252. marivo-0.1.0/tests/test_analysis_evidence_decompose.py +89 -0
  253. marivo-0.1.0/tests/test_analysis_evidence_discover.py +92 -0
  254. marivo-0.1.0/tests/test_analysis_evidence_e2e.py +153 -0
  255. marivo-0.1.0/tests/test_analysis_evidence_extraction.py +200 -0
  256. marivo-0.1.0/tests/test_analysis_evidence_extraction_anomaly.py +78 -0
  257. marivo-0.1.0/tests/test_analysis_evidence_extraction_composition.py +64 -0
  258. marivo-0.1.0/tests/test_analysis_evidence_extraction_correlation.py +54 -0
  259. marivo-0.1.0/tests/test_analysis_evidence_extraction_forecast.py +61 -0
  260. marivo-0.1.0/tests/test_analysis_evidence_extraction_test.py +54 -0
  261. marivo-0.1.0/tests/test_analysis_evidence_followups.py +120 -0
  262. marivo-0.1.0/tests/test_analysis_evidence_followups_full_whitelist.py +84 -0
  263. marivo-0.1.0/tests/test_analysis_evidence_forecast.py +50 -0
  264. marivo-0.1.0/tests/test_analysis_evidence_identity.py +101 -0
  265. marivo-0.1.0/tests/test_analysis_evidence_knowledge.py +199 -0
  266. marivo-0.1.0/tests/test_analysis_evidence_knowledge_full.py +391 -0
  267. marivo-0.1.0/tests/test_analysis_evidence_observe_compare.py +117 -0
  268. marivo-0.1.0/tests/test_analysis_evidence_pipeline.py +397 -0
  269. marivo-0.1.0/tests/test_analysis_evidence_seeding.py +152 -0
  270. marivo-0.1.0/tests/test_analysis_evidence_seeding_t2_decomposition.py +56 -0
  271. marivo-0.1.0/tests/test_analysis_evidence_seeding_t3_anomaly.py +50 -0
  272. marivo-0.1.0/tests/test_analysis_evidence_seeding_t4_correlation.py +68 -0
  273. marivo-0.1.0/tests/test_analysis_evidence_seeding_t5_test.py +62 -0
  274. marivo-0.1.0/tests/test_analysis_evidence_seeding_t6_forecast.py +67 -0
  275. marivo-0.1.0/tests/test_analysis_evidence_store.py +137 -0
  276. marivo-0.1.0/tests/test_analysis_evidence_surface3.py +150 -0
  277. marivo-0.1.0/tests/test_analysis_evidence_surface3_trace.py +27 -0
  278. marivo-0.1.0/tests/test_analysis_evidence_test_intent.py +66 -0
  279. marivo-0.1.0/tests/test_analysis_evidence_types.py +263 -0
  280. marivo-0.1.0/tests/test_analysis_evidence_walkthrough_doctest.py +97 -0
  281. marivo-0.1.0/tests/test_analysis_examples_v1_2.py +8 -0
  282. marivo-0.1.0/tests/test_analysis_executor_clickhouse_compat.py +107 -0
  283. marivo-0.1.0/tests/test_analysis_executor_window_tz.py +561 -0
  284. marivo-0.1.0/tests/test_analysis_forecast.py +182 -0
  285. marivo-0.1.0/tests/test_analysis_frame_cache.py +363 -0
  286. marivo-0.1.0/tests/test_analysis_frame_semantic_shape.py +193 -0
  287. marivo-0.1.0/tests/test_analysis_frame_unit.py +44 -0
  288. marivo-0.1.0/tests/test_analysis_frames_attribution.py +144 -0
  289. marivo-0.1.0/tests/test_analysis_frames_base.py +367 -0
  290. marivo-0.1.0/tests/test_analysis_frames_component.py +327 -0
  291. marivo-0.1.0/tests/test_analysis_frames_delta.py +110 -0
  292. marivo-0.1.0/tests/test_analysis_frames_metric.py +279 -0
  293. marivo-0.1.0/tests/test_analysis_frames_summary.py +367 -0
  294. marivo-0.1.0/tests/test_analysis_from_dataframe_window.py +50 -0
  295. marivo-0.1.0/tests/test_analysis_help.py +486 -0
  296. marivo-0.1.0/tests/test_analysis_imports.py +149 -0
  297. marivo-0.1.0/tests/test_analysis_integration.py +79 -0
  298. marivo-0.1.0/tests/test_analysis_lineage.py +74 -0
  299. marivo-0.1.0/tests/test_analysis_load_frame_v1_2.py +409 -0
  300. marivo-0.1.0/tests/test_analysis_observe.py +1138 -0
  301. marivo-0.1.0/tests/test_analysis_observe_cross_dataset_phase1.py +340 -0
  302. marivo-0.1.0/tests/test_analysis_observe_cross_dataset_phase2.py +783 -0
  303. marivo-0.1.0/tests/test_analysis_observe_cross_dataset_phase3.py +128 -0
  304. marivo-0.1.0/tests/test_analysis_observe_panel.py +257 -0
  305. marivo-0.1.0/tests/test_analysis_observe_planner.py +401 -0
  306. marivo-0.1.0/tests/test_analysis_observe_planner_phase2.py +170 -0
  307. marivo-0.1.0/tests/test_analysis_observe_planner_phase3.py +224 -0
  308. marivo-0.1.0/tests/test_analysis_observe_sampled_fold.py +610 -0
  309. marivo-0.1.0/tests/test_analysis_observe_segmented.py +426 -0
  310. marivo-0.1.0/tests/test_analysis_observe_timescope.py +269 -0
  311. marivo-0.1.0/tests/test_analysis_profiles_backends.py +413 -0
  312. marivo-0.1.0/tests/test_analysis_profiles_registry.py +318 -0
  313. marivo-0.1.0/tests/test_analysis_profiles_store.py +174 -0
  314. marivo-0.1.0/tests/test_analysis_publish_help.py +39 -0
  315. marivo-0.1.0/tests/test_analysis_refs_policies.py +270 -0
  316. marivo-0.1.0/tests/test_analysis_report_artifact_mcp_adapter.py +722 -0
  317. marivo-0.1.0/tests/test_analysis_report_artifact_models.py +425 -0
  318. marivo-0.1.0/tests/test_analysis_report_artifact_package.py +130 -0
  319. marivo-0.1.0/tests/test_analysis_report_artifact_publish.py +320 -0
  320. marivo-0.1.0/tests/test_analysis_report_artifact_publish_config.py +54 -0
  321. marivo-0.1.0/tests/test_analysis_report_artifact_publish_hash.py +43 -0
  322. marivo-0.1.0/tests/test_analysis_report_artifact_publish_secrets.py +46 -0
  323. marivo-0.1.0/tests/test_analysis_report_artifact_publish_targets.py +37 -0
  324. marivo-0.1.0/tests/test_analysis_report_artifact_validation.py +946 -0
  325. marivo-0.1.0/tests/test_analysis_result_frames.py +107 -0
  326. marivo-0.1.0/tests/test_analysis_result_surface_identity.py +144 -0
  327. marivo-0.1.0/tests/test_analysis_runner.py +359 -0
  328. marivo-0.1.0/tests/test_analysis_semantic_inputs.py +221 -0
  329. marivo-0.1.0/tests/test_analysis_session_attach.py +91 -0
  330. marivo-0.1.0/tests/test_analysis_session_connections.py +63 -0
  331. marivo-0.1.0/tests/test_analysis_session_core.py +281 -0
  332. marivo-0.1.0/tests/test_analysis_session_helpers.py +215 -0
  333. marivo-0.1.0/tests/test_analysis_session_layout.py +166 -0
  334. marivo-0.1.0/tests/test_analysis_session_profile_integration.py +129 -0
  335. marivo-0.1.0/tests/test_analysis_session_reports.py +501 -0
  336. marivo-0.1.0/tests/test_analysis_session_store.py +536 -0
  337. marivo-0.1.0/tests/test_analysis_session_surface.py +179 -0
  338. marivo-0.1.0/tests/test_analysis_session_timezone.py +137 -0
  339. marivo-0.1.0/tests/test_analysis_skill_final_report_guidance.py +85 -0
  340. marivo-0.1.0/tests/test_analysis_slice_predicates.py +123 -0
  341. marivo-0.1.0/tests/test_analysis_test.py +338 -0
  342. marivo-0.1.0/tests/test_analysis_transform.py +1596 -0
  343. marivo-0.1.0/tests/test_analysis_trino_format_regression.py +22 -0
  344. marivo-0.1.0/tests/test_analysis_validate.py +267 -0
  345. marivo-0.1.0/tests/test_analysis_window_encoding.py +823 -0
  346. marivo-0.1.0/tests/test_analysis_windows_spec.py +49 -0
  347. marivo-0.1.0/tests/test_catalog_discovery.py +525 -0
  348. marivo-0.1.0/tests/test_cli.py +208 -0
  349. marivo-0.1.0/tests/test_compare_dynamic_grain.py +62 -0
  350. marivo-0.1.0/tests/test_datasource_imports.py +117 -0
  351. marivo-0.1.0/tests/test_datasource_metadata.py +1236 -0
  352. marivo-0.1.0/tests/test_datasource_runtime.py +87 -0
  353. marivo-0.1.0/tests/test_datasource_runtime_timezone.py +87 -0
  354. marivo-0.1.0/tests/test_datasource_scan.py +166 -0
  355. marivo-0.1.0/tests/test_datasource_typed_specs.py +202 -0
  356. marivo-0.1.0/tests/test_evidence_subject_grain.py +13 -0
  357. marivo-0.1.0/tests/test_executor_subday_bucketing.py +43 -0
  358. marivo-0.1.0/tests/test_forecast_dynamic_grain_rejected.py +23 -0
  359. marivo-0.1.0/tests/test_grain_public_exports.py +12 -0
  360. marivo-0.1.0/tests/test_help_folding.py +247 -0
  361. marivo-0.1.0/tests/test_ibis_attr_shadow.py +158 -0
  362. marivo-0.1.0/tests/test_introspection_contract.py +445 -0
  363. marivo-0.1.0/tests/test_introspection_core.py +566 -0
  364. marivo-0.1.0/tests/test_introspection_fuzzy.py +32 -0
  365. marivo-0.1.0/tests/test_metric_split_analysis.py +307 -0
  366. marivo-0.1.0/tests/test_metric_split_catalog.py +141 -0
  367. marivo-0.1.0/tests/test_metric_split_closeout.py +78 -0
  368. marivo-0.1.0/tests/test_metric_split_foundation.py +305 -0
  369. marivo-0.1.0/tests/test_metric_split_materializer.py +175 -0
  370. marivo-0.1.0/tests/test_metric_split_resolution.py +178 -0
  371. marivo-0.1.0/tests/test_metric_unit_algebra.py +58 -0
  372. marivo-0.1.0/tests/test_metric_unit_propagation.py +229 -0
  373. marivo-0.1.0/tests/test_observe_dynamic_grain.py +108 -0
  374. marivo-0.1.0/tests/test_packaging_metadata.py +27 -0
  375. marivo-0.1.0/tests/test_preview.py +112 -0
  376. marivo-0.1.0/tests/test_provenance_sql_qualification.py +362 -0
  377. marivo-0.1.0/tests/test_public_surface.py +251 -0
  378. marivo-0.1.0/tests/test_query_record.py +549 -0
  379. marivo-0.1.0/tests/test_refs.py +59 -0
  380. marivo-0.1.0/tests/test_render_helpers.py +114 -0
  381. marivo-0.1.0/tests/test_replay_check.py +304 -0
  382. marivo-0.1.0/tests/test_run_skill_examples.py +290 -0
  383. marivo-0.1.0/tests/test_semantic_agent_tightening.py +369 -0
  384. marivo-0.1.0/tests/test_semantic_assembly.py +998 -0
  385. marivo-0.1.0/tests/test_semantic_authoring.py +1771 -0
  386. marivo-0.1.0/tests/test_semantic_authoring_surface_phase1.py +375 -0
  387. marivo-0.1.0/tests/test_semantic_authoring_surface_phase3.py +229 -0
  388. marivo-0.1.0/tests/test_semantic_catalog.py +1726 -0
  389. marivo-0.1.0/tests/test_semantic_dtos.py +567 -0
  390. marivo-0.1.0/tests/test_semantic_imports.py +993 -0
  391. marivo-0.1.0/tests/test_semantic_ladder.py +376 -0
  392. marivo-0.1.0/tests/test_semantic_ledger.py +472 -0
  393. marivo-0.1.0/tests/test_semantic_ledger_project.py +150 -0
  394. marivo-0.1.0/tests/test_semantic_loader.py +1306 -0
  395. marivo-0.1.0/tests/test_semantic_materializer.py +1011 -0
  396. marivo-0.1.0/tests/test_semantic_parity.py +757 -0
  397. marivo-0.1.0/tests/test_semantic_phase1_contracts.py +171 -0
  398. marivo-0.1.0/tests/test_semantic_phase2_validity.py +239 -0
  399. marivo-0.1.0/tests/test_semantic_phase3_fanout_policy.py +131 -0
  400. marivo-0.1.0/tests/test_semantic_prepare.py +676 -0
  401. marivo-0.1.0/tests/test_semantic_public_evidence_surface.py +29 -0
  402. marivo-0.1.0/tests/test_semantic_reader.py +37 -0
  403. marivo-0.1.0/tests/test_semantic_readiness.py +795 -0
  404. marivo-0.1.0/tests/test_semantic_refs.py +54 -0
  405. marivo-0.1.0/tests/test_semantic_resolver.py +84 -0
  406. marivo-0.1.0/tests/test_semantic_richness.py +352 -0
  407. marivo-0.1.0/tests/test_semantic_single_object_results.py +104 -0
  408. marivo-0.1.0/tests/test_semantic_stepwise_authoring_e2e.py +153 -0
  409. marivo-0.1.0/tests/test_semantic_subsecond_granularity.py +149 -0
  410. marivo-0.1.0/tests/test_semantic_time_format.py +36 -0
  411. marivo-0.1.0/tests/test_semantic_validator.py +539 -0
  412. marivo-0.1.0/tests/test_semantic_verify_object.py +369 -0
  413. marivo-0.1.0/tests/test_session_intent_introspection.py +110 -0
  414. marivo-0.1.0/tests/test_skill_surface_discipline.py +469 -0
  415. marivo-0.1.0/tests/test_windows_grain.py +126 -0
  416. marivo-0.1.0/tests/test_windows_grain_window.py +40 -0
marivo-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.
@@ -0,0 +1,3 @@
1
+ recursive-include marivo-skills/marivo-analysis *
2
+ recursive-include marivo-skills/marivo-semantic *
3
+ global-exclude __pycache__ *.py[cod] .DS_Store
marivo-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,168 @@
1
+ Metadata-Version: 2.4
2
+ Name: marivo
3
+ Version: 0.1.0
4
+ Summary: Python-native semantic modeling and analysis library for agentic analytics.
5
+ Author-email: li chengxiang <chengxiang.libra@gmail.com>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://marivo.io
8
+ Project-URL: Repository, https://github.com/chengxianglibra/marivo
9
+ Project-URL: Issues, https://github.com/chengxianglibra/marivo/issues
10
+ Keywords: semantic-layer,analytics,agentic-analysis,python-library
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Topic :: Database
17
+ Classifier: Topic :: Scientific/Engineering
18
+ Requires-Python: >=3.12
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: ibis-framework>=12.0.0
22
+ Requires-Dist: numpy>=1.26.0
23
+ Requires-Dist: pandas>=2.2.0
24
+ Requires-Dist: pydantic>=2.9.0
25
+ Requires-Dist: scipy>=1.13.0
26
+ Requires-Dist: tomli_w>=1.0
27
+ Provides-Extra: duckdb
28
+ Requires-Dist: ibis-framework[duckdb]>=12.0.0; extra == "duckdb"
29
+ Provides-Extra: trino
30
+ Requires-Dist: ibis-framework[trino]>=12.0.0; extra == "trino"
31
+ Provides-Extra: mysql
32
+ Requires-Dist: ibis-framework[mysql]>=12.0.0; extra == "mysql"
33
+ Provides-Extra: postgres
34
+ Requires-Dist: ibis-framework[postgres]>=12.0.0; extra == "postgres"
35
+ Provides-Extra: clickhouse
36
+ Requires-Dist: ibis-framework[clickhouse]>=12.0.0; extra == "clickhouse"
37
+ Provides-Extra: all
38
+ Requires-Dist: ibis-framework[clickhouse,duckdb,mysql,postgres,trino]>=12.0.0; extra == "all"
39
+ Provides-Extra: docs
40
+ Requires-Dist: sphinx>=7; extra == "docs"
41
+ Requires-Dist: pydata-sphinx-theme>=0.15; extra == "docs"
42
+ Provides-Extra: dev
43
+ Requires-Dist: ibis-framework[clickhouse,duckdb,mysql,postgres,trino]>=12.0.0; extra == "dev"
44
+ Requires-Dist: pytest>=8; extra == "dev"
45
+ Requires-Dist: pytest-xdist>=3; extra == "dev"
46
+ Requires-Dist: pytest-cov>=5.0; extra == "dev"
47
+ Requires-Dist: ruff>=0.3.0; extra == "dev"
48
+ Requires-Dist: mypy>=1.9; extra == "dev"
49
+ Requires-Dist: numpy>=1.26.0; extra == "dev"
50
+ Requires-Dist: pandas-stubs>=2.2.0; extra == "dev"
51
+ Requires-Dist: scipy-stubs>=1.14.1.0; extra == "dev"
52
+ Requires-Dist: import-linter>=2.0; extra == "dev"
53
+ Dynamic: license-file
54
+
55
+ # Marivo
56
+
57
+ Metric-centered analysis runtime for AI agents.
58
+
59
+ Marivo is a Python library — not a hosted service or a chat UI — that turns a
60
+ data warehouse into something an AI agent can analyze *reliably*. It is not a
61
+ text-to-SQL wrapper: Python declarations are the contract, ibis expressions are
62
+ the execution language, and typed frames are the boundary between analysis steps.
63
+
64
+ - **Unified semantics** — Datasources, entities, metrics, dimensions, and
65
+ relationships are declared in Python and addressed by semantic ref
66
+ (`sales.revenue`), not raw table or column names.
67
+ - **Metric-centered analysis** — Sessions start from a trusted metric and chain
68
+ typed intents (observe, compare, decompose, correlate, forecast), each
69
+ returning a typed frame.
70
+ - **Trustworthy evidence** — Every operator records findings, propositions, and
71
+ assessments, so any conclusion can be traced back to its inputs.
72
+ - **Readiness gates** — `catalog.readiness()` blocks incomplete semantic objects
73
+ from analysis until authoring and access issues are resolved.
74
+
75
+ ## Requirements
76
+
77
+ Python 3.12 or newer.
78
+
79
+ ## Installation
80
+
81
+ ```bash
82
+ pip install marivo
83
+ ```
84
+
85
+ Install the backend extra that matches your datasource:
86
+
87
+ | Backend | Install command |
88
+ | --- | --- |
89
+ | DuckDB | `pip install "marivo[duckdb]"` |
90
+ | MySQL | `pip install "marivo[mysql]"` |
91
+ | Postgres | `pip install "marivo[postgres]"` |
92
+ | ClickHouse | `pip install "marivo[clickhouse]"` |
93
+ | Trino | `pip install "marivo[trino]"` |
94
+ | All packaged backends | `pip install "marivo[all]"` |
95
+
96
+ Marivo is deployed by installing the library where the agent runs, checking in
97
+ the `models/` declarations, and providing datasource secrets through environment
98
+ variables referenced by `*_env` fields. There is no separate server.
99
+
100
+ ## Quick Start
101
+
102
+ Scaffold a project with the CLI:
103
+
104
+ ```bash
105
+ marivo init
106
+ ```
107
+
108
+ `marivo init` creates the project skeleton (`marivo.toml`, `models/`, `.marivo/`)
109
+ and installs the `marivo-semantic` and `marivo-analysis` skills for Claude Code
110
+ and Codex, so a coding agent can author the semantic layer with you.
111
+
112
+ Declare semantics under `models/semantic/`, then load and analyze:
113
+
114
+ ```python
115
+ import marivo.semantic as ms
116
+ import marivo.analysis as mv
117
+
118
+ catalog = ms.load()
119
+ report = catalog.readiness()
120
+ if report.status == "blocked":
121
+ report.show() # resolve blockers before analysis
122
+
123
+ session = mv.session.get_or_create(name="revenue-check", question="Why did Q4 drop?")
124
+ revenue = session.catalog.get("sales.revenue")
125
+ region = session.catalog.get("sales.orders.region")
126
+
127
+ current = session.observe(revenue, timescope={"start": "2026-10-01", "end": "2027-01-01"}, grain="month", dimensions=[region])
128
+ baseline = session.observe(revenue, timescope={"start": "2025-10-01", "end": "2026-01-01"}, grain="month", dimensions=[region])
129
+
130
+ delta = session.compare(current, baseline)
131
+ session.decompose(delta, axis=region).show()
132
+ ```
133
+
134
+ In-project help is available at every surface: `ms.help()` and `mv.help()` list
135
+ the surface; `ms.help("metric")` and `mv.help("observe")` drill into a symbol.
136
+
137
+ ## Documentation
138
+
139
+ Full guides live in the documentation site (built from [`site/`](site/)):
140
+
141
+ - **Installation** — install, `marivo init`, deploy.
142
+ - **Quick Start** — author declarations, load a catalog, run a first analysis.
143
+ - **Concepts** — semantic layer, analysis workflow, readiness, and evidence.
144
+
145
+ Maintained agent guidance lives in `marivo/skills/marivo-semantic` and
146
+ `marivo/skills/marivo-analysis`.
147
+
148
+ ## Development
149
+
150
+ ```bash
151
+ python3 -m venv .venv
152
+ .venv/bin/pip install -e ".[dev,duckdb,trino]"
153
+ ```
154
+
155
+ Repository commands run through the local virtualenv via `make`:
156
+
157
+ ```bash
158
+ make lint
159
+ make typecheck
160
+ make examples-check
161
+ make test
162
+ make check
163
+ ```
164
+
165
+ Read [`agent-guide.md`](agent-guide.md) before contributing. See
166
+ [`CONTRIBUTING.md`](CONTRIBUTING.md) for the full workflow.
167
+ </content>
168
+ </invoke>
marivo-0.1.0/README.md ADDED
@@ -0,0 +1,114 @@
1
+ # Marivo
2
+
3
+ Metric-centered analysis runtime for AI agents.
4
+
5
+ Marivo is a Python library — not a hosted service or a chat UI — that turns a
6
+ data warehouse into something an AI agent can analyze *reliably*. It is not a
7
+ text-to-SQL wrapper: Python declarations are the contract, ibis expressions are
8
+ the execution language, and typed frames are the boundary between analysis steps.
9
+
10
+ - **Unified semantics** — Datasources, entities, metrics, dimensions, and
11
+ relationships are declared in Python and addressed by semantic ref
12
+ (`sales.revenue`), not raw table or column names.
13
+ - **Metric-centered analysis** — Sessions start from a trusted metric and chain
14
+ typed intents (observe, compare, decompose, correlate, forecast), each
15
+ returning a typed frame.
16
+ - **Trustworthy evidence** — Every operator records findings, propositions, and
17
+ assessments, so any conclusion can be traced back to its inputs.
18
+ - **Readiness gates** — `catalog.readiness()` blocks incomplete semantic objects
19
+ from analysis until authoring and access issues are resolved.
20
+
21
+ ## Requirements
22
+
23
+ Python 3.12 or newer.
24
+
25
+ ## Installation
26
+
27
+ ```bash
28
+ pip install marivo
29
+ ```
30
+
31
+ Install the backend extra that matches your datasource:
32
+
33
+ | Backend | Install command |
34
+ | --- | --- |
35
+ | DuckDB | `pip install "marivo[duckdb]"` |
36
+ | MySQL | `pip install "marivo[mysql]"` |
37
+ | Postgres | `pip install "marivo[postgres]"` |
38
+ | ClickHouse | `pip install "marivo[clickhouse]"` |
39
+ | Trino | `pip install "marivo[trino]"` |
40
+ | All packaged backends | `pip install "marivo[all]"` |
41
+
42
+ Marivo is deployed by installing the library where the agent runs, checking in
43
+ the `models/` declarations, and providing datasource secrets through environment
44
+ variables referenced by `*_env` fields. There is no separate server.
45
+
46
+ ## Quick Start
47
+
48
+ Scaffold a project with the CLI:
49
+
50
+ ```bash
51
+ marivo init
52
+ ```
53
+
54
+ `marivo init` creates the project skeleton (`marivo.toml`, `models/`, `.marivo/`)
55
+ and installs the `marivo-semantic` and `marivo-analysis` skills for Claude Code
56
+ and Codex, so a coding agent can author the semantic layer with you.
57
+
58
+ Declare semantics under `models/semantic/`, then load and analyze:
59
+
60
+ ```python
61
+ import marivo.semantic as ms
62
+ import marivo.analysis as mv
63
+
64
+ catalog = ms.load()
65
+ report = catalog.readiness()
66
+ if report.status == "blocked":
67
+ report.show() # resolve blockers before analysis
68
+
69
+ session = mv.session.get_or_create(name="revenue-check", question="Why did Q4 drop?")
70
+ revenue = session.catalog.get("sales.revenue")
71
+ region = session.catalog.get("sales.orders.region")
72
+
73
+ current = session.observe(revenue, timescope={"start": "2026-10-01", "end": "2027-01-01"}, grain="month", dimensions=[region])
74
+ baseline = session.observe(revenue, timescope={"start": "2025-10-01", "end": "2026-01-01"}, grain="month", dimensions=[region])
75
+
76
+ delta = session.compare(current, baseline)
77
+ session.decompose(delta, axis=region).show()
78
+ ```
79
+
80
+ In-project help is available at every surface: `ms.help()` and `mv.help()` list
81
+ the surface; `ms.help("metric")` and `mv.help("observe")` drill into a symbol.
82
+
83
+ ## Documentation
84
+
85
+ Full guides live in the documentation site (built from [`site/`](site/)):
86
+
87
+ - **Installation** — install, `marivo init`, deploy.
88
+ - **Quick Start** — author declarations, load a catalog, run a first analysis.
89
+ - **Concepts** — semantic layer, analysis workflow, readiness, and evidence.
90
+
91
+ Maintained agent guidance lives in `marivo/skills/marivo-semantic` and
92
+ `marivo/skills/marivo-analysis`.
93
+
94
+ ## Development
95
+
96
+ ```bash
97
+ python3 -m venv .venv
98
+ .venv/bin/pip install -e ".[dev,duckdb,trino]"
99
+ ```
100
+
101
+ Repository commands run through the local virtualenv via `make`:
102
+
103
+ ```bash
104
+ make lint
105
+ make typecheck
106
+ make examples-check
107
+ make test
108
+ make check
109
+ ```
110
+
111
+ Read [`agent-guide.md`](agent-guide.md) before contributing. See
112
+ [`CONTRIBUTING.md`](CONTRIBUTING.md) for the full workflow.
113
+ </content>
114
+ </invoke>
@@ -0,0 +1,3 @@
1
+ from importlib.metadata import version as _metadata_version
2
+
3
+ __version__ = _metadata_version("marivo")
@@ -0,0 +1,138 @@
1
+ """Marivo Python-native analysis runtime (analysis)."""
2
+
3
+ from typing import Any as _Any
4
+
5
+ from marivo.analysis import errors as errors
6
+ from marivo.analysis import session
7
+ from marivo.analysis.calendar.model import CalendarPolicy
8
+ from marivo.analysis.followups import (
9
+ BlockingIssue,
10
+ ConfidenceScope,
11
+ FollowupAction,
12
+ )
13
+ from marivo.analysis.frames.association import AssociationResult
14
+ from marivo.analysis.frames.attribution import AttributionFrame
15
+ from marivo.analysis.frames.base import BaseFrame, BaseFrameMeta, FramePreview, FrameSummary
16
+ from marivo.analysis.frames.candidate import (
17
+ CandidateObjective,
18
+ CandidateSet,
19
+ )
20
+ from marivo.analysis.frames.component import ComponentFrame
21
+ from marivo.analysis.frames.coverage import CoverageFrame
22
+ from marivo.analysis.frames.delta import DeltaFrame
23
+ from marivo.analysis.frames.exploration import ExplorationResult
24
+ from marivo.analysis.frames.forecast import ForecastFrame
25
+ from marivo.analysis.frames.hypothesis import HypothesisTestResult
26
+ from marivo.analysis.frames.metric import MetricFrame
27
+ from marivo.analysis.frames.quality import QualityReport
28
+ from marivo.analysis.help import help, help_text
29
+ from marivo.analysis.intents._types import (
30
+ DiscoverSensitivity,
31
+ SlicePredicate,
32
+ SlicePredicateOp,
33
+ SliceScalar,
34
+ SliceValue,
35
+ )
36
+ from marivo.analysis.lineage import Lineage, LineageStep
37
+ from marivo.analysis.policies import (
38
+ AlignmentKind,
39
+ AlignmentPolicy,
40
+ PromotionPolicy,
41
+ PromotionSemanticAnchors,
42
+ SamplingPolicy,
43
+ dow_aligned,
44
+ holiday_aligned,
45
+ holiday_and_dow_aligned,
46
+ window_bucket,
47
+ )
48
+ from marivo.analysis.refs import ArtifactRef, CalendarRef
49
+ from marivo.analysis.session._store import SessionSummary
50
+ from marivo.analysis.session.core import FrameSummaryEntry, JobSummary, ReportRegistration, Session
51
+ from marivo.analysis.windows.spec import (
52
+ AbsoluteWindow,
53
+ TimeScope,
54
+ TimeScopeInput,
55
+ )
56
+ from marivo.refs import SemanticRef
57
+ from marivo.semantic.catalog import SemanticObject
58
+ from marivo.semantic.refs import make_ref
59
+
60
+
61
+ def __getattr__(name: str) -> _Any:
62
+ if name == "evidence":
63
+ from importlib import import_module
64
+
65
+ return import_module("marivo.analysis.evidence")
66
+ if name == "frames":
67
+ from importlib import import_module
68
+
69
+ return import_module("marivo.analysis.frames")
70
+ if name == "publish":
71
+ from importlib import import_module
72
+
73
+ return import_module("marivo.analysis.publish")
74
+ if name == "SemanticKind":
75
+ from marivo.semantic.catalog import SemanticKind
76
+
77
+ return SemanticKind
78
+ raise AttributeError(name)
79
+
80
+
81
+ __all__ = [
82
+ "AbsoluteWindow",
83
+ "AlignmentKind",
84
+ "AlignmentPolicy",
85
+ "ArtifactRef",
86
+ "AssociationResult",
87
+ "AttributionFrame",
88
+ "BaseFrame",
89
+ "BaseFrameMeta",
90
+ "BlockingIssue",
91
+ "CalendarPolicy",
92
+ "CalendarRef",
93
+ "CandidateObjective",
94
+ "CandidateSet",
95
+ "ComponentFrame",
96
+ "ConfidenceScope",
97
+ "CoverageFrame",
98
+ "DeltaFrame",
99
+ "DiscoverSensitivity",
100
+ "ExplorationResult",
101
+ "FollowupAction",
102
+ "ForecastFrame",
103
+ "FramePreview",
104
+ "FrameSummary",
105
+ "FrameSummaryEntry",
106
+ "HypothesisTestResult",
107
+ "JobSummary",
108
+ "Lineage",
109
+ "LineageStep",
110
+ "MetricFrame",
111
+ "PromotionPolicy",
112
+ "PromotionSemanticAnchors",
113
+ "QualityReport",
114
+ "ReportRegistration",
115
+ "SamplingPolicy",
116
+ "SemanticObject",
117
+ "SemanticRef",
118
+ "Session",
119
+ "SessionSummary",
120
+ "SlicePredicate",
121
+ "SlicePredicateOp",
122
+ "SliceScalar",
123
+ "SliceValue",
124
+ "TimeScope",
125
+ "TimeScopeInput",
126
+ "dow_aligned",
127
+ "errors",
128
+ "evidence",
129
+ "frames",
130
+ "help",
131
+ "help_text",
132
+ "holiday_aligned",
133
+ "holiday_and_dow_aligned",
134
+ "make_ref",
135
+ "publish",
136
+ "session",
137
+ "window_bucket",
138
+ ]
@@ -0,0 +1,15 @@
1
+ from marivo.analysis.calendar.loader import CalendarCache
2
+ from marivo.analysis.calendar.model import (
3
+ Calendar,
4
+ CalendarEntry,
5
+ CalendarInfo,
6
+ CalendarPolicy,
7
+ )
8
+
9
+ __all__ = [
10
+ "Calendar",
11
+ "CalendarCache",
12
+ "CalendarEntry",
13
+ "CalendarInfo",
14
+ "CalendarPolicy",
15
+ ]