strata-notebook 0.1.0a2__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.
- strata_notebook-0.1.0a2/LICENSE +201 -0
- strata_notebook-0.1.0a2/PKG-INFO +349 -0
- strata_notebook-0.1.0a2/README.md +283 -0
- strata_notebook-0.1.0a2/pyproject.toml +220 -0
- strata_notebook-0.1.0a2/rust/Cargo.lock +1060 -0
- strata_notebook-0.1.0a2/rust/Cargo.toml +21 -0
- strata_notebook-0.1.0a2/rust/src/lib.rs +282 -0
- strata_notebook-0.1.0a2/src/strata/__init__.py +17 -0
- strata_notebook-0.1.0a2/src/strata/__main__.py +6 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/ConnectionsPanel-CZ55O8I4.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/ConnectionsPanel-PaZfAYVy.js +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/DagView-B3UiLJIu.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/DagView-qUOG2wY9.js +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/EnvironmentPanel-CiO1g1bC.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/EnvironmentPanel-DLHpLGty.js +7 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/ImpactPreview-CRuyl2V3.js +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/ImpactPreview-D7K4fufy.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/InspectPanel-DasUNsG5.js +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/InspectPanel-GUpTWHW9.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/InspectSwapConfirm-Bz5tcKXy.js +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/InspectSwapConfirm-qbl06L3k.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/LlmPanel-CPB21o0Z.js +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/LlmPanel-DxZ3sOie.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/MountsPanel-Cez9NltP.js +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/MountsPanel-DZCbmxNs.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/NotebookPage-BDY9Qo6e.js +12 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/NotebookPage-CCBe0-GL.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/NotesPanel-CUW8m_PS.js +3 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/NotesPanel-CmBM3tZh.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/ProfilingPanel-BpLh0VvW.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/ProfilingPanel-D4FBn6R8.js +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/RuntimePanel-CPAigeTh.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/RuntimePanel-DojW5-U_.js +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/SchemaPanel-BNmG3Abk.js +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/SchemaPanel-C9h_rN4e.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/WorkersPanel-BvdbXRHI.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/WorkersPanel-CFLo0CQ9.js +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/codemirror-vendor-DEZGOCRX.js +45 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/index-DDug5HMR.css +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/index-DYcxQnqg.js +16 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/notebook-BYIKs_i_.js +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/perf-dmWUXb88.js +6 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/assets/rolldown-runtime-lhHHWwHU.js +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/favicon.svg +1 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/icons.svg +24 -0
- strata_notebook-0.1.0a2/src/strata/_frontend/index.html +21 -0
- strata_notebook-0.1.0a2/src/strata/_uv_runtime.py +46 -0
- strata_notebook-0.1.0a2/src/strata/adaptive_concurrency.py +530 -0
- strata_notebook-0.1.0a2/src/strata/artifact_store.py +1899 -0
- strata_notebook-0.1.0a2/src/strata/auth.py +251 -0
- strata_notebook-0.1.0a2/src/strata/blob_store.py +940 -0
- strata_notebook-0.1.0a2/src/strata/cache.py +631 -0
- strata_notebook-0.1.0a2/src/strata/cache_metrics.py +186 -0
- strata_notebook-0.1.0a2/src/strata/cache_stats.py +279 -0
- strata_notebook-0.1.0a2/src/strata/cache_warmer.py +416 -0
- strata_notebook-0.1.0a2/src/strata/circuit_breaker.py +361 -0
- strata_notebook-0.1.0a2/src/strata/cli.py +111 -0
- strata_notebook-0.1.0a2/src/strata/client.py +1758 -0
- strata_notebook-0.1.0a2/src/strata/config.py +830 -0
- strata_notebook-0.1.0a2/src/strata/duckdb_ext.py +19 -0
- strata_notebook-0.1.0a2/src/strata/executors.py +83 -0
- strata_notebook-0.1.0a2/src/strata/fast_io.py +413 -0
- strata_notebook-0.1.0a2/src/strata/fetcher.py +172 -0
- strata_notebook-0.1.0a2/src/strata/gc_tracker.py +292 -0
- strata_notebook-0.1.0a2/src/strata/health.py +445 -0
- strata_notebook-0.1.0a2/src/strata/iceberg.py +184 -0
- strata_notebook-0.1.0a2/src/strata/integration/__init__.py +54 -0
- strata_notebook-0.1.0a2/src/strata/integration/arrow.py +389 -0
- strata_notebook-0.1.0a2/src/strata/integration/datafusion.py +290 -0
- strata_notebook-0.1.0a2/src/strata/integration/duckdb.py +322 -0
- strata_notebook-0.1.0a2/src/strata/integration/pandas.py +201 -0
- strata_notebook-0.1.0a2/src/strata/integration/polars.py +285 -0
- strata_notebook-0.1.0a2/src/strata/json_types.py +5 -0
- strata_notebook-0.1.0a2/src/strata/logging.py +548 -0
- strata_notebook-0.1.0a2/src/strata/memory_profiler.py +383 -0
- strata_notebook-0.1.0a2/src/strata/metadata_cache.py +893 -0
- strata_notebook-0.1.0a2/src/strata/metadata_store.py +606 -0
- strata_notebook-0.1.0a2/src/strata/metrics.py +450 -0
- strata_notebook-0.1.0a2/src/strata/notebook/__init__.py +35 -0
- strata_notebook-0.1.0a2/src/strata/notebook/analyzer.py +685 -0
- strata_notebook-0.1.0a2/src/strata/notebook/annotation_validation.py +697 -0
- strata_notebook-0.1.0a2/src/strata/notebook/annotations.py +501 -0
- strata_notebook-0.1.0a2/src/strata/notebook/artifact_integration.py +345 -0
- strata_notebook-0.1.0a2/src/strata/notebook/cascade.py +189 -0
- strata_notebook-0.1.0a2/src/strata/notebook/causality.py +323 -0
- strata_notebook-0.1.0a2/src/strata/notebook/cli.py +537 -0
- strata_notebook-0.1.0a2/src/strata/notebook/dag.py +495 -0
- strata_notebook-0.1.0a2/src/strata/notebook/dependencies.py +1053 -0
- strata_notebook-0.1.0a2/src/strata/notebook/display/__init__.py +18 -0
- strata_notebook-0.1.0a2/src/strata/notebook/display/runtime.py +122 -0
- strata_notebook-0.1.0a2/src/strata/notebook/env.py +185 -0
- strata_notebook-0.1.0a2/src/strata/notebook/env_backend.py +258 -0
- strata_notebook-0.1.0a2/src/strata/notebook/executor.py +2918 -0
- strata_notebook-0.1.0a2/src/strata/notebook/export.py +859 -0
- strata_notebook-0.1.0a2/src/strata/notebook/harness.py +375 -0
- strata_notebook-0.1.0a2/src/strata/notebook/immutability.py +244 -0
- strata_notebook-0.1.0a2/src/strata/notebook/impact.py +178 -0
- strata_notebook-0.1.0a2/src/strata/notebook/inspect_repl.py +457 -0
- strata_notebook-0.1.0a2/src/strata/notebook/jupyter_import.py +1140 -0
- strata_notebook-0.1.0a2/src/strata/notebook/llm/__init__.py +93 -0
- strata_notebook-0.1.0a2/src/strata/notebook/llm/agent.py +923 -0
- strata_notebook-0.1.0a2/src/strata/notebook/llm/client.py +208 -0
- strata_notebook-0.1.0a2/src/strata/notebook/llm/config.py +177 -0
- strata_notebook-0.1.0a2/src/strata/notebook/llm/context.py +98 -0
- strata_notebook-0.1.0a2/src/strata/notebook/llm/prompts.py +215 -0
- strata_notebook-0.1.0a2/src/strata/notebook/llm/structured.py +198 -0
- strata_notebook-0.1.0a2/src/strata/notebook/models.py +723 -0
- strata_notebook-0.1.0a2/src/strata/notebook/module_export.py +507 -0
- strata_notebook-0.1.0a2/src/strata/notebook/mounts.py +658 -0
- strata_notebook-0.1.0a2/src/strata/notebook/parser.py +308 -0
- strata_notebook-0.1.0a2/src/strata/notebook/pool.py +306 -0
- strata_notebook-0.1.0a2/src/strata/notebook/pool_worker.py +316 -0
- strata_notebook-0.1.0a2/src/strata/notebook/process_tree.py +158 -0
- strata_notebook-0.1.0a2/src/strata/notebook/prompt_analyzer.py +170 -0
- strata_notebook-0.1.0a2/src/strata/notebook/prompt_executor.py +518 -0
- strata_notebook-0.1.0a2/src/strata/notebook/provenance.py +122 -0
- strata_notebook-0.1.0a2/src/strata/notebook/python_versions.py +187 -0
- strata_notebook-0.1.0a2/src/strata/notebook/remote_bundle.py +251 -0
- strata_notebook-0.1.0a2/src/strata/notebook/remote_executor.py +786 -0
- strata_notebook-0.1.0a2/src/strata/notebook/routes.py +3254 -0
- strata_notebook-0.1.0a2/src/strata/notebook/runtime_state.py +209 -0
- strata_notebook-0.1.0a2/src/strata/notebook/secret_manager/__init__.py +39 -0
- strata_notebook-0.1.0a2/src/strata/notebook/secret_manager/infisical.py +121 -0
- strata_notebook-0.1.0a2/src/strata/notebook/secret_manager/provider.py +63 -0
- strata_notebook-0.1.0a2/src/strata/notebook/secret_manager/registry.py +38 -0
- strata_notebook-0.1.0a2/src/strata/notebook/secret_manager/session_integration.py +97 -0
- strata_notebook-0.1.0a2/src/strata/notebook/serializer.py +1427 -0
- strata_notebook-0.1.0a2/src/strata/notebook/session.py +2575 -0
- strata_notebook-0.1.0a2/src/strata/notebook/sql/__init__.py +52 -0
- strata_notebook-0.1.0a2/src/strata/notebook/sql/adapter.py +262 -0
- strata_notebook-0.1.0a2/src/strata/notebook/sql/analyzer.py +376 -0
- strata_notebook-0.1.0a2/src/strata/notebook/sql/bind.py +135 -0
- strata_notebook-0.1.0a2/src/strata/notebook/sql/cell_executor.py +1016 -0
- strata_notebook-0.1.0a2/src/strata/notebook/sql/drivers/__init__.py +62 -0
- strata_notebook-0.1.0a2/src/strata/notebook/sql/drivers/bigquery.py +502 -0
- strata_notebook-0.1.0a2/src/strata/notebook/sql/drivers/duckdb.py +447 -0
- strata_notebook-0.1.0a2/src/strata/notebook/sql/drivers/postgresql.py +509 -0
- strata_notebook-0.1.0a2/src/strata/notebook/sql/drivers/snowflake.py +648 -0
- strata_notebook-0.1.0a2/src/strata/notebook/sql/drivers/sqlite.py +461 -0
- strata_notebook-0.1.0a2/src/strata/notebook/sql/provenance.py +350 -0
- strata_notebook-0.1.0a2/src/strata/notebook/sql/registry.py +68 -0
- strata_notebook-0.1.0a2/src/strata/notebook/timing.py +47 -0
- strata_notebook-0.1.0a2/src/strata/notebook/workers.py +867 -0
- strata_notebook-0.1.0a2/src/strata/notebook/writer.py +1182 -0
- strata_notebook-0.1.0a2/src/strata/notebook/ws.py +2272 -0
- strata_notebook-0.1.0a2/src/strata/planner.py +475 -0
- strata_notebook-0.1.0a2/src/strata/polars_ext.py +17 -0
- strata_notebook-0.1.0a2/src/strata/pool_metrics.py +297 -0
- strata_notebook-0.1.0a2/src/strata/py.typed +0 -0
- strata_notebook-0.1.0a2/src/strata/rate_limiter.py +299 -0
- strata_notebook-0.1.0a2/src/strata/server.py +6267 -0
- strata_notebook-0.1.0a2/src/strata/slow_ops.py +398 -0
- strata_notebook-0.1.0a2/src/strata/tenant.py +181 -0
- strata_notebook-0.1.0a2/src/strata/tenant_acl.py +289 -0
- strata_notebook-0.1.0a2/src/strata/tenant_registry.py +286 -0
- strata_notebook-0.1.0a2/src/strata/tracing.py +220 -0
- strata_notebook-0.1.0a2/src/strata/transforms/__init__.py +75 -0
- strata_notebook-0.1.0a2/src/strata/transforms/base.py +227 -0
- strata_notebook-0.1.0a2/src/strata/transforms/build_metrics.py +649 -0
- strata_notebook-0.1.0a2/src/strata/transforms/build_qos.py +587 -0
- strata_notebook-0.1.0a2/src/strata/transforms/build_store.py +817 -0
- strata_notebook-0.1.0a2/src/strata/transforms/duckdb_sql.py +158 -0
- strata_notebook-0.1.0a2/src/strata/transforms/reference_executor.py +489 -0
- strata_notebook-0.1.0a2/src/strata/transforms/registry.py +243 -0
- strata_notebook-0.1.0a2/src/strata/transforms/runner.py +973 -0
- strata_notebook-0.1.0a2/src/strata/transforms/scan.py +147 -0
- strata_notebook-0.1.0a2/src/strata/transforms/signed_urls.py +450 -0
- strata_notebook-0.1.0a2/src/strata/types.py +1345 -0
|
@@ -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,349 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: strata-notebook
|
|
3
|
+
Version: 0.1.0a2
|
|
4
|
+
Classifier: Development Status :: 3 - Alpha
|
|
5
|
+
Classifier: Intended Audience :: Developers
|
|
6
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
10
|
+
Classifier: Programming Language :: Rust
|
|
11
|
+
Requires-Dist: pyiceberg[sql-sqlite,sql-postgres]>=0.8.0
|
|
12
|
+
Requires-Dist: pyarrow>=18.0.0
|
|
13
|
+
Requires-Dist: fastapi>=0.115.0
|
|
14
|
+
Requires-Dist: uvicorn>=0.32.0
|
|
15
|
+
Requires-Dist: websockets>=13.0
|
|
16
|
+
Requires-Dist: httpx>=0.28.0
|
|
17
|
+
Requires-Dist: duckdb>=1.1.0
|
|
18
|
+
Requires-Dist: python-multipart>=0.0.9
|
|
19
|
+
Requires-Dist: pydantic>=2.0.0
|
|
20
|
+
Requires-Dist: pydantic-settings>=2.0.0
|
|
21
|
+
Requires-Dist: tomli-w>=1.0.0
|
|
22
|
+
Requires-Dist: jsonschema>=4.0.0
|
|
23
|
+
Requires-Dist: infisicalsdk>=1.0.16
|
|
24
|
+
Requires-Dist: packaging>=24.0
|
|
25
|
+
Requires-Dist: azure-storage-blob>=12.20.0 ; extra == 'azure'
|
|
26
|
+
Requires-Dist: azure-identity>=1.15.0 ; extra == 'azure'
|
|
27
|
+
Requires-Dist: pandas>=2.0.0 ; extra == 'notebook'
|
|
28
|
+
Requires-Dist: numpy>=1.26.0 ; extra == 'notebook'
|
|
29
|
+
Requires-Dist: orjson>=3.10.0 ; extra == 'notebook'
|
|
30
|
+
Requires-Dist: cloudpickle>=3.0.0 ; extra == 'notebook'
|
|
31
|
+
Requires-Dist: matplotlib>=3.8.0 ; extra == 'notebook'
|
|
32
|
+
Requires-Dist: pillow>=10.0.0 ; extra == 'notebook'
|
|
33
|
+
Requires-Dist: opentelemetry-api>=1.20.0 ; extra == 'otel'
|
|
34
|
+
Requires-Dist: opentelemetry-sdk>=1.20.0 ; extra == 'otel'
|
|
35
|
+
Requires-Dist: opentelemetry-exporter-otlp>=1.20.0 ; extra == 'otel'
|
|
36
|
+
Requires-Dist: opentelemetry-instrumentation-fastapi>=0.41b0 ; extra == 'otel'
|
|
37
|
+
Requires-Dist: sqlglot>=25.0.0 ; extra == 'sql'
|
|
38
|
+
Requires-Dist: adbc-driver-manager>=1.0.0 ; extra == 'sql'
|
|
39
|
+
Requires-Dist: adbc-driver-bigquery>=1.0.0 ; extra == 'sql-bigquery'
|
|
40
|
+
Requires-Dist: duckdb>=1.0.0 ; extra == 'sql-duckdb'
|
|
41
|
+
Requires-Dist: adbc-driver-postgresql>=1.0.0 ; extra == 'sql-postgres'
|
|
42
|
+
Requires-Dist: adbc-driver-snowflake>=1.0.0 ; extra == 'sql-snowflake'
|
|
43
|
+
Requires-Dist: adbc-driver-sqlite>=1.0.0 ; extra == 'sql-sqlite'
|
|
44
|
+
Provides-Extra: azure
|
|
45
|
+
Provides-Extra: notebook
|
|
46
|
+
Provides-Extra: otel
|
|
47
|
+
Provides-Extra: sql
|
|
48
|
+
Provides-Extra: sql-bigquery
|
|
49
|
+
Provides-Extra: sql-duckdb
|
|
50
|
+
Provides-Extra: sql-postgres
|
|
51
|
+
Provides-Extra: sql-snowflake
|
|
52
|
+
Provides-Extra: sql-sqlite
|
|
53
|
+
License-File: LICENSE
|
|
54
|
+
Summary: A content-addressed computation graph with an interactive notebook UI
|
|
55
|
+
Keywords: iceberg,arrow,cache,analytics,duckdb
|
|
56
|
+
Author-email: Fangchen Li <fangchen.li@outlook.com>
|
|
57
|
+
License-Expression: Apache-2.0
|
|
58
|
+
Requires-Python: >=3.12
|
|
59
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
60
|
+
Project-URL: Changelog, https://github.com/bearing-research/strata/blob/main/CHANGELOG.md
|
|
61
|
+
Project-URL: Documentation, https://bearing-research.github.io/strata/
|
|
62
|
+
Project-URL: Homepage, https://bearing-research.github.io/strata/
|
|
63
|
+
Project-URL: Issues, https://github.com/bearing-research/strata/issues
|
|
64
|
+
Project-URL: Repository, https://github.com/bearing-research/strata
|
|
65
|
+
|
|
66
|
+
# Strata
|
|
67
|
+
|
|
68
|
+
[](https://github.com/bearing-research/strata/actions/workflows/ci.yml)
|
|
69
|
+
[](https://github.com/bearing-research/strata/actions/workflows/pre-commit.yml)
|
|
70
|
+
[](https://github.com/bearing-research/strata/actions/workflows/docker.yml)
|
|
71
|
+
|
|
72
|
+
**Strata is a content-addressed computation graph with an interactive notebook UI.**
|
|
73
|
+
|
|
74
|
+
Every cell output is a versioned artifact keyed by its provenance: source,
|
|
75
|
+
inputs, and environment. Strata reads each cell's AST to build the
|
|
76
|
+
dependency graph automatically, so re-running a notebook is mostly a series
|
|
77
|
+
of cache hits. Touch one cell and the cascade re-executes only the cells
|
|
78
|
+
that depend on it. Identical inputs produce the same artifact whether the
|
|
79
|
+
second run comes a minute later or a year later, on the same machine or a
|
|
80
|
+
different one.
|
|
81
|
+
|
|
82
|
+
Prompt cells make AI calls first-class DAG nodes, cached by template,
|
|
83
|
+
inputs, and model config. `# @worker gpu-fly` dispatches a cell to a remote
|
|
84
|
+
GPU. `# @mount data s3://bucket/prefix ro` makes an S3 prefix available as a
|
|
85
|
+
local `pathlib.Path` inside the cell. The whole notebook is plain `.py`
|
|
86
|
+
files plus a manifest, so commits are git-diffable and there are no JSON
|
|
87
|
+
blobs or execution metadata bleeding into the history.
|
|
88
|
+
|
|
89
|
+
**Docs:** [bearing-research.github.io/strata](https://bearing-research.github.io/strata/)
|
|
90
|
+
|
|
91
|
+
## Quick Start
|
|
92
|
+
|
|
93
|
+
Both paths below run in **personal mode**: single-user, writes enabled, no
|
|
94
|
+
proxy auth. For multi-tenant or hosted deployments, see
|
|
95
|
+
[Deployment Modes](https://bearing-research.github.io/strata/deployment/modes/).
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
# Docker (recommended). docker-compose.yml sets personal mode for you.
|
|
99
|
+
docker compose up -d --build
|
|
100
|
+
# Then open http://localhost:8765
|
|
101
|
+
|
|
102
|
+
# Or from source — requires uv (see Requirements below).
|
|
103
|
+
uv sync
|
|
104
|
+
cd frontend && npm ci && npm run build && cd ..
|
|
105
|
+
uv run strata-server
|
|
106
|
+
# Then open http://localhost:8765
|
|
107
|
+
#
|
|
108
|
+
# For the full inventory of installed commands
|
|
109
|
+
# (strata-server, strata, strata-worker, python -m strata),
|
|
110
|
+
# see docs/getting-started/installation.md#commands-reference.
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### Requirements
|
|
114
|
+
|
|
115
|
+
Runtime (Docker or `uv run strata-server`):
|
|
116
|
+
|
|
117
|
+
- **[uv](https://docs.astral.sh/uv/) ≥ 0.8** — install via the
|
|
118
|
+
[uv installer](https://docs.astral.sh/uv/getting-started/installation/)
|
|
119
|
+
(`curl -LsSf https://astral.sh/uv/install.sh | sh` on macOS/Linux;
|
|
120
|
+
PowerShell installer on Windows). Strata refuses to start outside
|
|
121
|
+
a uv-managed environment: the startup check looks for the
|
|
122
|
+
`uv = <version>` marker that uv writes to `pyvenv.cfg`; `uv run`
|
|
123
|
+
and `uvx` produce envs with this marker, hand-rolled `python -m venv`
|
|
124
|
+
venvs do not. Conda and pip-venv users need to install uv and
|
|
125
|
+
re-launch Strata from a uv-managed env — existing data and other
|
|
126
|
+
environments are untouched, but Strata's own runtime has to be
|
|
127
|
+
uv-managed. uv fetches a matching Python for you, so you don't
|
|
128
|
+
need Python pre-installed.
|
|
129
|
+
|
|
130
|
+
Source build (this is currently the only install path —
|
|
131
|
+
`strata-notebook` isn't on PyPI yet; PyPI wheels are planned for
|
|
132
|
+
0.1.0 and will let you skip the Rust step):
|
|
133
|
+
|
|
134
|
+
- **[Rust toolchain](https://rustup.rs/)** (rustup) — for `maturin`
|
|
135
|
+
to compile the native extension. Once installed, `cargo` and
|
|
136
|
+
`rustc` need to be on `PATH` so `uv sync` can invoke them.
|
|
137
|
+
- **[Node 25+ / npm](https://nodejs.org/)** — for the frontend
|
|
138
|
+
`npm ci && npm run build` step.
|
|
139
|
+
- Python 3.12+ is handled automatically by `uv sync`.
|
|
140
|
+
|
|
141
|
+
Windows: source builds work via WSL2 (smoother) or native Windows
|
|
142
|
+
(uv + rustup + Node have Windows installers). Day-to-day dev is on
|
|
143
|
+
macOS/Linux, so WSL2 is the better-trodden path.
|
|
144
|
+
|
|
145
|
+
Why uv at runtime: the notebook subsystem shells out to `uv` to
|
|
146
|
+
manage per-notebook `.venv/` directories, and the project's dev
|
|
147
|
+
workflow assumes uv as the install path. Failing fast at startup with
|
|
148
|
+
a clear message beats a confusing subprocess error later.
|
|
149
|
+
|
|
150
|
+
## Notebook Features
|
|
151
|
+
|
|
152
|
+
- **Content-addressed caching.** Same code plus same inputs equals an instant cache hit, zero recomputation.
|
|
153
|
+
- **Automatic dependency tracking.** DAG built from variable analysis, no manual wiring.
|
|
154
|
+
- **Cascade execution.** Change upstream code, downstream cells auto-invalidate.
|
|
155
|
+
- **Distributed workers.** Annotate `@worker gpu-fly` and the cell dispatches to a remote GPU.
|
|
156
|
+
- **Prompt cells.** LLM-powered cells with `{{ variable }}` template injection.
|
|
157
|
+
- **SQL cells.** First-class SQL cells with `# @sql connection=<name>`, named-bind parameters, and DuckDB / SQLite / PostgreSQL / Snowflake / BigQuery drivers.
|
|
158
|
+
- **AI assistant.** Streaming chat with conversation memory, agent mode for autonomous notebook building.
|
|
159
|
+
- **Environment management.** Per-notebook Python venvs via uv, isolated from each other.
|
|
160
|
+
- **Rich outputs.** DataFrames, matplotlib plots, markdown, images.
|
|
161
|
+
- **Cell operations.** Reorder, duplicate, fold, keyboard shortcuts.
|
|
162
|
+
- **Headless runner.** `strata run ./my-notebook` for CI and scheduled execution.
|
|
163
|
+
|
|
164
|
+
## The Cache Advantage
|
|
165
|
+
|
|
166
|
+
Every notebook platform re-executes from scratch when you change one cell.
|
|
167
|
+
Strata doesn't. The artifact store deduplicates by provenance hash. If
|
|
168
|
+
the code and inputs haven't changed, the result is served instantly.
|
|
169
|
+
|
|
170
|
+
```
|
|
171
|
+
First run: load data (10s) → clean (3s) → train (20s) → evaluate (1s) = 34s
|
|
172
|
+
Change model: load data (✓) → clean (✓) → train (20s) → evaluate (1s) = 21s
|
|
173
|
+
Re-run: load data (✓) → clean (✓) → train (✓) → evaluate (✓) = <1s
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
This isn't a feature bolted on. It's the architecture. Every cell
|
|
177
|
+
execution is a `materialize(inputs, transform, environment) → artifact` operation,
|
|
178
|
+
and the cache is correct by construction because it's keyed on content,
|
|
179
|
+
not time.
|
|
180
|
+
|
|
181
|
+
## Distributed Execution
|
|
182
|
+
|
|
183
|
+
Each cell can declare which worker it runs on via a single annotation:
|
|
184
|
+
|
|
185
|
+
```python
|
|
186
|
+
# @worker my-gpu
|
|
187
|
+
embeddings = model.encode(abstracts, batch_size=256)
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
You define workers in `notebook.toml`. Each one points at an HTTP
|
|
191
|
+
endpoint that implements the Strata executor protocol. A worker can be
|
|
192
|
+
a GPU box on RunPod, a DataFusion cluster on Fly, a beefy EC2 instance,
|
|
193
|
+
or anything else that speaks HTTP. The notebook routes the cell to the
|
|
194
|
+
declared worker at execution time, and the UI shows a live
|
|
195
|
+
"dispatching to my-gpu" badge while it runs.
|
|
196
|
+
|
|
197
|
+
No deployment code, no infrastructure glue. Bring your own compute,
|
|
198
|
+
one annotation per cell.
|
|
199
|
+
|
|
200
|
+
## Source Annotations
|
|
201
|
+
|
|
202
|
+
Every piece of per-cell metadata is a comment directive in the cell's
|
|
203
|
+
source. The source is the single canonical place for cell config:
|
|
204
|
+
annotations always win over any stored defaults.
|
|
205
|
+
|
|
206
|
+
```python
|
|
207
|
+
# @name Extract embeddings
|
|
208
|
+
# @worker gpu-fly
|
|
209
|
+
# @timeout 600
|
|
210
|
+
# @env MODEL_PATH=/models/bge-large
|
|
211
|
+
# @mount dataset s3://corpus/2024-q4 ro
|
|
212
|
+
embeddings = model.encode(dataset / "abstracts.jsonl")
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
Diagnostics fire on open, reload, and after an edit settles:
|
|
216
|
+
`worker_unknown`, `mount_uri_unsupported`, `mount_shadows_notebook`,
|
|
217
|
+
`timeout_not_numeric`, `env_malformed`. They surface as a pill in the
|
|
218
|
+
cell header and log structured warnings for headless runs.
|
|
219
|
+
|
|
220
|
+
## Mounts
|
|
221
|
+
|
|
222
|
+
Mounts bind a remote URI to a local path inside the cell. Supported
|
|
223
|
+
schemes: `file://`, `s3://`, `gs://`, `az://`. Credentials flow through
|
|
224
|
+
fsspec options: set `anon = true` for public buckets, or drop it to
|
|
225
|
+
use the standard credential chain.
|
|
226
|
+
|
|
227
|
+
```toml
|
|
228
|
+
[[mounts]]
|
|
229
|
+
name = "taxi_zones"
|
|
230
|
+
uri = "s3://nyc-tlc/misc"
|
|
231
|
+
mode = "ro"
|
|
232
|
+
options = { anon = true }
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
Inside the cell, `taxi_zones` is a `pathlib.Path`. Strata materializes
|
|
236
|
+
it on first read and caches the bytes locally for the session.
|
|
237
|
+
|
|
238
|
+
## Examples
|
|
239
|
+
|
|
240
|
+
| Example | What it shows |
|
|
241
|
+
| --------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
242
|
+
| [pandas_basics](examples/pandas_basics) | Linear DataFrame chain, caching, staleness propagation |
|
|
243
|
+
| [iris_classification](examples/iris_classification) | End-to-end ML, DAG branching, mixed output types |
|
|
244
|
+
| [titanic_ml](examples/titanic_ml) | Feature engineering + model comparison |
|
|
245
|
+
| [s3_mount](examples/s3_mount) | Reading a public S3 bucket via a mount |
|
|
246
|
+
| [arxiv_classifier](examples/arxiv_classifier) | Distributed execution via `@worker` + Modal GPU + Fly cluster |
|
|
247
|
+
| [markdown_showcase](examples/markdown_showcase) | Markdown cells, dynamic `Markdown(...)` outputs, security cases |
|
|
248
|
+
| [library_cells](examples/library_cells) | Cross-cell library code: pure module cells, mixed runtime+library cells, the limits |
|
|
249
|
+
| [news_alpha_trader](examples/news_alpha_trader) | Multi-stage trading pipeline with prompt cells and structured LLM outputs |
|
|
250
|
+
|
|
251
|
+
## Known rough edges
|
|
252
|
+
|
|
253
|
+
Strata is at 0.1 and a few surfaces are explicitly exploratory. The core
|
|
254
|
+
(materialization, artifact store, DAG, caching, headless run) is stable
|
|
255
|
+
in the alpha sense; these are the bits where the API or coverage is
|
|
256
|
+
still moving:
|
|
257
|
+
|
|
258
|
+
- **Prompt-cell API.** Streaming, conversation memory, and structured-output
|
|
259
|
+
validation are not yet finalized — expect breaking changes in 0.x.
|
|
260
|
+
- **SQL cell cloud drivers.** DuckDB / SQLite / PostgreSQL are exercised
|
|
261
|
+
in CI. BigQuery and Snowflake adapters ship but lack integration test
|
|
262
|
+
coverage; pin a Strata version in production until that lands.
|
|
263
|
+
MotherDuck and MySQL are planned but not yet implemented.
|
|
264
|
+
- **Wire / on-disk formats.** `notebook.toml`, `runtime.json`, and the
|
|
265
|
+
artifact cache layout may change between minor versions during 0.x.
|
|
266
|
+
Rely on the Python API surface, not the file shapes.
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## Library usage
|
|
271
|
+
|
|
272
|
+
Strata's HTTP API exposes the materialization layer directly,
|
|
273
|
+
driveable from Python via `StrataClient`. Useful for direct table
|
|
274
|
+
scans, custom transforms, and headless workflows; the notebook
|
|
275
|
+
executor is a separate pipeline that writes to the same artifact
|
|
276
|
+
store. The client talks to a running Strata server, so this workflow
|
|
277
|
+
has two steps: start the server, then call it from your code.
|
|
278
|
+
|
|
279
|
+
```bash
|
|
280
|
+
# 1. Install + start the server (in a uv-managed env).
|
|
281
|
+
# Until 0.1.0 ships to PyPI, install from a git checkout — needs
|
|
282
|
+
# the Rust toolchain (see Requirements above).
|
|
283
|
+
git clone https://github.com/bearing-research/strata.git
|
|
284
|
+
cd strata
|
|
285
|
+
uv sync --all-extras
|
|
286
|
+
uv run strata-server
|
|
287
|
+
|
|
288
|
+
# 2. From another process, point the client at it:
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
```python
|
|
292
|
+
from strata import StrataClient
|
|
293
|
+
|
|
294
|
+
client = StrataClient(base_url="http://localhost:8765")
|
|
295
|
+
artifact = client.materialize(
|
|
296
|
+
inputs=["file:///warehouse#db.events"],
|
|
297
|
+
transform={"executor": "scan@v1", "params": {"columns": ["id", "value"]}},
|
|
298
|
+
)
|
|
299
|
+
table = client.fetch(artifact.uri) # Arrow table, cached by provenance
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
The server provides: provenance-based deduplication, immutable
|
|
303
|
+
versioned artifacts, lineage tracking, Iceberg table scanning with
|
|
304
|
+
row-group caching, pluggable blob storage (local/S3/GCS/Azure),
|
|
305
|
+
multi-tenancy, trusted-proxy auth, and an executor protocol for
|
|
306
|
+
external compute.
|
|
307
|
+
|
|
308
|
+
**[Library docs →](https://bearing-research.github.io/strata/getting-started/core/)**
|
|
309
|
+
|
|
310
|
+
---
|
|
311
|
+
|
|
312
|
+
## Architecture
|
|
313
|
+
|
|
314
|
+
```
|
|
315
|
+
┌─────────────────────────────────────────────┐
|
|
316
|
+
│ Notebook UI (Vue.js + WebSocket) │
|
|
317
|
+
│ cells, DAG view, AI assistant, workers │
|
|
318
|
+
└─────────────────────────────────────────────┘
|
|
319
|
+
│
|
|
320
|
+
▼
|
|
321
|
+
┌─────────────────────────────────────────────┐
|
|
322
|
+
│ Notebook Backend (FastAPI) │
|
|
323
|
+
│ session, cascade, executor, prompt cells │
|
|
324
|
+
└─────────────────────────────────────────────┘
|
|
325
|
+
│
|
|
326
|
+
▼
|
|
327
|
+
┌─────────────────────────────────────────────┐
|
|
328
|
+
│ Strata Core │
|
|
329
|
+
│ materialize, artifacts, lineage, dedupe │
|
|
330
|
+
└─────────────────────────────────────────────┘
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
The notebook is an orchestration layer over Core. It decides what to
|
|
334
|
+
run next (cascade planning, staleness tracking). The cell harness is an
|
|
335
|
+
executor. Core decides whether results already exist and persists them.
|
|
336
|
+
|
|
337
|
+
## Development
|
|
338
|
+
|
|
339
|
+
```bash
|
|
340
|
+
uv sync # Install deps + build Rust extension
|
|
341
|
+
uv run pytest # Run all tests
|
|
342
|
+
uv run pre-commit run --all-files # Lint + format
|
|
343
|
+
cd frontend && npm run dev # Frontend dev server (hot reload)
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
## License
|
|
347
|
+
|
|
348
|
+
Apache 2.0
|
|
349
|
+
|