A Python SDK for interacting with the DataRisk MLOps API
Project description
Datarisk MLOps - SDK
A Python SDK for interacting with the MLOps API, providing tools for training, deploying, and monitoring machine learning models.
Table of Contents
Installation
pip install datarisk-mlops-codex
Getting started
To use the SDK, you must be logged in to the application. This can be done by importing one of the provided clients, as shown in the example below
from mlops_codex.model import MLOpsModelClient
client = MLOpsModelClient()
Example of usage
PATH = './samples/asyncModel/'
# Deploying a new model
model = client.create_model(
model_name='Teste notebook Async',
model_reference='score',
source_file=PATH+'app.py',
model_file=PATH+'model.pkl',
requirements_file=PATH+'requirements.txt',
schema=PATH+'schema.csv',
python_version='3.9',
operation="Async",
input_type='csv',
group='datarisk'
)
PATH = './samples/asyncModel/'
execution = model.predict(data=PATH+'input.csv', group_token='TODO', wait_complete = False)
There's also some example notebooks.
Support
- For help or questions, visit the documentation
Contributing
- To learn more about making a contribution to datarisk-mlops-codex, please see our Contributing guide.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datarisk_mlops_codex-4.0.2.tar.gz.
File metadata
- Download URL: datarisk_mlops_codex-4.0.2.tar.gz
- Upload date:
- Size: 117.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6873087032ad847c43cb0bac2ef94675ac16a4c9ebad4a9a5d8314a43a3bb890
|
|
| MD5 |
ebd98c99cceceb275fef445afcbfbbc8
|
|
| BLAKE2b-256 |
8450e23298b63218fba05fed4eb1889e10ee6ceaf832ed8ac13a17f1ed6f7b46
|
File details
Details for the file datarisk_mlops_codex-4.0.2-py3-none-any.whl.
File metadata
- Download URL: datarisk_mlops_codex-4.0.2-py3-none-any.whl
- Upload date:
- Size: 63.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d6230f7c382dd53ba1de4a185b2b16c128575f2be6dbe783b9f53edd0c25d76
|
|
| MD5 |
41f6a969ce1b5a1741ebf09acb71a89f
|
|
| BLAKE2b-256 |
1ff03aef214eef13d113e371f65ff258bf466ff27d60e04ffb001f3b7ffefd50
|