Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

model_registry_client-0.1.0.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

model_registry_client-0.1.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

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

Hashes for model_registry_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3614e057ebd86cac7aabe73bab9938fd84a0034f36cf7ba7e9ae7c05cea9ffe4
MD5 05a3317ce168cdb1dcf6144d8bc996c3
BLAKE2b-256 fbe9aa8973d155fd67ab3d670e86f413a75b222012b3dec55edac9815ed0c49e

See more details on using hashes here.

File details

Details for the file model_registry_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for model_registry_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 57877d7f7ecc6f8d82fe44241cc5788303e0ffffe4d517a0afb1dee14c5fc2f2
MD5 9bcb27b2082d6bab0a4917dd4c244181
BLAKE2b-256 08e85bd23ba7b0e7e2bbd515a2d4ca33b4f31e3717c69c0ce4cb03da1d973d5e

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