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.
Metadata
Release files for model-registry-client 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| model_registry_client-0.1.0.tar.gz | 12.6 kB | Without provenance | Details for model_registry_client-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| model_registry_client-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for model_registry_client-0.1.0-py3-none-any.whl |
Total release size: 27.1 kB
Release files / model_registry_client-0.1.0.tar.gz
| Download URL | model_registry_client-0.1.0.tar.gz |
|---|---|
| Size | 12.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3614e057ebd86cac7aabe73bab9938fd84a0034f36cf7ba7e9ae7c05cea9ffe4
|
|
BLAKE2b-256 checksum How to use checksums |
fbe9aa8973d155fd67ab3d670e86f413a75b222012b3dec55edac9815ed0c49e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / model_registry_client-0.1.0-py3-none-any.whl
| Download URL | model_registry_client-0.1.0-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57877d7f7ecc6f8d82fe44241cc5788303e0ffffe4d517a0afb1dee14c5fc2f2
|
|
BLAKE2b-256 checksum How to use checksums |
08e85bd23ba7b0e7e2bbd515a2d4ca33b4f31e3717c69c0ce4cb03da1d973d5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for model-registry-client 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.