pipeloom-databricks
The Databricks renderer for pipeloom. It turns a compiled plan into Databricks Jobs settings (JSON for the Jobs API) and into a bundle YAML file.
$ pip install "pipeloom[databricks]"
Describe the deployment in a target:
targets:
prod:
engine: {kind: spark}
catalog: {kind: spark_catalog}
state: {kind: table, table: ops._pipeloom_state} # shared by every task
artifacts: {root: /Volumes/main/ops/pipeloom}
deploy:
kind: databricks
pipelines: {main: {}, daily: {select: ["tag:daily"]}}
compute:
default: {kind: serverless, environment_version: "5"}
task_grouping: none # none, by_tag or by_folder
-
One job per pipeline, one task per unit (or per group of units), plus a finalize task that closes the run. A job above 1,000 tasks is an error (PLD001).
-
Rendering is pure: no network, no Databricks SDK call and no credentials are needed. The output is byte-for-byte the same for the same plan.
-
Compute is serverless environments or job clusters, chosen per model with
compute_rules. -
A pipeline job runs only its own units. An upstream model in another pipeline is read from its persisted output, so schedule that pipeline first.
-
Diagnostics: PLD001 (task limit), PLD003 (group cycle), PLD004 (invalid deploy options), PLD005 (compute rule that matches no model), PLD013 (unresolved task parameter).
-
Bundles:
pipeloom databricks bundle --target prod --out resourceswrites one job file and one manifest per pipeline into a Declarative Automation Bundle (the output folder must lie inside the bundle, next todatabricks.yml; add the job files to itsinclude). Paths use${workspace.file_path}.--checklists stale files and exits 1. -
Tasks run
pipeloom_databricks_task, a wrapper that calls pipeloom in the task's own process, so an existing Spark session is reused. A parameter that Databricks left as{{...}}stops the task with PLD013. After a unit task the wrapper sets the task valuepipeloom, a small summary of its units (best effort). -
pipeloom_databricks.testing.jobsim.simulate_jobruns a rendered job locally for tests. -
Direct deploy:
pipeloom databricks [--profile NAME] deploy --target prod [--pipeline NAME]... [--dry-run]uploads the project to the workspace (content addressed, under<workspace_root>/<project>/<pipeline>/<target>/<hash>) and creates or resets one job per pipeline, found by itspipeloom_jobtag. It prints one JSON line per pipeline.--dry-runprints the job settings and connects to nothing. The upload holdspipeloom.yml, the model files and the*.pyfiles belowpython_paths(virtual environments,dist,buildand similar folders are skipped). Other files belowpython_pathsare not uploaded, so a Python model that reads a file next to it (.sql,.json,.csv) works locally but not on Databricks; keep such data in a table or a volume. Notebooks and files above 10 MB are refused (PLD012). -
Connection:
--profile, else aDATABRICKS_CONFIG_PROFILEyou set, elseDATABRICKS_HOSTwith credentials, else the Databricks runtime, else PLD010. pipeloom never picks a profile by itself. Other codes: PLD006 (two jobs with the same tag), PLD009 (API error). -
pipeloom_databricks.apiis the stable surface for other distributions, andpipeloom_databricks.testing.fake.FakeDatabricksa fake workspace for tests. -
Run:
pipeloom databricks run --target prod [--pipeline NAME] [--select S]... [--exclude S]... [--run-id RID] [--full-refresh] [--ensure] [--ephemeral] [--wait|--no-wait]starts the deployed job (PLD007 when none is deployed, PLD008 when it differs from the local render, unless--ensuredeploys first). Selected units map to task keys plus finalize (only); a partly selected group runs whole, with the warning PLD015.--timeout SECONDS(default 24 hours) bounds--wait.--run-idnames the run and makes the start idempotent.--ephemeraluploads the project and submits a one-time run on serverless compute. It prints one JSON line with the ids and the run page URL, then with--wait(the default) polls every 15 seconds, reports task transitions and the failed units, and exits 1 unless the run succeeded. -
Repair:
pipeloom databricks repair --target prod (--run-id RID | --job-run-id N) [--wait|--no-wait]reruns the tasks that failed, timed out, were cancelled or skipped, plus finalize. A run that is still active is PLD014; nothing to repair exits 0. -
Finalize reads how each task ended from the Jobs API and gives core finalize the state of every unit that wrote no attempt file, so a lost, timed-out or cancelled task fails or cancels the run (a failed one is PLD011). If the API cannot be read, finalize prints one warning and judges by the attempt files alone. A one-time run has no job run id, so it gets no task states.
-
Unity Catalog:
catalog: {kind: unity, catalog: main}(Spark engine only) addresses tables and views as`catalog`.`schema`.`name`. The option catalog fills in when the target's naming leaves it empty. A schema is created only when it does not exist yet, so a principal without CREATE SCHEMA can write to an existing one. -
Secrets:
${secret:databricks/<scope>/<key>}in plugin options reads a Databricks secret scope at run time, with the connection rules above. The value is masked like any resolved secret. A bad path, a missing connection or an API error is PLX109, naming the path and never the value.
License: Apache-2.0.
Metadata
Release files for pipeloom-databricks 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pipeloom_databricks-0.6.0.tar.gz | 87.1 kB | With provenance | Details for pipeloom_databricks-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pipeloom_databricks-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for pipeloom_databricks-0.6.0-py3-none-any.whl |
Total release size: 150.4 kB
Release files / pipeloom_databricks-0.6.0.tar.gz
| Download URL | pipeloom_databricks-0.6.0.tar.gz |
|---|---|
| Size | 87.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2dfb10e8ac80d45fee281f0f16e82f066ad9016f8eaa3b56d56dc5b38a7a6b0c
|
|
BLAKE2b-256 checksum How to use checksums |
22a88925d851ed3c9bdc93d01f74bd9e03263904727faaeaaf43180449fbbefc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logRelease files / pipeloom_databricks-0.6.0-py3-none-any.whl
| Download URL | pipeloom_databricks-0.6.0-py3-none-any.whl |
|---|---|
| Size | 63.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c956086926a782e1afd6851fe649a79123cdee0a0d76a2085b44734c4001d955
|
|
BLAKE2b-256 checksum How to use checksums |
bf023690faad538b74a52355ad93600b6d6f93f6983f9e79d6cddd8343024609
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logSecurity for pipeloom-databricks 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pipeloom_databricks-0.6.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.