Skip to content

demml/opsml-cli

Repository files navigation

Opsml-cli

Lints-Tests

This package provides a python-installable CLI written in Rust for interacting with opsml.

Installation

Using Poetry

poetry add opsml-cli

Using Pip

pip install opsml-cli

Commands

To get a list of commands, run opsml-cli help.

Listing Cards

$ opsml-cli list-cards --registry model

Downloading Model

# Download model only

$ opsml-cli download-model --name {{model}} --repository {{repository}} --version {{version}}  # name repository version
$ opsml-cli download-model --uid {{uid}} # model from uid

# Download onnx version of model

$ opsml-cli download-model --name model --repository {{repository}} --version 1.0.0  --onnx

# Download model and preprocessor (if available)
opsml-cli download-model --name model -- version 1.0.0 --repository {{repository}} --onnx --preprocessor

Contributing

If you'd like to contribute, be sure to check out our contributing guide!

Thanks goes to these phenomenal projects and people and people for creating a great foundation to build from!