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.3.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.3-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: databricks_ml_bundle-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 fe5de1be684b09f7d52859113a54209ba54d9631b57cc8ba0af18e61c4f74ee3
MD5 9c52d0a312d2c95e8f2963650bf249ac
BLAKE2b-256 ffa4514349839f96fa78c8401f851a740f141bd9e25ed590b72c129d0cccf4d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for databricks_ml_bundle-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 288bcd34348399a8bef9aeb30fc6adc38ea09f51c6f03df881336c351880b815
MD5 ca161700e0b1071bf8bd648ff197e3c0
BLAKE2b-256 ba11fe1f72c08dd8985a10426fcf545962a1987ecbc88abae51a61287100a20d

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