Skip to main content

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:                           # shared by every task
      kind: table
      table: ops._pipeloom_state
    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 resources writes one job file and one manifest per pipeline into a Declarative Automation Bundle (the output folder must lie inside the bundle, next to databricks.yml; add the job files to its include). Paths use ${workspace.file_path}. --check lists 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 value pipeloom, a small summary of its units (best effort).

  • pipeloom_databricks.testing.jobsim.simulate_job runs 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 its pipeloom_job tag. It prints one JSON line per pipeline. --dry-run prints the job settings and connects to nothing. The upload holds pipeloom.yml, the model files and the *.py files below python_paths (virtual environments, dist, build and similar folders are skipped). Other files below python_paths are 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 a DATABRICKS_CONFIG_PROFILE you set, else DATABRICKS_HOST with 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.api is the stable surface for other distributions, and pipeloom_databricks.testing.fake.FakeDatabricks a 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 --ensure deploys 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-id names the run and makes the start idempotent. --ephemeral uploads 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: a catalog block with kind: unity and 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 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pipeloom-databricks 1.2.0
File Size Uploaded Provenance Actions
pipeloom_databricks-1.2.0.tar.gz 89.7 kB With provenance Details for pipeloom_databricks-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pipeloom-databricks 1.2.0
File Interpreter ABI Platform Actions
pipeloom_databricks-1.2.0-py3-none-any.whl Python 3 none any Details for pipeloom_databricks-1.2.0-py3-none-any.whl

Total release size: 154.3 kB

Release files / pipeloom_databricks-1.2.0.tar.gz

Download URL pipeloom_databricks-1.2.0.tar.gz
Size 89.7 kB
Tags Source
SHA-256 checksum
How to use checksums
565f6045da80e1023e723884c91185c268e765d08c67aa4fdc426b0b2994acdc
BLAKE2b-256 checksum
How to use checksums
71f6cb5e782f0763f8f364e1edcb97815d84eec7f0eff1f1de68d002a7f15af4
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 21, 2026.

Transparency log

Release files / pipeloom_databricks-1.2.0-py3-none-any.whl

Download URL pipeloom_databricks-1.2.0-py3-none-any.whl
Size 64.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e84d0ce21f28d92bce9f5626413835c29b6f8bf61da155920abad723b2908e43
BLAKE2b-256 checksum
How to use checksums
1c55b6f474a2bcadd946d3567e081fec57f85fb173b26fc59a66fb6b0d8f80eb
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 21, 2026.

Transparency log

Security for pipeloom-databricks 1.2.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.

Select from 2 files

Attestation for pipeloom_databricks-1.2.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 21, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page