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

Uploaded Python 3

File details

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

File metadata

  • Download URL: databricks_ml_bundle-0.1.0.tar.gz
  • Upload date:
  • Size: 11.0 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.0.tar.gz
Algorithm Hash digest
SHA256 faf557e2902265a6645ecd7b538a07719881ad3df5bcf18bb152fb93b2e6fff8
MD5 97b983c1ae27e5cf8ae7372f9b41e48f
BLAKE2b-256 b806f3a6886afa2e7e2cb6e5e4e5c13c7b77cb199211b82e47f814b5a1a23375

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for databricks_ml_bundle-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6822c69646f05763441e0b1cf07f072099c79eb32af402befaa7ddc498f90375
MD5 4e83f4ce499721d72f40b66da344e554
BLAKE2b-256 0ea2aaa6ebf3d493295daa41e01205ce839a5d9b3cbdb1eacc947531627466ed

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