Skip to main content

CLI tool to generate Databricks ML platform project structure with governance and best practices

Project description

Databricks ML Bundle CLI

A CLI tool to generate Databricks ML platform project structures with governance and best practices.

Installation

pip install databricks-ml-bundle

Usage

Generate a new ML project:

databricks-ml-init --name my-ml-project --workspace-host https://your-workspace.cloud.databricks.com --model-type segmentation --use-gpu

Or use the short command:

dml-init -n my-ml-project -w https://your-workspace.cloud.databricks.com -m classification

Options

  • --name, -n: Project name (required)
  • --output-dir, -o: Output directory (default: current directory)
  • --workspace-host, -w: Databricks workspace URL (required)
  • --model-type, -m: Model type - classification, regression, segmentation, nlp, custom (default: custom)
  • --use-gpu: Enable GPU configuration for training

Generated Structure

The CLI generates a complete ML platform project with:

  • Multi-environment support (dev/stg/prod)
  • Unity Catalog integration
  • MLflow experiment tracking
  • Quality gates and approvals
  • CI/CD pipeline with GitHub Actions
  • Cluster policies and security
  • Modular Python package structure

Example

# Generate a computer vision project
databricks-ml-init \
  --name vista-segmentation \
  --workspace-host https://my-workspace.cloud.databricks.com \
  --model-type segmentation \
  --use-gpu

# Navigate to project
cd vista-segmentation

# Install dependencies
pip install -r requirements.txt

# Deploy to Databricks
databricks bundle validate --target dev
databricks bundle deploy --target dev

Features

  • Governance-first: Built-in security, permissions, and audit trails
  • Multi-environment: Separate dev/staging/production environments
  • Model-specific: Templates optimized for different ML use cases
  • Production-ready: Includes serving endpoints, monitoring, and CI/CD
  • Unity Catalog: Full integration with Databricks governance platform

Development

# Clone repository
git clone https://github.com/yourusername/databricks-ml-bundle-cli
cd databricks-ml-bundle-cli

# Install with Poetry
poetry install

# Run locally
poetry run databricks-ml-init --help

Publishing to PyPI

# Build package
poetry build

# Publish to PyPI
poetry publish

License

MIT License

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

databricks_ml_bundle-0.1.2.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

databricks_ml_bundle-0.1.2-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file databricks_ml_bundle-0.1.2.tar.gz.

File metadata

  • Download URL: databricks_ml_bundle-0.1.2.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.5 Darwin/24.6.0

File hashes

Hashes for databricks_ml_bundle-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e5ff3726c6f6160e417c6c559bb61ec8746693d3e1b9800f17ff333bd4e6af77
MD5 c1df895d8df994340c9ba1249f6584ac
BLAKE2b-256 7b7ef7c2cf71222f29d6fa26256aefb551bd96b5d60336947453d9101c39c396

See more details on using hashes here.

File details

Details for the file databricks_ml_bundle-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for databricks_ml_bundle-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4a0deb2d9ccd91c055e3e275bab685d8b6bcbbe8393eb5b6b9ae9c597425b15c
MD5 c9e5e434ca5c1aa309ad09bce01a6ae2
BLAKE2b-256 935af1abccd6b240d49b772133b288451aa4a7816d7450cbe8d2bda4825398d2

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