{"id":23514,"library":"datarobot-predict","title":"DataRobot Predict","description":"A lightweight Python library for scoring predictions with DataRobot models. It provides a simple API to interact with DataRobot's prediction server, supporting both REST and batch predictions. Current version: 1.13.5, maintained by DataRobot. Release cadence is irregular.","status":"active","version":"1.13.5","language":"python","source_language":"en","source_url":"https://github.com/datarobot/datarobot-predict","tags":["prediction","machine learning","datarobot","scoring"],"install":[{"cmd":"pip install datarobot-predict","lang":"bash","label":"core"},{"cmd":"pip install datarobot-predict[examples]","lang":"bash","label":"with examples"}],"dependencies":[],"imports":[{"wrong":"from datarobot_predict import ScoreClient","symbol":"TimeSeriesType","correct":"from datarobot_predict import TimeSeriesType"}],"quickstart":{"code":"from datarobot_predict import ScoreClient\n\nclient = ScoreClient(\n    endpoint='https://example.datarobot.com/predApi/v1.0/deployments/<deployment_id>/predictions',\n    api_key=os.environ.get('DATAROBOT_API_KEY', ''),\n    max_prediction_time=30\n)\n# Single prediction\nresponse = client.predict(data={'feature1': 'value1', 'feature2': 123})\nprint(response)\n\n# Batch predictions\nbatch_data = [{'feature1': 'a', 'feature2': 1}, {'feature1': 'b', 'feature2': 2}]\nbatch_response = client.predict_batch(batch_data)\nprint(batch_response)","lang":"python","description":"Creates a ScoreClient and makes a single prediction or batch predictions. Endpoint includes deployment ID. API key should be set in environment."},"warnings":[{"fix":"Construct endpoint URL as 'https://app.datarobot.com/predApi/v1.0/deployments/{deployment_id}/predictions' and pass it as 'endpoint' parameter.","message":"In v1.12+, the 'ScoreClient' no longer accepts 'deployment_id' as a separate argument; you must include the full endpoint URL with deployment ID. Old code that passed deployment_id separately will break.","severity":"breaking","affected_versions":">=1.12.0"},{"fix":"Use 'api_key' parameter instead of 'username' and 'password'.","message":"In v1.10+, the default authentication method changed to use 'api_key' parameter. The old 'username' and 'password' parameters are deprecated and will raise an error if used.","severity":"breaking","affected_versions":">=1.10.0"},{"fix":"Use 'response.json()' to get a dict or access attributes directly.","message":"The 'predict' method returns a 'PredictionResponse' object, not a dict. Access fields like 'response.predictions' or convert with 'response.json()'.","severity":"gotcha","affected_versions":"all"},{"fix":"For single prediction: client.predict(data={'feature1': 'value'}). For multiple: client.predict_batch([{'feature1': 'value1'}, ...])","message":"If you pass a single row as a list, the library might misinterpret it as multiple rows. Always wrap a single row in a list or use 'predict' for a single dict.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'1.13.5':33 'api':17 'batch':29 'cadenc':38 'current':31 'datarobot':1,11,21,36,44 'interact':19 'irregular':40 'learn':43 'librari':6 'lightweight':4 'machin':42 'maintain':34 'model':12 'predict':2,9,23,30,41 'provid':14 'python':5 'releas':37 'rest':27 'score':8,45 'server':24 'simpl':16 'support':25 'version':32","created_at":"2026-05-01T08:08:10.666508+00:00","updated_at":"2026-05-01T08:08:10.666508+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"1.13.5","cli_name":"","cli_version":null,"type":"library","homepage":"https://www.datarobot.com","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/datarobot-predict/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml","http-networking"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}