Registry / ai-ml / datarobot-mlops

datarobot-mlops

JSON →
library11.2.31pypypiunverified

Python SDK for DataRobot MLOps to read and report model monitoring statistics (accuracy, drift, data quality) to DataRobot's MLOps platform. Current version 11.1.28, requires Python >=3.9. Released as part of DataRobot's MLOps cloud or on-premise deployment with frequent minor releases.

pip install datarobot-mlops
INSTALL
IMPORT
SIG · DATAROBOT-MLOPS
D
datarobot-mlops
ai-mlpythonv11.2.31
Install
8.3s avg
Import
Disk
169MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v11.2.31 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 168.8MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 8.3s · import 0.000s · 162MB
169MB installed
● package 169MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MLOpsReporting
from datarobot_mlops import MLOpsReporting
from datarobot_mlops import MLOpsReporting

Basic usage to report model predictions and execution time to a DataRobot MLOps deployment.

import os from datarobot_mlops import MLOpsReporting # Initialize with API credentials from environment mlops_report = MLOpsReporting( server_url=os.environ.get('DATAROBOT_API_ENDPOINT', ''), api_token=os.environ.get('DATAROBOT_API_TOKEN', '') ) # Report deployment stats mlops_report.report_deployment_stats( deployment_id='your-deployment-id', predictions=100, execution_time=0.5, model_id='your-model-id' ) print("Stats reported successfully.")
Debug
Known issues
breakingIn version 11.x, MLOpsReporting no longer accepts 'application_key' argument; use 'api_token' instead.
fix
Replace 'application_key' with 'api_token' in constructor.
affects: >=11.0.0
deprecatedThe method 'report_binary_classification_stats' is deprecated in 10.x+ and removed in 11.x.
fix
Use 'report_classification_stats' with 'class_names' parameter instead.
affects: >=10.0.0
gotchaThe SDK uses blocking HTTP calls. In production, run reporting in a separate thread or async task to avoid blocking model inference.
fix
Wrap report calls with threading or use an async HTTP client if available (not natively supported).
affects: all
gotchaDeployment ID must be a string; integer or UUID object will raise AttributeError.
fix
Always pass deployment_id as str(deployment_id).
affects: all
Upgrade
Version history
11.2.31latest on PyPI · released Jun 11, 2026
Audit
Dependencies
pandasrequiredRequired for data handling in reporting functions
Agent activity
14 hits · last 30 days
node
12
OpenAI (training)
2
Resources
datarobot-mlops — pip install datarobot-mlops · libregistry