lumilake 0.1.0.dev1__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.
- lumilake-0.1.0.dev1/LICENSE +201 -0
- lumilake-0.1.0.dev1/MANIFEST.in +2 -0
- lumilake-0.1.0.dev1/PKG-INFO +237 -0
- lumilake-0.1.0.dev1/README.md +200 -0
- lumilake-0.1.0.dev1/docs/API.md +51 -0
- lumilake-0.1.0.dev1/docs/ARCHITECTURE.md +70 -0
- lumilake-0.1.0.dev1/docs/CLI.md +82 -0
- lumilake-0.1.0.dev1/docs/CODE_STYLE.md +67 -0
- lumilake-0.1.0.dev1/docs/E2E_DEMO.md +322 -0
- lumilake-0.1.0.dev1/docs/ENV.md +61 -0
- lumilake-0.1.0.dev1/docs/FIRST_RELEASE_ROADMAP.md +40 -0
- lumilake-0.1.0.dev1/docs/OPS.md +39 -0
- lumilake-0.1.0.dev1/docs/PLUGINS.md +45 -0
- lumilake-0.1.0.dev1/docs/RELEASE.md +209 -0
- lumilake-0.1.0.dev1/docs/SDK.md +59 -0
- lumilake-0.1.0.dev1/docs/WORKFLOWS.md +63 -0
- lumilake-0.1.0.dev1/lumilake.egg-info/PKG-INFO +237 -0
- lumilake-0.1.0.dev1/lumilake.egg-info/SOURCES.txt +22 -0
- lumilake-0.1.0.dev1/lumilake.egg-info/dependency_links.txt +1 -0
- lumilake-0.1.0.dev1/lumilake.egg-info/requires.txt +19 -0
- lumilake-0.1.0.dev1/lumilake.egg-info/top_level.txt +1 -0
- lumilake-0.1.0.dev1/pyproject.toml +186 -0
- lumilake-0.1.0.dev1/setup.cfg +4 -0
- lumilake-0.1.0.dev1/tests/test_lambda_op_closure.py +32 -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,237 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: lumilake
|
|
3
|
+
Version: 0.1.0.dev1
|
|
4
|
+
Summary: Data analytics engine for agentic workflows
|
|
5
|
+
Author: Lumilake contributors
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/mlsys-io/lumilake_OSS
|
|
8
|
+
Project-URL: Repository, https://github.com/mlsys-io/lumilake_OSS
|
|
9
|
+
Project-URL: Issues, https://github.com/mlsys-io/lumilake_OSS/issues
|
|
10
|
+
Keywords: agentic-workflows,data-analytics,lakehouse,workflow-orchestration
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Framework :: FastAPI
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Intended Audience :: Science/Research
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Typing :: Typed
|
|
19
|
+
Requires-Python: <3.13,>=3.12
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Provides-Extra: sdk
|
|
23
|
+
Requires-Dist: lumilake-sdk==0.1.0.dev1; extra == "sdk"
|
|
24
|
+
Provides-Extra: cli
|
|
25
|
+
Requires-Dist: lumilake-cli==0.1.0.dev1; extra == "cli"
|
|
26
|
+
Requires-Dist: lumilake-deploy==0.1.0.dev1; extra == "cli"
|
|
27
|
+
Provides-Extra: deploy
|
|
28
|
+
Requires-Dist: lumilake-deploy==0.1.0.dev1; extra == "deploy"
|
|
29
|
+
Provides-Extra: hook
|
|
30
|
+
Requires-Dist: lumilake-hook==0.1.0.dev1; extra == "hook"
|
|
31
|
+
Provides-Extra: all
|
|
32
|
+
Requires-Dist: lumilake-sdk==0.1.0.dev1; extra == "all"
|
|
33
|
+
Requires-Dist: lumilake-cli==0.1.0.dev1; extra == "all"
|
|
34
|
+
Requires-Dist: lumilake-deploy==0.1.0.dev1; extra == "all"
|
|
35
|
+
Requires-Dist: lumilake-hook==0.1.0.dev1; extra == "all"
|
|
36
|
+
Dynamic: license-file
|
|
37
|
+
|
|
38
|
+
# Lumilake
|
|
39
|
+
|
|
40
|
+
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
41
|
+
[](https://www.python.org/downloads/)
|
|
42
|
+
[](https://github.com/mlsys-io/lumilake_OSS/actions/workflows/lint-typecheck.yml)
|
|
43
|
+
[](https://github.com/mlsys-io/lumilake_OSS/actions/workflows/unit-tests.yml)
|
|
44
|
+
|
|
45
|
+
Lumilake is a data analytics engine for agentic workflows. It accepts workflow specs (native graph JSON, YAML, or n8n JSON), optimizes the runtime graph with HALO, and dispatches tasks through FlowMesh.
|
|
46
|
+
|
|
47
|
+
## What Lumilake Provides
|
|
48
|
+
|
|
49
|
+
- Workflow parsing for native graph specs, YAML workflows, and n8n exports.
|
|
50
|
+
- HALO scheduling for multi-step AI and data workflows.
|
|
51
|
+
- A FastAPI server for job submission, status, cancellation, results, workers, and traces.
|
|
52
|
+
- A CLI and Python SDK for local deployment and server API access.
|
|
53
|
+
- Data access through direct PostgreSQL and S3-compatible storage; agent-style retrievals additionally route through lumid.data when `LUMID_DATA_URL` is set.
|
|
54
|
+
- Shared hook integration through `lumid-hooks`, plus Lumilake-owned optimizer plugins.
|
|
55
|
+
|
|
56
|
+
## Install
|
|
57
|
+
|
|
58
|
+
From PyPI:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
pip install "lumilake[cli]"
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
From a source checkout:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
uv sync --all-packages --all-extras --all-groups
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
The PyPI `lumilake` distribution is a code-free metapackage; install one of the extras below to get a working set. The server runtime is published as a Docker image only and is intentionally not on PyPI.
|
|
71
|
+
|
|
72
|
+
| Extra | Includes |
|
|
73
|
+
|-------|----------|
|
|
74
|
+
| `sdk` | Python SDK HTTP clients (`lumilake-sdk` → module `lumilake`) |
|
|
75
|
+
| `cli` | `lumilake` command line interface plus deploy lifecycle (`lumilake-cli` + `lumilake-deploy`) |
|
|
76
|
+
| `deploy` | Local Docker / FlowMesh deployment helpers (`lumilake-deploy`) |
|
|
77
|
+
| `hook` | Resource-kind helpers for shared hook integrations (`lumilake-hook`) |
|
|
78
|
+
| `all` | Everything above. |
|
|
79
|
+
|
|
80
|
+
## Quick Start
|
|
81
|
+
|
|
82
|
+
The server runs as the published Docker image. `lumilake deploy` reads its env files from `--project-dir` (or the current working directory). Either point at a deployment directory with `-C` / `--project-dir`, or `cd` to it first.
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
mkdir -p ~/lumilake-deploy
|
|
86
|
+
lumilake deploy -C ~/lumilake-deploy init --flowmesh # ~/lumilake-deploy/.env + .env.flowmesh
|
|
87
|
+
$EDITOR ~/lumilake-deploy/.env # fill in DATABASE_URL / S3 / model keys
|
|
88
|
+
lumilake deploy -C ~/lumilake-deploy pull # fetch ghcr.io/mlsys-io/lumilake_server:<tag>
|
|
89
|
+
lumilake deploy -C ~/lumilake-deploy up # bring the stack up via docker compose
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
`LUMILAKE_DEPLOY_DIR=~/lumilake-deploy` is an equivalent override. The deployment directory only needs to hold your `.env` files (and any local state docker compose creates) — the compose file and server image are resolved from the installed `lumilake-deploy` package and GHCR. The server listens on `http://127.0.0.1:9000` by default — open `/docs` for the API browser.
|
|
93
|
+
|
|
94
|
+
Note: a real workflow run also requires running PostgreSQL and S3-compatible storage; agent-style retrievals (`DataRetrievalOp` with `type: agent`) additionally require `LUMID_DATA_URL`. See `docs/ENV.md` for the env contract. If you don't have your own data plane, the repo ships a bundled Postgres + MinIO at `scripts/dev/compose.data-plane.yml` — see `docs/E2E_DEMO.md` for the full three-step demo flow (data plane → load demo data → run a workflow).
|
|
95
|
+
|
|
96
|
+
Submit and inspect a workflow. From a source checkout the example
|
|
97
|
+
workflow file is at `examples/templates/yaml/trading-agent.yaml`;
|
|
98
|
+
PyPI installs do not ship the templates, so pass an absolute path to a
|
|
99
|
+
workflow file you have locally:
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
# From a source checkout:
|
|
103
|
+
uv run lumilake login http://127.0.0.1:9000
|
|
104
|
+
uv run lumilake job submit examples/templates/yaml/trading-agent.yaml \
|
|
105
|
+
--format yaml --input 'Stock=NVDA,AAPL,MSFT' --output-prefix demo/trading-agent
|
|
106
|
+
|
|
107
|
+
# From a PyPI install (lumilake on PATH; supply your own workflow file):
|
|
108
|
+
lumilake login http://127.0.0.1:9000
|
|
109
|
+
lumilake job submit /path/to/your/workflow.yaml \
|
|
110
|
+
--format yaml --input 'Stock=NVDA,AAPL,MSFT' --output-prefix demo/trading-agent
|
|
111
|
+
|
|
112
|
+
lumilake job list
|
|
113
|
+
lumilake job watch <job_id>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
See `docs/E2E_DEMO.md` for a full reproduction using the bundled demo
|
|
117
|
+
workflows and dataset.
|
|
118
|
+
|
|
119
|
+
## Data Access
|
|
120
|
+
|
|
121
|
+
- **SQL retrievals** connect directly to `DATABASE_URL`.
|
|
122
|
+
- **S3 retrievals** connect directly to `S3_URL`.
|
|
123
|
+
- **Agent retrievals** (`DataRetrievalOp` with `type: agent`) require `LUMID_DATA_URL` and route through lumid.data's `/agent/v1` endpoint.
|
|
124
|
+
|
|
125
|
+
Job records and runtime artifacts are written under `S3_ARCHIVE_PREFIX` using the same `S3_URL` connection.
|
|
126
|
+
|
|
127
|
+
## Deployment
|
|
128
|
+
|
|
129
|
+
Examples below assume you're set up with `LUMILAKE_DEPLOY_DIR=~/lumilake-deploy` (or pass `-C ~/lumilake-deploy` explicitly). Workspace-checkout users can prefix the commands with `uv run`; PyPI-install users invoke `lumilake` directly.
|
|
130
|
+
|
|
131
|
+
Generate `.env` from the bundled template:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
lumilake deploy init
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Generate both Lumilake and bundled FlowMesh env files:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
lumilake deploy init --flowmesh
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Common deployment commands:
|
|
144
|
+
|
|
145
|
+
```bash
|
|
146
|
+
lumilake deploy doctor
|
|
147
|
+
lumilake deploy pull # or `build` to compile from source
|
|
148
|
+
lumilake deploy up
|
|
149
|
+
lumilake deploy status
|
|
150
|
+
lumilake deploy logs server --tail 200
|
|
151
|
+
lumilake deploy restart server
|
|
152
|
+
lumilake deploy down
|
|
153
|
+
lumilake deploy clean
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
Use `deploy down` to stop services while keeping data volumes. Use `deploy clean` or `deploy reset` only when you want to remove local stack state.
|
|
157
|
+
|
|
158
|
+
## Python SDK
|
|
159
|
+
|
|
160
|
+
```python
|
|
161
|
+
from lumilake import LumilakeClient
|
|
162
|
+
|
|
163
|
+
with LumilakeClient(base_url="http://127.0.0.1:9000") as client:
|
|
164
|
+
print(client.health())
|
|
165
|
+
print(client.jobs.list())
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Install the SDK extra for HTTP clients:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
pip install "lumilake[sdk]"
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Install deploy support as well if you want `client.deploy.*` methods:
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
pip install "lumilake[sdk,deploy]"
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
See `docs/SDK.md` for the SDK resource map.
|
|
181
|
+
|
|
182
|
+
## Documentation
|
|
183
|
+
|
|
184
|
+
- `docs/ENV.md` - environment variables and data-plane modes.
|
|
185
|
+
- `docs/CLI.md` - command groups and common CLI usage.
|
|
186
|
+
- `docs/WORKFLOWS.md` - workflow input formats and YAML structure.
|
|
187
|
+
- `docs/OPS.md` - built-in operation classes.
|
|
188
|
+
- `docs/SDK.md` - sync and async Python client usage.
|
|
189
|
+
- `docs/API.md` - server route overview and response shape.
|
|
190
|
+
- `docs/ARCHITECTURE.md` - module layout and runtime flow.
|
|
191
|
+
- `docs/PLUGINS.md` - shared hooks and Lumilake plugin model.
|
|
192
|
+
- `docs/CODE_STYLE.md` - coding rules for contributors and agents.
|
|
193
|
+
|
|
194
|
+
## Plugins
|
|
195
|
+
|
|
196
|
+
Lumilake wires shared hook protocols from `lumid-hooks` for identity, permissions, resource registration, submission guards, and usage sinks. Optimizer registration remains Lumilake-specific.
|
|
197
|
+
|
|
198
|
+
A minimal in-memory plugin is available under `examples/plugins/simple_plugin/`.
|
|
199
|
+
|
|
200
|
+
## Repository Layout
|
|
201
|
+
|
|
202
|
+
```text
|
|
203
|
+
.
|
|
204
|
+
├── src/lumilake_server/ # server runtime — image-only, not on PyPI
|
|
205
|
+
├── packages/sdk/ # `lumilake-sdk` → module `lumilake` (Client, envs, log)
|
|
206
|
+
├── packages/cli/ # `lumilake-cli` → `lumilake_cli` (Typer entry point)
|
|
207
|
+
├── packages/deploy/ # `lumilake-deploy` — packaged compose + .env.example assets
|
|
208
|
+
├── packages/hook/ # `lumilake-hook` → `lumilake_hook` (resource-kind helpers)
|
|
209
|
+
├── examples/ # workflow templates and sample plugins
|
|
210
|
+
├── tests/ # pytest suite
|
|
211
|
+
├── scripts/ # CI and developer helpers
|
|
212
|
+
├── Dockerfile # builds ghcr.io/mlsys-io/lumilake_server
|
|
213
|
+
├── .env.example -> packages/deploy/.../assets/.env.example # symlink for editors
|
|
214
|
+
├── uv.lock
|
|
215
|
+
└── pyproject.toml # metapackage (`lumilake`) with [sdk]/[cli]/[deploy]/[hook]/[all] extras
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## Development
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
uv sync --group lint --group test --extra cli
|
|
222
|
+
uv run pre-commit install --install-hooks -t pre-commit -t prepare-commit-msg -t commit-msg
|
|
223
|
+
uv run pre-commit run --all-files
|
|
224
|
+
uv run pytest tests/ --ignore=tests/server
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
After changing dependencies, run:
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
uv lock
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
See `CONTRIBUTING.md` for PR title format, CI workflows, DCO sign-off, dependency guidance, and local testing notes.
|
|
234
|
+
|
|
235
|
+
## License
|
|
236
|
+
|
|
237
|
+
Apache-2.0. See `LICENSE`.
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
# Lumilake
|
|
2
|
+
|
|
3
|
+
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
4
|
+
[](https://www.python.org/downloads/)
|
|
5
|
+
[](https://github.com/mlsys-io/lumilake_OSS/actions/workflows/lint-typecheck.yml)
|
|
6
|
+
[](https://github.com/mlsys-io/lumilake_OSS/actions/workflows/unit-tests.yml)
|
|
7
|
+
|
|
8
|
+
Lumilake is a data analytics engine for agentic workflows. It accepts workflow specs (native graph JSON, YAML, or n8n JSON), optimizes the runtime graph with HALO, and dispatches tasks through FlowMesh.
|
|
9
|
+
|
|
10
|
+
## What Lumilake Provides
|
|
11
|
+
|
|
12
|
+
- Workflow parsing for native graph specs, YAML workflows, and n8n exports.
|
|
13
|
+
- HALO scheduling for multi-step AI and data workflows.
|
|
14
|
+
- A FastAPI server for job submission, status, cancellation, results, workers, and traces.
|
|
15
|
+
- A CLI and Python SDK for local deployment and server API access.
|
|
16
|
+
- Data access through direct PostgreSQL and S3-compatible storage; agent-style retrievals additionally route through lumid.data when `LUMID_DATA_URL` is set.
|
|
17
|
+
- Shared hook integration through `lumid-hooks`, plus Lumilake-owned optimizer plugins.
|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
From PyPI:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install "lumilake[cli]"
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
From a source checkout:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
uv sync --all-packages --all-extras --all-groups
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The PyPI `lumilake` distribution is a code-free metapackage; install one of the extras below to get a working set. The server runtime is published as a Docker image only and is intentionally not on PyPI.
|
|
34
|
+
|
|
35
|
+
| Extra | Includes |
|
|
36
|
+
|-------|----------|
|
|
37
|
+
| `sdk` | Python SDK HTTP clients (`lumilake-sdk` → module `lumilake`) |
|
|
38
|
+
| `cli` | `lumilake` command line interface plus deploy lifecycle (`lumilake-cli` + `lumilake-deploy`) |
|
|
39
|
+
| `deploy` | Local Docker / FlowMesh deployment helpers (`lumilake-deploy`) |
|
|
40
|
+
| `hook` | Resource-kind helpers for shared hook integrations (`lumilake-hook`) |
|
|
41
|
+
| `all` | Everything above. |
|
|
42
|
+
|
|
43
|
+
## Quick Start
|
|
44
|
+
|
|
45
|
+
The server runs as the published Docker image. `lumilake deploy` reads its env files from `--project-dir` (or the current working directory). Either point at a deployment directory with `-C` / `--project-dir`, or `cd` to it first.
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
mkdir -p ~/lumilake-deploy
|
|
49
|
+
lumilake deploy -C ~/lumilake-deploy init --flowmesh # ~/lumilake-deploy/.env + .env.flowmesh
|
|
50
|
+
$EDITOR ~/lumilake-deploy/.env # fill in DATABASE_URL / S3 / model keys
|
|
51
|
+
lumilake deploy -C ~/lumilake-deploy pull # fetch ghcr.io/mlsys-io/lumilake_server:<tag>
|
|
52
|
+
lumilake deploy -C ~/lumilake-deploy up # bring the stack up via docker compose
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
`LUMILAKE_DEPLOY_DIR=~/lumilake-deploy` is an equivalent override. The deployment directory only needs to hold your `.env` files (and any local state docker compose creates) — the compose file and server image are resolved from the installed `lumilake-deploy` package and GHCR. The server listens on `http://127.0.0.1:9000` by default — open `/docs` for the API browser.
|
|
56
|
+
|
|
57
|
+
Note: a real workflow run also requires running PostgreSQL and S3-compatible storage; agent-style retrievals (`DataRetrievalOp` with `type: agent`) additionally require `LUMID_DATA_URL`. See `docs/ENV.md` for the env contract. If you don't have your own data plane, the repo ships a bundled Postgres + MinIO at `scripts/dev/compose.data-plane.yml` — see `docs/E2E_DEMO.md` for the full three-step demo flow (data plane → load demo data → run a workflow).
|
|
58
|
+
|
|
59
|
+
Submit and inspect a workflow. From a source checkout the example
|
|
60
|
+
workflow file is at `examples/templates/yaml/trading-agent.yaml`;
|
|
61
|
+
PyPI installs do not ship the templates, so pass an absolute path to a
|
|
62
|
+
workflow file you have locally:
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
# From a source checkout:
|
|
66
|
+
uv run lumilake login http://127.0.0.1:9000
|
|
67
|
+
uv run lumilake job submit examples/templates/yaml/trading-agent.yaml \
|
|
68
|
+
--format yaml --input 'Stock=NVDA,AAPL,MSFT' --output-prefix demo/trading-agent
|
|
69
|
+
|
|
70
|
+
# From a PyPI install (lumilake on PATH; supply your own workflow file):
|
|
71
|
+
lumilake login http://127.0.0.1:9000
|
|
72
|
+
lumilake job submit /path/to/your/workflow.yaml \
|
|
73
|
+
--format yaml --input 'Stock=NVDA,AAPL,MSFT' --output-prefix demo/trading-agent
|
|
74
|
+
|
|
75
|
+
lumilake job list
|
|
76
|
+
lumilake job watch <job_id>
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
See `docs/E2E_DEMO.md` for a full reproduction using the bundled demo
|
|
80
|
+
workflows and dataset.
|
|
81
|
+
|
|
82
|
+
## Data Access
|
|
83
|
+
|
|
84
|
+
- **SQL retrievals** connect directly to `DATABASE_URL`.
|
|
85
|
+
- **S3 retrievals** connect directly to `S3_URL`.
|
|
86
|
+
- **Agent retrievals** (`DataRetrievalOp` with `type: agent`) require `LUMID_DATA_URL` and route through lumid.data's `/agent/v1` endpoint.
|
|
87
|
+
|
|
88
|
+
Job records and runtime artifacts are written under `S3_ARCHIVE_PREFIX` using the same `S3_URL` connection.
|
|
89
|
+
|
|
90
|
+
## Deployment
|
|
91
|
+
|
|
92
|
+
Examples below assume you're set up with `LUMILAKE_DEPLOY_DIR=~/lumilake-deploy` (or pass `-C ~/lumilake-deploy` explicitly). Workspace-checkout users can prefix the commands with `uv run`; PyPI-install users invoke `lumilake` directly.
|
|
93
|
+
|
|
94
|
+
Generate `.env` from the bundled template:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
lumilake deploy init
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Generate both Lumilake and bundled FlowMesh env files:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
lumilake deploy init --flowmesh
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
Common deployment commands:
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
lumilake deploy doctor
|
|
110
|
+
lumilake deploy pull # or `build` to compile from source
|
|
111
|
+
lumilake deploy up
|
|
112
|
+
lumilake deploy status
|
|
113
|
+
lumilake deploy logs server --tail 200
|
|
114
|
+
lumilake deploy restart server
|
|
115
|
+
lumilake deploy down
|
|
116
|
+
lumilake deploy clean
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Use `deploy down` to stop services while keeping data volumes. Use `deploy clean` or `deploy reset` only when you want to remove local stack state.
|
|
120
|
+
|
|
121
|
+
## Python SDK
|
|
122
|
+
|
|
123
|
+
```python
|
|
124
|
+
from lumilake import LumilakeClient
|
|
125
|
+
|
|
126
|
+
with LumilakeClient(base_url="http://127.0.0.1:9000") as client:
|
|
127
|
+
print(client.health())
|
|
128
|
+
print(client.jobs.list())
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Install the SDK extra for HTTP clients:
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
pip install "lumilake[sdk]"
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Install deploy support as well if you want `client.deploy.*` methods:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
pip install "lumilake[sdk,deploy]"
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
See `docs/SDK.md` for the SDK resource map.
|
|
144
|
+
|
|
145
|
+
## Documentation
|
|
146
|
+
|
|
147
|
+
- `docs/ENV.md` - environment variables and data-plane modes.
|
|
148
|
+
- `docs/CLI.md` - command groups and common CLI usage.
|
|
149
|
+
- `docs/WORKFLOWS.md` - workflow input formats and YAML structure.
|
|
150
|
+
- `docs/OPS.md` - built-in operation classes.
|
|
151
|
+
- `docs/SDK.md` - sync and async Python client usage.
|
|
152
|
+
- `docs/API.md` - server route overview and response shape.
|
|
153
|
+
- `docs/ARCHITECTURE.md` - module layout and runtime flow.
|
|
154
|
+
- `docs/PLUGINS.md` - shared hooks and Lumilake plugin model.
|
|
155
|
+
- `docs/CODE_STYLE.md` - coding rules for contributors and agents.
|
|
156
|
+
|
|
157
|
+
## Plugins
|
|
158
|
+
|
|
159
|
+
Lumilake wires shared hook protocols from `lumid-hooks` for identity, permissions, resource registration, submission guards, and usage sinks. Optimizer registration remains Lumilake-specific.
|
|
160
|
+
|
|
161
|
+
A minimal in-memory plugin is available under `examples/plugins/simple_plugin/`.
|
|
162
|
+
|
|
163
|
+
## Repository Layout
|
|
164
|
+
|
|
165
|
+
```text
|
|
166
|
+
.
|
|
167
|
+
├── src/lumilake_server/ # server runtime — image-only, not on PyPI
|
|
168
|
+
├── packages/sdk/ # `lumilake-sdk` → module `lumilake` (Client, envs, log)
|
|
169
|
+
├── packages/cli/ # `lumilake-cli` → `lumilake_cli` (Typer entry point)
|
|
170
|
+
├── packages/deploy/ # `lumilake-deploy` — packaged compose + .env.example assets
|
|
171
|
+
├── packages/hook/ # `lumilake-hook` → `lumilake_hook` (resource-kind helpers)
|
|
172
|
+
├── examples/ # workflow templates and sample plugins
|
|
173
|
+
├── tests/ # pytest suite
|
|
174
|
+
├── scripts/ # CI and developer helpers
|
|
175
|
+
├── Dockerfile # builds ghcr.io/mlsys-io/lumilake_server
|
|
176
|
+
├── .env.example -> packages/deploy/.../assets/.env.example # symlink for editors
|
|
177
|
+
├── uv.lock
|
|
178
|
+
└── pyproject.toml # metapackage (`lumilake`) with [sdk]/[cli]/[deploy]/[hook]/[all] extras
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
## Development
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
uv sync --group lint --group test --extra cli
|
|
185
|
+
uv run pre-commit install --install-hooks -t pre-commit -t prepare-commit-msg -t commit-msg
|
|
186
|
+
uv run pre-commit run --all-files
|
|
187
|
+
uv run pytest tests/ --ignore=tests/server
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
After changing dependencies, run:
|
|
191
|
+
|
|
192
|
+
```bash
|
|
193
|
+
uv lock
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
See `CONTRIBUTING.md` for PR title format, CI workflows, DCO sign-off, dependency guidance, and local testing notes.
|
|
197
|
+
|
|
198
|
+
## License
|
|
199
|
+
|
|
200
|
+
Apache-2.0. See `LICENSE`.
|