KladML SDK - Enterprise-grade MLOps toolkit
Project description
Build ML pipelines with pluggable backends. Simple. Modular. Yours.
⭐ Star us on GitHub to support the project!
Why KladML?
| Feature | KladML | MLflow | ClearML |
|---|---|---|---|
| Interface-based | ✅ Pluggable | ❌ Hardcoded | ❌ Hardcoded |
| Server required | ❌ No | ⚠️ Optional | ✅ Yes |
| Local-first | ✅ Unified SQLite DB | ✅ Yes | ❌ No |
| Learning curve | 🟢 Minutes | 🟡 Days | 🔴 Weeks |
| Hierarchy | ✅ Workspace/Proj/Fam | ❌ Exp/Run | ❌ Project/task |
| User Interface | ✅ TUI (Terminal) | ⚠️ Web UI | ✅ Web UI |
| Custom backends | ✅ Easy | ⚠️ Complex | ❌ No |
Installation
# Core (lightweight, no UI)
pip install kladml
# Full CLI (for terminal usage with TUI)
pip install -e ".[all]"
# For Vision support (optional)
pip install -e ".[vision]"
Workflow
1. Initialize Workspace
kladml init
Creates the standard folder structure (data/, registry/, projects/).
2. Interactive Management (TUI)
kladml ui
Explore projects, runs, and datasets visually in your terminal.
3. Training
# Train using a config file
kladml train --config data/configs/my_config.yaml
Supported Data Types
| Data Type | Pipeline |
|---|---|
| TABULAR | XGBoost |
| TIMESERIES | Transformer/Gluformer |
| IMAGE | ResNet50 (Coming Soon) |
Architecture
KladML uses dependency injection with abstract interfaces. Swap implementations without changing your code:
┌─────────────────────────────────────────────────────────────┐
│ Your Code │
├─────────────────────────────────────────────────────────────┤
│ ExperimentRunner │
├─────────────────────────────────────────────────────────────┤
│ StorageInterface │ ConfigInterface │ TrackerInterface │
├─────────────────────────────────────────────────────────────┤
│ LocalStorage │ YamlConfig │ LocalTracker │
│ S3Storage │ EnvConfig │ MLflowTracker │
│ (your impl) │ (your impl) │ (your impl) │
└─────────────────────────────────────────────────────────────┘
Implement Custom Backends
from kladml.interfaces import StorageInterface
class S3Storage(StorageInterface):
"""Custom S3 implementation."""
def upload_file(self, local_path, bucket, key):
# Your S3 logic
...
# Plug it in
runner = ExperimentRunner(storage=S3Storage())
Interfaces
| Interface | Description | Default |
|---|---|---|
StorageInterface |
Object storage (files, artifacts) | LocalStorage |
ConfigInterface |
Configuration management | YamlConfig |
PublisherInterface |
Real-time metric publishing | ConsolePublisher |
TrackerInterface |
Experiment tracking | LocalTracker (MLflow + SQLite) |
Configuration
Create kladml.yaml:
project:
name: my-project
version: 0.1.0
training:
device: auto # auto | cpu | cuda | mps
storage:
artifacts_dir: ./artifacts
Or use environment variables:
export KLADML_TRAINING_DEVICE=cuda
export KLADML_STORAGE_ARTIFACTS_DIR=/data/artifacts
CLI Commands
kladml --help # Show all commands
kladml init # Initialize workspace
kladml version # Show version
# Training
kladml train quick ... # Quick training (no DB setup)
kladml train single ... # Full training with project/experiment
# Evaluation
kladml eval run ... # Evaluate a model
kladml eval info # Show available evaluators
kladml compare --runs r1,r2 # Compare runs side-by-side
# Data
kladml data inspect <path> # Analyze a dataset
kladml data summary <dir> # Summary of datasets in directory
kladml data convert ... # Convert PKL -> HDF5
# Models
kladml models export ... # Export to TorchScript
# Organization
kladml project list # List all projects
kladml family list ... # List families
kladml experiment list ... # List experiments
Contributing
PRs welcome! See CONTRIBUTING.md for guidelines.
git clone https://github.com/kladml/kladml.git
cd kladml
pip install -e ".[dev]"
pytest
License
MIT License - see LICENSE for details.
Documentation · PyPI · GitHub
Made in 🇮🇹 by the KladML Team
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kladml-0.6.0.tar.gz.
File metadata
- Download URL: kladml-0.6.0.tar.gz
- Upload date:
- Size: 356.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
adc6c910d9f5585e88ea0e57dff2b6d858552f1efaac73e4e584ffe3f8cd93a3
|
|
| MD5 |
db9b67fe90a33bf0fe1c421d162ec8ca
|
|
| BLAKE2b-256 |
52a38597980ddc05bd048a683fc47c2bfa624e84b83e1966f961881cdec77d7f
|
Provenance
The following attestation bundles were made for kladml-0.6.0.tar.gz:
Publisher:
publish.yml on kladml/kladml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kladml-0.6.0.tar.gz -
Subject digest:
adc6c910d9f5585e88ea0e57dff2b6d858552f1efaac73e4e584ffe3f8cd93a3 - Sigstore transparency entry: 850004896
- Sigstore integration time:
-
Permalink:
kladml/kladml@24ec606292b48a9f4f15420c4f07956963037cca -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/kladml
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@24ec606292b48a9f4f15420c4f07956963037cca -
Trigger Event:
push
-
Statement type:
File details
Details for the file kladml-0.6.0-py3-none-any.whl.
File metadata
- Download URL: kladml-0.6.0-py3-none-any.whl
- Upload date:
- Size: 141.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7312957f6049a636e49bde6c119ef9fa4e28874f255f8ea639bcb1f4f6f03192
|
|
| MD5 |
b9dfd7acdd2c28461f5bb20a8bbfb971
|
|
| BLAKE2b-256 |
9fb8e31819739d5142098e0576ff196cfcdcb279a29bf6661d507aaf040b7c6e
|
Provenance
The following attestation bundles were made for kladml-0.6.0-py3-none-any.whl:
Publisher:
publish.yml on kladml/kladml
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kladml-0.6.0-py3-none-any.whl -
Subject digest:
7312957f6049a636e49bde6c119ef9fa4e28874f255f8ea639bcb1f4f6f03192 - Sigstore transparency entry: 850004897
- Sigstore integration time:
-
Permalink:
kladml/kladml@24ec606292b48a9f4f15420c4f07956963037cca -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/kladml
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@24ec606292b48a9f4f15420c4f07956963037cca -
Trigger Event:
push
-
Statement type: