pipeloom-databricks 0.5.0__py3-none-any.whl
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.
- pipeloom_databricks/__init__.py +18 -0
- pipeloom_databricks/api.py +45 -0
- pipeloom_databricks/bundle.py +113 -0
- pipeloom_databricks/cli.py +561 -0
- pipeloom_databricks/client/__init__.py +121 -0
- pipeloom_databricks/client/connect.py +84 -0
- pipeloom_databricks/client/sdk.py +275 -0
- pipeloom_databricks/deploy.py +188 -0
- pipeloom_databricks/finalize_states.py +72 -0
- pipeloom_databricks/grouping.py +158 -0
- pipeloom_databricks/jobs_model.py +116 -0
- pipeloom_databricks/keys.py +45 -0
- pipeloom_databricks/options.py +66 -0
- pipeloom_databricks/py.typed +0 -0
- pipeloom_databricks/render.py +396 -0
- pipeloom_databricks/repair.py +66 -0
- pipeloom_databricks/run.py +357 -0
- pipeloom_databricks/secrets.py +50 -0
- pipeloom_databricks/serialize.py +30 -0
- pipeloom_databricks/spec.py +75 -0
- pipeloom_databricks/task.py +422 -0
- pipeloom_databricks/task_values.py +69 -0
- pipeloom_databricks/testing/__init__.py +1 -0
- pipeloom_databricks/testing/fake.py +293 -0
- pipeloom_databricks/testing/jobsim.py +179 -0
- pipeloom_databricks/unity.py +23 -0
- pipeloom_databricks/upload.py +217 -0
- pipeloom_databricks-0.5.0.dist-info/METADATA +114 -0
- pipeloom_databricks-0.5.0.dist-info/RECORD +33 -0
- pipeloom_databricks-0.5.0.dist-info/WHEEL +4 -0
- pipeloom_databricks-0.5.0.dist-info/entry_points.txt +14 -0
- pipeloom_databricks-0.5.0.dist-info/licenses/LICENSE +202 -0
- pipeloom_databricks-0.5.0.dist-info/licenses/NOTICE +2 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"""The project files of a direct deploy: what to upload, where, and how old copies are pruned.
|
|
2
|
+
|
|
3
|
+
The upload set is content addressed. Its folder is named after a hash of the files, a marker file
|
|
4
|
+
is written last, and a folder that already holds the marker is never uploaded again, so two
|
|
5
|
+
deploys of the same project share one copy and a half-finished upload is simply redone.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import hashlib
|
|
11
|
+
import os
|
|
12
|
+
import re
|
|
13
|
+
from collections.abc import Callable
|
|
14
|
+
from dataclasses import dataclass
|
|
15
|
+
from pathlib import Path
|
|
16
|
+
from typing import Final
|
|
17
|
+
|
|
18
|
+
from pipeloom.diagnostics import Location, Report, Severity
|
|
19
|
+
from pipeloom.plan.manifest import manifest_bytes
|
|
20
|
+
from pipeloom.plan.model import Plan
|
|
21
|
+
from pipeloom_databricks.client import ApiError, DatabricksClient
|
|
22
|
+
|
|
23
|
+
MAX_FILE_BYTES: Final = 10 * 1024 * 1024
|
|
24
|
+
"""The workspace import limit."""
|
|
25
|
+
MANIFEST_PATH: Final = "_pipeloom/manifest.json"
|
|
26
|
+
MARKER_PATH: Final = "_pipeloom/complete"
|
|
27
|
+
KEEP_FOLDERS: Final = 3
|
|
28
|
+
SKIPPED_FOLDERS: Final = frozenset(
|
|
29
|
+
{"__pycache__", "venv", ".venv", "dist", "build", "node_modules"}
|
|
30
|
+
)
|
|
31
|
+
CONFIG_FILE: Final = "pipeloom.yml"
|
|
32
|
+
_HASH_DIR = re.compile(r"^[0-9a-f]{12}$")
|
|
33
|
+
_NOTEBOOK_HEADERS: Final = (
|
|
34
|
+
b"# Databricks notebook source",
|
|
35
|
+
b"-- Databricks notebook source",
|
|
36
|
+
b"// Databricks notebook source",
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
@dataclass(frozen=True)
|
|
41
|
+
class Payload:
|
|
42
|
+
files: tuple[tuple[str, bytes], ...]
|
|
43
|
+
"""(POSIX path relative to the project, bytes), sorted by path; the manifest included."""
|
|
44
|
+
digest: str
|
|
45
|
+
"""sha256 over every path and its bytes."""
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def _digest(files: tuple[tuple[str, bytes], ...]) -> str:
|
|
49
|
+
h = hashlib.sha256()
|
|
50
|
+
for path, data in files:
|
|
51
|
+
h.update(path.encode("utf-8") + b"\0" + str(len(data)).encode("ascii") + b"\0" + data)
|
|
52
|
+
return h.hexdigest()
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
def collect(
|
|
56
|
+
project_dir: Path, plan: Plan, artifacts_root: str | None, report: Report
|
|
57
|
+
) -> Payload | None:
|
|
58
|
+
"""The files to upload, or None with PLD012 for each file that cannot be a plain file.
|
|
59
|
+
|
|
60
|
+
The set is `pipeloom.yml`, the model and source files of the plan, the `*.py` files below
|
|
61
|
+
`python_paths` and the stable manifest. Below `python_paths` the walk skips dot entries, the
|
|
62
|
+
folders in `SKIPPED_FOLDERS`, any folder holding `pyvenv.cfg` (a virtual environment) and the
|
|
63
|
+
artifacts root, so data files, wheels and credentials of the project folder stay local.
|
|
64
|
+
"""
|
|
65
|
+
before = report.error_count
|
|
66
|
+
root = project_dir.resolve()
|
|
67
|
+
skip = Path(artifacts_root).resolve() if artifacts_root else None
|
|
68
|
+
found: dict[str, Path] = {}
|
|
69
|
+
|
|
70
|
+
def add(path: Path) -> None:
|
|
71
|
+
try:
|
|
72
|
+
rel = path.resolve().relative_to(root).as_posix()
|
|
73
|
+
except ValueError:
|
|
74
|
+
report.add("PLD012", f"{path.as_posix()} lies outside the project folder")
|
|
75
|
+
return
|
|
76
|
+
found.setdefault(rel, path)
|
|
77
|
+
|
|
78
|
+
add(root / CONFIG_FILE)
|
|
79
|
+
for rel_file in [n.file for n in plan.nodes.values()] + [s.file for s in plan.sources.values()]:
|
|
80
|
+
add(root / rel_file)
|
|
81
|
+
for entry in plan.metadata.python_paths:
|
|
82
|
+
base = (root / entry).resolve()
|
|
83
|
+
if not base.is_dir():
|
|
84
|
+
continue
|
|
85
|
+
try:
|
|
86
|
+
base.relative_to(root)
|
|
87
|
+
except ValueError:
|
|
88
|
+
report.add("PLD012", f"python_paths entry '{entry}' lies outside the project folder")
|
|
89
|
+
continue
|
|
90
|
+
for folder, dirs, names in os.walk(base):
|
|
91
|
+
dirs[:] = sorted(
|
|
92
|
+
d
|
|
93
|
+
for d in dirs
|
|
94
|
+
if not d.startswith(".")
|
|
95
|
+
and d not in SKIPPED_FOLDERS
|
|
96
|
+
and not (Path(folder) / d / "pyvenv.cfg").exists()
|
|
97
|
+
and (skip is None or (Path(folder) / d).resolve() != skip)
|
|
98
|
+
)
|
|
99
|
+
for name in sorted(names):
|
|
100
|
+
if name.endswith(".py") and not name.startswith("."):
|
|
101
|
+
add(Path(folder) / name)
|
|
102
|
+
|
|
103
|
+
files: list[tuple[str, bytes]] = []
|
|
104
|
+
for rel in sorted(found):
|
|
105
|
+
data = _read(found[rel], rel, report)
|
|
106
|
+
if data is not None:
|
|
107
|
+
files.append((rel, data))
|
|
108
|
+
if report.error_count > before:
|
|
109
|
+
return None
|
|
110
|
+
files.append((MANIFEST_PATH, manifest_bytes(plan, stable=True)))
|
|
111
|
+
ordered = tuple(sorted(files))
|
|
112
|
+
return Payload(ordered, _digest(ordered))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def _read(path: Path, rel: str, report: Report) -> bytes | None:
|
|
116
|
+
def bad(message: str, hint: str | None = None) -> None:
|
|
117
|
+
report.add("PLD012", message, hint=hint, location=Location(file=rel))
|
|
118
|
+
|
|
119
|
+
try:
|
|
120
|
+
if path.stat().st_size > MAX_FILE_BYTES:
|
|
121
|
+
bad("the file is above 10 MB", "keep large files out of the project folders")
|
|
122
|
+
return None
|
|
123
|
+
data = path.read_bytes()
|
|
124
|
+
except OSError as err:
|
|
125
|
+
bad(f"the file cannot be read: {err.strerror or type(err).__name__}")
|
|
126
|
+
return None
|
|
127
|
+
if rel.endswith(".ipynb") or data.lstrip().startswith(_NOTEBOOK_HEADERS):
|
|
128
|
+
bad(
|
|
129
|
+
"the file is a notebook, and the workspace would import it as one",
|
|
130
|
+
"remove it from the project or move it out of python_paths",
|
|
131
|
+
)
|
|
132
|
+
return None
|
|
133
|
+
return data
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
def is_complete(client: DatabricksClient, root: str) -> bool:
|
|
137
|
+
"""Whether `root` holds the marker of a finished upload."""
|
|
138
|
+
try:
|
|
139
|
+
entries = client.list_dir(f"{root}/{MARKER_PATH.rsplit('/', 1)[0]}")
|
|
140
|
+
except ApiError as err:
|
|
141
|
+
if err.status == 404 or err.error_code == "RESOURCE_DOES_NOT_EXIST":
|
|
142
|
+
return False
|
|
143
|
+
raise
|
|
144
|
+
marker = MARKER_PATH.rsplit("/", 1)[1]
|
|
145
|
+
return any(e.path.rsplit("/", 1)[-1] == marker and not e.is_dir for e in entries)
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
def upload(client: DatabricksClient, payload: Payload, root: str) -> bool:
|
|
149
|
+
"""Store the payload under `root`; False when a finished copy is already there.
|
|
150
|
+
|
|
151
|
+
The marker is written last, and written again when the copy exists: its modification time
|
|
152
|
+
is the deploy time that `prune` orders folders by (the API gives folders no time).
|
|
153
|
+
"""
|
|
154
|
+
marker = payload.digest.encode("ascii") + b"\n"
|
|
155
|
+
if is_complete(client, root):
|
|
156
|
+
client.upload(f"{root}/{MARKER_PATH}", marker)
|
|
157
|
+
return False
|
|
158
|
+
folders = sorted(
|
|
159
|
+
{f"{root}/{p.rsplit('/', 1)[0]}" if "/" in p else root for p, _ in payload.files}
|
|
160
|
+
)
|
|
161
|
+
for folder in folders:
|
|
162
|
+
client.mkdirs(folder)
|
|
163
|
+
for path, data in payload.files:
|
|
164
|
+
client.upload(f"{root}/{path}", data)
|
|
165
|
+
client.upload(f"{root}/{MARKER_PATH}", marker)
|
|
166
|
+
return True
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
def _deployed_at(client: DatabricksClient, folder: str) -> int | None:
|
|
170
|
+
"""When `folder` was last deployed: the modification time of its marker file, 0 when it has
|
|
171
|
+
none (an unfinished upload), None when it cannot be listed."""
|
|
172
|
+
parent, marker = MARKER_PATH.rsplit("/", 1)
|
|
173
|
+
try:
|
|
174
|
+
entries = client.list_dir(f"{folder}/{parent}")
|
|
175
|
+
except ApiError as err:
|
|
176
|
+
return 0 if err.status == 404 or err.error_code == "RESOURCE_DOES_NOT_EXIST" else None
|
|
177
|
+
return max((e.modified_ms for e in entries if e.path.rsplit("/", 1)[-1] == marker), default=0)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
def prune(
|
|
181
|
+
client: DatabricksClient,
|
|
182
|
+
parent: str,
|
|
183
|
+
keep_name: str,
|
|
184
|
+
report: Report,
|
|
185
|
+
*,
|
|
186
|
+
mask: Callable[[str], str] = str,
|
|
187
|
+
) -> None:
|
|
188
|
+
"""Delete the oldest hash folders of `parent`, keeping `keep_name` and the newest others so
|
|
189
|
+
that `KEEP_FOLDERS` remain. Failures are warnings."""
|
|
190
|
+
|
|
191
|
+
def warn(what: str, err: ApiError) -> None:
|
|
192
|
+
report.add(
|
|
193
|
+
"PLD009",
|
|
194
|
+
f"{what}: {mask(err.message)}",
|
|
195
|
+
severity=Severity.WARNING,
|
|
196
|
+
context={"status": err.status},
|
|
197
|
+
)
|
|
198
|
+
|
|
199
|
+
try:
|
|
200
|
+
entries = client.list_dir(parent)
|
|
201
|
+
except ApiError as err:
|
|
202
|
+
warn(f"cannot list {parent} to prune old uploads", err)
|
|
203
|
+
return
|
|
204
|
+
stamps: dict[str, int] = {}
|
|
205
|
+
for entry in entries:
|
|
206
|
+
name = entry.path.rsplit("/", 1)[-1]
|
|
207
|
+
if entry.is_dir and _HASH_DIR.match(name) and name != keep_name:
|
|
208
|
+
stamp = _deployed_at(client, f"{parent}/{name}")
|
|
209
|
+
if stamp is not None: # a folder that cannot be inspected is never deleted
|
|
210
|
+
stamps[name] = stamp
|
|
211
|
+
# The newest others include the folder the job used before this deploy: it was deployed last.
|
|
212
|
+
old = sorted(stamps, key=lambda n: (-stamps[n], n))
|
|
213
|
+
for name in old[KEEP_FOLDERS - 1 :]:
|
|
214
|
+
try:
|
|
215
|
+
client.delete(f"{parent}/{name}", recursive=True)
|
|
216
|
+
except ApiError as err:
|
|
217
|
+
warn(f"cannot delete the old upload {parent}/{name}", err)
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: pipeloom-databricks
|
|
3
|
+
Version: 0.5.0
|
|
4
|
+
Summary: Databricks renderer for pipeloom: a compiled plan as Jobs settings JSON and bundle YAML.
|
|
5
|
+
Project-URL: Repository, https://github.com/emanuel-luis/pipeloom
|
|
6
|
+
Project-URL: Documentation, https://emanuel-luis.github.io/pipeloom/
|
|
7
|
+
Project-URL: Changelog, https://github.com/emanuel-luis/pipeloom/blob/main/CHANGELOG.md
|
|
8
|
+
Author-email: Emanuel Luis <emanuel.filho08@gmail.com>
|
|
9
|
+
License-Expression: Apache-2.0
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
License-File: NOTICE
|
|
12
|
+
Keywords: bundles,data-engineering,databricks,jobs,pipelines,pipeloom
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
21
|
+
Classifier: Typing :: Typed
|
|
22
|
+
Requires-Python: >=3.11
|
|
23
|
+
Requires-Dist: databricks-sdk<1,>=0.50
|
|
24
|
+
Requires-Dist: pipeloom-spark~=0.5.0
|
|
25
|
+
Requires-Dist: pipeloom~=0.5.0
|
|
26
|
+
Description-Content-Type: text/markdown
|
|
27
|
+
|
|
28
|
+
# pipeloom-databricks
|
|
29
|
+
|
|
30
|
+
The Databricks renderer for [pipeloom](https://github.com/emanuel-luis/pipeloom). It turns a
|
|
31
|
+
compiled plan into Databricks Jobs settings (JSON for the Jobs API) and into a bundle YAML file.
|
|
32
|
+
|
|
33
|
+
```console
|
|
34
|
+
$ pip install "pipeloom[databricks]"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Describe the deployment in a target:
|
|
38
|
+
|
|
39
|
+
```yaml
|
|
40
|
+
targets:
|
|
41
|
+
prod:
|
|
42
|
+
engine: {kind: spark}
|
|
43
|
+
catalog: {kind: spark_catalog}
|
|
44
|
+
state: {kind: table, table: ops._pipeloom_state} # shared by every task
|
|
45
|
+
artifacts: {root: /Volumes/main/ops/pipeloom}
|
|
46
|
+
deploy:
|
|
47
|
+
kind: databricks
|
|
48
|
+
pipelines: {main: {}, daily: {select: ["tag:daily"]}}
|
|
49
|
+
compute:
|
|
50
|
+
default: {kind: serverless, environment_version: "5"}
|
|
51
|
+
task_grouping: none # none, by_tag or by_folder
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
- One job per pipeline, one task per unit (or per group of units), plus a finalize task that
|
|
55
|
+
closes the run. A job above 1,000 tasks is an error (PLD001).
|
|
56
|
+
- Rendering is pure: no network, no Databricks SDK call and no credentials are needed. The
|
|
57
|
+
output is byte-for-byte the same for the same plan.
|
|
58
|
+
- Compute is serverless environments or job clusters, chosen per model with `compute_rules`.
|
|
59
|
+
- A pipeline job runs only its own units. An upstream model in another pipeline is read from
|
|
60
|
+
its persisted output, so schedule that pipeline first.
|
|
61
|
+
- Diagnostics: PLD001 (task limit), PLD003 (group cycle), PLD004 (invalid deploy options),
|
|
62
|
+
PLD005 (compute rule that matches no model), PLD013 (unresolved task parameter).
|
|
63
|
+
- Bundles: `pipeloom databricks bundle --target prod --out resources` writes one job file and
|
|
64
|
+
one manifest per pipeline into a Declarative Automation Bundle (the output folder must lie
|
|
65
|
+
inside the bundle, next to `databricks.yml`; add the job files to its `include`). Paths use
|
|
66
|
+
`${workspace.file_path}`. `--check` lists stale files and exits 1.
|
|
67
|
+
- Tasks run `pipeloom_databricks_task`, a wrapper that calls pipeloom in the task's own process,
|
|
68
|
+
so an existing Spark session is reused. A parameter that Databricks left as `{{...}}` stops
|
|
69
|
+
the task with PLD013. After a unit task the wrapper sets the task value `pipeloom`, a small
|
|
70
|
+
summary of its units (best effort).
|
|
71
|
+
- `pipeloom_databricks.testing.jobsim.simulate_job` runs a rendered job locally for tests.
|
|
72
|
+
- Direct deploy: `pipeloom databricks [--profile NAME] deploy --target prod [--pipeline NAME]...
|
|
73
|
+
[--dry-run]` uploads the project to the workspace (content addressed, under
|
|
74
|
+
`<workspace_root>/<project>/<pipeline>/<target>/<hash>`) and creates or resets one job per
|
|
75
|
+
pipeline, found by its `pipeloom_job` tag. It prints one JSON line per pipeline. `--dry-run`
|
|
76
|
+
prints the job settings and connects to nothing. The upload holds `pipeloom.yml`, the model
|
|
77
|
+
files and the `*.py` files below `python_paths` (virtual environments, `dist`, `build` and
|
|
78
|
+
similar folders are skipped). Other files below `python_paths` are not uploaded, so a Python
|
|
79
|
+
model that reads a file next to it (`.sql`, `.json`, `.csv`) works locally but not on
|
|
80
|
+
Databricks; keep such data in a table or a volume. Notebooks and files above 10 MB are refused
|
|
81
|
+
(PLD012).
|
|
82
|
+
- Connection: `--profile`, else a `DATABRICKS_CONFIG_PROFILE` you set, else `DATABRICKS_HOST`
|
|
83
|
+
with credentials, else the Databricks runtime, else PLD010. pipeloom never picks a profile
|
|
84
|
+
by itself. Other codes: PLD006 (two jobs with the same tag), PLD009 (API error).
|
|
85
|
+
- `pipeloom_databricks.api` is the stable surface for other distributions, and
|
|
86
|
+
`pipeloom_databricks.testing.fake.FakeDatabricks` a fake workspace for tests.
|
|
87
|
+
- Run: `pipeloom databricks run --target prod [--pipeline NAME] [--select S]... [--exclude S]...
|
|
88
|
+
[--run-id RID] [--full-refresh] [--ensure] [--ephemeral] [--wait|--no-wait]` starts the
|
|
89
|
+
deployed job (PLD007 when none is deployed, PLD008 when it differs from the local render,
|
|
90
|
+
unless `--ensure` deploys first). Selected units map to task keys plus finalize (`only`); a
|
|
91
|
+
partly selected group runs whole, with the warning PLD015. `--timeout SECONDS` (default 24
|
|
92
|
+
hours) bounds `--wait`. `--run-id` names the run and makes the start
|
|
93
|
+
idempotent. `--ephemeral` uploads the project and submits a one-time run on serverless
|
|
94
|
+
compute. It prints one JSON line with the ids and the run page URL, then with `--wait` (the
|
|
95
|
+
default) polls every 15 seconds, reports task transitions and the failed units, and exits 1
|
|
96
|
+
unless the run succeeded.
|
|
97
|
+
- Repair: `pipeloom databricks repair --target prod (--run-id RID | --job-run-id N)
|
|
98
|
+
[--wait|--no-wait]` reruns the tasks that failed, timed out, were cancelled or skipped, plus
|
|
99
|
+
finalize. A run that is still active is PLD014; nothing to repair exits 0.
|
|
100
|
+
- Finalize reads how each task ended from the Jobs API and gives core finalize the state of every
|
|
101
|
+
unit that wrote no attempt file, so a lost, timed-out or cancelled task fails or cancels the
|
|
102
|
+
run (a failed one is PLD011). If the API cannot be read, finalize prints one warning and judges
|
|
103
|
+
by the attempt files alone. A one-time run has no job run id, so it gets no task states.
|
|
104
|
+
|
|
105
|
+
- Unity Catalog: `catalog: {kind: unity, catalog: main}` (Spark engine only) addresses tables and
|
|
106
|
+
views as `` `catalog`.`schema`.`name` ``. The option catalog fills in when the target's naming
|
|
107
|
+
leaves it empty. A schema is created only when it does not exist yet, so a principal without
|
|
108
|
+
CREATE SCHEMA can write to an existing one.
|
|
109
|
+
- Secrets: `${secret:databricks/<scope>/<key>}` in plugin options reads a Databricks secret
|
|
110
|
+
scope at run time, with the connection rules above. The value is masked like any resolved
|
|
111
|
+
secret. A bad path, a missing connection or an API error is PLX109, naming the path and never
|
|
112
|
+
the value.
|
|
113
|
+
|
|
114
|
+
License: Apache-2.0.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
pipeloom_databricks/__init__.py,sha256=CNJh5gJWXQycPgUG9zxJNfI9JwsXNNmN5XXCwo1_OOs,598
|
|
2
|
+
pipeloom_databricks/api.py,sha256=AK17zDlwiM5EDaII525RCAIgAqceD3jn2tQTcS3ICbE,1162
|
|
3
|
+
pipeloom_databricks/bundle.py,sha256=Ne8F2JE41Sm_G3gpwugDMj9J60vXCvOFYvGaBjQmCPY,3710
|
|
4
|
+
pipeloom_databricks/cli.py,sha256=iNoKPfWPe5u0jxGvl89kBMUBWU9Bblz2xCWnM5tQfw8,18848
|
|
5
|
+
pipeloom_databricks/deploy.py,sha256=9i4-wwkBQkUQ76EvirX7L5IWVyYDCtdd3Czl4ZHZxF8,6491
|
|
6
|
+
pipeloom_databricks/finalize_states.py,sha256=Pt4acPatSc2_2h-f7P0skyWQFwxmNGDF87BEq1V5VH4,3256
|
|
7
|
+
pipeloom_databricks/grouping.py,sha256=su65fUpdmmaYts4cx-PEYTXpa-niuQDK7blDlD4FAYM,6049
|
|
8
|
+
pipeloom_databricks/jobs_model.py,sha256=xAZcMBv0OXjAjf-lK9xsOFKFOGB8GsZywVJxAjLRPs4,2946
|
|
9
|
+
pipeloom_databricks/keys.py,sha256=UKlCZn63wTJ4gjhm28mq6SOymMDTZvF9215w3bThnEE,1468
|
|
10
|
+
pipeloom_databricks/options.py,sha256=IxSyJqpoeY61HhHsODRUeb2GDO3CYpz6ZEXGI9OatpQ,2456
|
|
11
|
+
pipeloom_databricks/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
+
pipeloom_databricks/render.py,sha256=pVRcPrOIfkFgI9vwqhCdKCuGbZ6UVELzPDzXxYlwHT4,14261
|
|
13
|
+
pipeloom_databricks/repair.py,sha256=cJjYrHO8LIJiLrE4VtW_T78PG4E6l7pJZIsDnsMOQ_8,2210
|
|
14
|
+
pipeloom_databricks/run.py,sha256=O4BEXcD9NBR-yaXFWSr6l0fCaJgu1dNfx2DynkA0SC8,12988
|
|
15
|
+
pipeloom_databricks/secrets.py,sha256=C5g-J5a7bl8t7SwnMTXufYt10HhLhy2l9fQmZvJCow4,1848
|
|
16
|
+
pipeloom_databricks/serialize.py,sha256=GmJVSX-DHwqnfhVpflhMIEOXVLtnqMdL0yJnzRQLVjY,1032
|
|
17
|
+
pipeloom_databricks/spec.py,sha256=qTPMXWkynxidW9hHGcfhkbL_WMzIl4UOvqRf6hTytJw,2160
|
|
18
|
+
pipeloom_databricks/task.py,sha256=nsagFARARfz-Nr2Hq2MVoyIaWlmCx1e49ryGFIIE9RI,14919
|
|
19
|
+
pipeloom_databricks/task_values.py,sha256=EvRPLi9hO0sPad6L_nUI8gT78zM5yl_u8Oe939OErto,2476
|
|
20
|
+
pipeloom_databricks/unity.py,sha256=e6FHvBTc8tFrf7YOww9d2WSilkzJ7i8Bt6NGfOqAKLQ,922
|
|
21
|
+
pipeloom_databricks/upload.py,sha256=CQVqNd7ZBXK9tFo7cI0RUrLo_-PGA2puEelhAgg7yuY,8377
|
|
22
|
+
pipeloom_databricks/client/__init__.py,sha256=O-7cV9ldf9rFvAsWNhvQ8xlQWwrTDhKkL510K_v1I8Y,3857
|
|
23
|
+
pipeloom_databricks/client/connect.py,sha256=PRKS4qIp7HQKIb_M4ho9ricMy-elnCeoIMiidQaYRnA,3273
|
|
24
|
+
pipeloom_databricks/client/sdk.py,sha256=_oH-4trB1JfqaxYZwJkNOym1UoeVVFEle9M2PtMXfsc,10759
|
|
25
|
+
pipeloom_databricks/testing/__init__.py,sha256=F1UIoTh2lo5E-tLO0IARnxlxZ-PzB2S2SwRzt1MzUw8,100
|
|
26
|
+
pipeloom_databricks/testing/fake.py,sha256=WbSuvDN24x949TSCTFVfdnT-KzE2lf21KUrilGOHuII,11561
|
|
27
|
+
pipeloom_databricks/testing/jobsim.py,sha256=vf35Gs797LKTKgrPTQn_yYRRvNT0cVWee9vUykXNxKM,6900
|
|
28
|
+
pipeloom_databricks-0.5.0.dist-info/METADATA,sha256=jsXF2Es4A2NsDx9hwjf-0-Uz0rXeNuLv7LjgU-gzgaI,6822
|
|
29
|
+
pipeloom_databricks-0.5.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
30
|
+
pipeloom_databricks-0.5.0.dist-info/entry_points.txt,sha256=EIAVTirr9Z_dNjiPSaeu4oUKDffX9VjcB5lga7WyYVg,363
|
|
31
|
+
pipeloom_databricks-0.5.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
32
|
+
pipeloom_databricks-0.5.0.dist-info/licenses/NOTICE,sha256=NpAg8ClFon3koz6jjSBdkU9LCJinW-njQ_wCrhody-U,37
|
|
33
|
+
pipeloom_databricks-0.5.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[console_scripts]
|
|
2
|
+
pipeloom_databricks_task = pipeloom_databricks.task:main
|
|
3
|
+
|
|
4
|
+
[pipeloom.catalogs]
|
|
5
|
+
unity = pipeloom_databricks.spec:UNITY_SPEC
|
|
6
|
+
|
|
7
|
+
[pipeloom.commands]
|
|
8
|
+
databricks = pipeloom_databricks.cli:databricks
|
|
9
|
+
|
|
10
|
+
[pipeloom.renderers]
|
|
11
|
+
databricks = pipeloom_databricks.spec:RENDERER_SPEC
|
|
12
|
+
|
|
13
|
+
[pipeloom.secret_providers]
|
|
14
|
+
databricks = pipeloom_databricks.spec:SECRETS_SPEC
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|