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-mlopsVerified import paths — ran on the pinned version, not inferred.
Basic usage to report model predictions and execution time to a DataRobot MLOps deployment.
Replace 'application_key' with 'api_token' in constructor.
Use 'report_classification_stats' with 'class_names' parameter instead.
Wrap report calls with threading or use an async HTTP client if available (not natively supported).
Always pass deployment_id as str(deployment_id).