Skip to main content

CLI tool to run Databricks notebooks from local git repos

Project description

mimi-dbx-runner

CLI tool to run Databricks notebooks from local git repos.

Install

pip install -e /path/to/mimi-dbx-runner

Setup

Create a .env in your project directory (see .env.example):

DATABRICKS_HOST=https://your-workspace.cloud.databricks.com
DATABRICKS_TOKEN=dapi...
DATABRICKS_CLUSTER_ID=xxxx-xxxxxx-xxxxxxxx
DBX_UPLOAD_PATH=/Users/your.email@company.com/dbx_runner_tmp

Usage

dbx-run <notebook_path> [options]

Options:
  -p, --param KEY=VALUE    Widget parameter (repeatable)
  --cluster-id ID          Override DATABRICKS_CLUSTER_ID
  --no-cleanup             Keep uploaded notebook in workspace
  --upload-path PATH       Override DBX_UPLOAD_PATH

Examples

dbx-run my_notebook.py -p client_name=acme
dbx-run analysis.ipynb -p start_date=2024-01-01 --no-cleanup
python -m mimi_dbx_runner notebook.py -p key=value

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mimi_dbx_runner-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mimi_dbx_runner-0.1.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file mimi_dbx_runner-0.1.0.tar.gz.

File metadata

  • Download URL: mimi_dbx_runner-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.2

File hashes

Hashes for mimi_dbx_runner-0.1.0.tar.gz
Algorithm Hash digest
SHA256 16a3de02f6a0950963178a27519009a587141f76eaba77c57247943850362edf
MD5 4382c95d0992be96da816e7755d98b87
BLAKE2b-256 3343004436b9fae5280e3738c2799570d8b703273c31e1d51be1da2118163fee

See more details on using hashes here.

File details

Details for the file mimi_dbx_runner-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mimi_dbx_runner-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c95412ba3685f3c8cda9e573ab13c70d76971a5ed5584220d21018d6b82a2b2d
MD5 c44c4afa6bd949032837962d11679995
BLAKE2b-256 8b6d9a66300fdb9cb91314823b72007ab62cc8f862ecb1a559b93cc5775203bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page