Client for Red Hat OpenDataHub Model Registry
Project description
Model Registry Python Client
This library provides a high level interface for interacting with a model registry server.
Basic usage
from model_registry import ModelRegistry
registry = ModelRegistry(server_address="server-address", port=9090, author="author")
model = registry.register_model("my-model",
"s3://path/to/model",
model_format_name="onnx",
model_format_version="1",
storage_key="aws-connection-path",
storage_path="to/model",
version="v2.0",
description="lorem ipsum",
)
model = registry.get_registered_model("my-model")
version = registry.get_model_version("my-model", "v2.0")
experiment = registry.get_model_artifact("my-model", "v2.0")
Development
Common tasks, such as building documentation and running tests, can be executed using nox
sessions.
Use nox -l
to list sessions and execute them using nox -s [session]
.
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
model_registry-0.1.0.tar.gz
(11.5 kB
view hashes)
Built Distribution
Close
Hashes for model_registry-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96c30af28992af142c2b84b6cfb8655e693b2b4b4dcb2163c95937c105e6a6bb |
|
MD5 | 9acbb66356409999276bf3fda3b86e39 |
|
BLAKE2b-256 | 0e1569ec5275fb701e2c82ca5842f3f70b20d93895afdcc4444a1898da2b7fb9 |