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.1.tar.gz (11.1 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.1-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: databricks_ml_bundle-0.1.1.tar.gz
  • Upload date:
  • Size: 11.1 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.1.tar.gz
Algorithm Hash digest
SHA256 7ae3742546ad01365e63217593e5f04994fc7a04472fd7a4e3ff6d93f4b05e01
MD5 be9ac424b871a1b80ddd7d1437c0fd7c
BLAKE2b-256 0690917f86d7b8e76905b25d8b454e7e07c2566b8d78b881870cb4b904939248

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for databricks_ml_bundle-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 277d69f0dcc76adb50f8c09e547f608d8abb4c6090c18ddb3cda94ac9d24075a
MD5 ad73f86589b0fe903897de46d94bf1c8
BLAKE2b-256 59fe21407d33962f58a0a571b232463fd98bfb4ce718efc390a2f8a225157e0c

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