{"id":23513,"library":"datarobot-mlops","title":"DataRobot MLOps","description":"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.","status":"active","version":"11.1.28","language":"python","source_language":"en","source_url":"https://github.com/datarobot/datarobot-mlops","tags":["MLOps","model-monitoring","DataRobot","statistics","reporting"],"install":[{"cmd":"pip install datarobot-mlops","lang":"bash","label":"Standard install"}],"dependencies":[{"reason":"Required for data handling in reporting functions","package":"pandas","optional":false}],"imports":[{"wrong":"from datarobot_mlops import MLOpsReporting","symbol":"MLOpsReporting","correct":"from datarobot_mlops import MLOpsReporting"}],"quickstart":{"code":"import os\nfrom datarobot_mlops import MLOpsReporting\n\n# Initialize with API credentials from environment\nmlops_report = MLOpsReporting(\n    server_url=os.environ.get('DATAROBOT_API_ENDPOINT', ''),\n    api_token=os.environ.get('DATAROBOT_API_TOKEN', '')\n)\n\n# Report deployment stats\nmlops_report.report_deployment_stats(\n    deployment_id='your-deployment-id',\n    predictions=100,\n    execution_time=0.5,\n    model_id='your-model-id'\n)\nprint(\"Stats reported successfully.\")","lang":"python","description":"Basic usage to report model predictions and execution time to a DataRobot MLOps deployment."},"warnings":[{"fix":"Replace 'application_key' with 'api_token' in constructor.","message":"In version 11.x, MLOpsReporting no longer accepts 'application_key' argument; use 'api_token' instead.","severity":"breaking","affected_versions":">=11.0.0"},{"fix":"Use 'report_classification_stats' with 'class_names' parameter instead.","message":"The method 'report_binary_classification_stats' is deprecated in 10.x+ and removed in 11.x.","severity":"deprecated","affected_versions":">=10.0.0"},{"fix":"Wrap report calls with threading or use an async HTTP client if available (not natively supported).","message":"The SDK uses blocking HTTP calls. In production, run reporting in a separate thread or async task to avoid blocking model inference.","severity":"gotcha","affected_versions":"all"},{"fix":"Always pass deployment_id as str(deployment_id).","message":"Deployment ID must be a string; integer or UUID object will raise AttributeError.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'11.1.28':26 '3.9':29 'accuraci':15 'cloud':37 'current':24 'data':17 'datarobot':1,6,20,34,51 'deploy':42 'drift':16 'frequent':44 'minor':45 'mlop':2,7,22,36,47 'model':12,49 'model-monitor':48 'monitor':13,50 'on-premis':39 'part':32 'platform':23 'premis':41 'python':3,28 'qualiti':18 'read':9 'releas':30,46 'report':11,53 'requir':27 'sdk':4 'statist':14,52 'version':25","created_at":"2026-05-01T08:08:10.591144+00:00","updated_at":"2026-05-01T08:08:10.591144+00:00","problems":{"verify_error":"Traceback (most recent call last):\n  File \"<string>\", line 1, in <module>\nImportError: cannot import name 'MLOpsReporting' from 'datarobot_mlops' (unknown location)"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"11.2.31","cli_name":"","cli_version":null,"type":"library","homepage":"http://datarobot.com","github":null,"docs":"https://docs.datarobot.com/en/docs/mlops/deployment/mlops-agent/spooler.html#mlops-library-configuration","changelog":null,"pypi":"https://pypi.org/project/datarobot-mlops/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml","observability","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"import_fail","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-07-10","install_tag":null}}