Skip to main content

Client for Red Hat OpenDataHub Model Registry

Project description

Model Registry Python Client

Python License

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


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)

Uploaded Source

Built Distribution

model_registry-0.1.0-py3-none-any.whl (14.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page