Python SDK for the ML Artifact Registry
Project description
zvondb
Python SDK for the ML Artifact Registry — track artifacts, their lineage, and versions across ML experiments.
Installation
pip install zvondb
Quick start
from zvondb import Registry
with Registry(project="my-project") as reg:
exp = reg.ensure_experiment("my-experiment", parent="baseline")
with exp.start_job(name="train", git_sha="abc123") as job:
# Resolve input artifacts (walks parent chain)
data = job.resolve("TrainingData")
print(f"Using {data.name} v{data.version} from {data.path}")
# ... train your model ...
# Register output artifact
job.create(
"TrainedModel",
storage_name="s3",
description="Model trained on latest data",
metadata={"val_loss": 0.15},
tags=["v1"],
)
job.complete()
Configuration
| Environment variable | Constructor param | Default | Description |
|---|---|---|---|
ZVONDB_URL |
base_url |
http://localhost:8000 |
Registry server URL |
ZVONDB_API_KEY |
api_key |
"" |
API authentication token |
Key concepts
- Registry — entry point; manages projects and experiments
- Experiment — a branch of work that can inherit artifacts from a parent experiment
- Job — a unit of work that consumes and produces artifacts
- Artifact — a versioned, named piece of data with metadata, tags, and lineage
MLflow integration
with exp.start_job(name="train", git_sha="abc123") as job:
job.inject_mlflow_env() # Sets MLFLOW_TRACKING_URI etc. in os.environ
import mlflow
with mlflow.start_run() as run:
job.set_tracking_url(run.info.artifact_uri)
# Use MLflow for metrics, zvondb for artifact lineage
License
MIT
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
zvondb-0.1.0.tar.gz
(7.8 kB
view details)
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 zvondb-0.1.0.tar.gz.
File metadata
- Download URL: zvondb-0.1.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
797c46a57d9e59e1e48a519ff8dd7099da89fc11f4bd5407538ab502a9044de1
|
|
| MD5 |
c0eaad12e2a5c19070164af8184e588d
|
|
| BLAKE2b-256 |
f9fabe88d6b5e0594690072e440cac7c8d35201dabf4bec7f3e32be7c3401121
|
File details
Details for the file zvondb-0.1.0-py3-none-any.whl.
File metadata
- Download URL: zvondb-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6e068525de2bc45bb6796ad15ec5b6e7d5fe2afebe92ee016397722cd88555b6
|
|
| MD5 |
7c9a6b266e8819f0f63cbc5d880627d4
|
|
| BLAKE2b-256 |
4245b80ef4171a2a33f7de46649d2671dbd8e2d7256ad0929af04d8ea3823de3
|