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 ts-ml-bundle

Usage

Generate a new ML project:

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

Or use the short command:

tml-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/ts-ml-bundle-cli
cd ts-ml-bundle-cli

# Install with Poetry
poetry install

# Run locally
poetry run ts-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

ts_ml_bundle-0.3.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

ts_ml_bundle-0.3.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file ts_ml_bundle-0.3.0.tar.gz.

File metadata

  • Download URL: ts_ml_bundle-0.3.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for ts_ml_bundle-0.3.0.tar.gz
Algorithm Hash digest
SHA256 b040c7ff9f17f88130cc016f6958c01f590aee36757c2cb998a35d7e83d859ab
MD5 8ede371f1d9c14b0a8805407d0fbd82a
BLAKE2b-256 3b823e035b4c75ce467739ce4836d9c991f0204160d840d10c4c33ddd176821a

See more details on using hashes here.

File details

Details for the file ts_ml_bundle-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: ts_ml_bundle-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for ts_ml_bundle-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f855084718e299c89f4d0b98d596c71d0f18b99f8eac4cf544a5dbe0c42bfe0d
MD5 159a7f912c8c5a4cd24e303b61832282
BLAKE2b-256 a4693d40f16ba945ea83f9e4ac6df8730266dc33c1ce66570056d7cd28b4234c

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