Python client for the Kubeflow Model Registry REST API
Project description
Model Registry Client
Python client for the Kubeflow Model Registry REST API.
Installation
pip install -e ./model_registry_client
pip install "git+https://example.com/your-org/mlops-model-registry.git#subdirectory=model_registry_client"
Usage
from model_registry_client import ModelRegistryClient
registry = ModelRegistryClient(
base_url="http://mlops-edgemodule.model-registry.svc.cluster.local:80/model-registry/api",
)
model = registry.register_model(
"my-model",
"/path/to/model-artifacts",
version="2.0.0",
description="Experiment checkpoint",
metadata={"framework": "pytorch"},
artifact_type="weights",
)
print(model.id)
print(model.model_name)
print(model.versions)
All resource responses are typed objects with attribute access and a
to_dict() method for raw JSON-style data.
Documentation
The package includes MkDocs documentation generated from code docstrings and type annotations:
cd model_registry_client
pip install -e ".[docs]"
mkdocs serve
Build the static site with:
mkdocs build
LLM Markdown Reference
Generate a single Markdown API reference for LLM prompts or retrieval:
cd model_registry_client
pip install -e ".[llm-docs]"
pydoc-markdown pydoc-markdown.yml
The generated file is written to llm_docs/api_reference.md.
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 model_registry_client-0.1.0.tar.gz.
File metadata
- Download URL: model_registry_client-0.1.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3614e057ebd86cac7aabe73bab9938fd84a0034f36cf7ba7e9ae7c05cea9ffe4
|
|
| MD5 |
05a3317ce168cdb1dcf6144d8bc996c3
|
|
| BLAKE2b-256 |
fbe9aa8973d155fd67ab3d670e86f413a75b222012b3dec55edac9815ed0c49e
|
File details
Details for the file model_registry_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: model_registry_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57877d7f7ecc6f8d82fe44241cc5788303e0ffffe4d517a0afb1dee14c5fc2f2
|
|
| MD5 |
9bcb27b2082d6bab0a4917dd4c244181
|
|
| BLAKE2b-256 |
08e85bd23ba7b0e7e2bbd515a2d4ca33b4f31e3717c69c0ce4cb03da1d973d5e
|