CData Python Connector for DataRobot

Build 21.0.7930

Establishing a Connection

The objects available within our connector are accessible from the "cdata.datarobot" module. In order to use the module's objects directly, the module must first be imported as below:

import cdata.datarobot as mod

From there, the connect() method can be called from the connector object to establish a connection using an appropriate connection string, such as the below:

mod.connect("User=CData;Password=CData;DataRobotKey=123-abc-456-def;PredictionInstance=myinstance.orm.datarobot.com;DataFile=PATH\\TO\\input_file.csv;")

Authenticating to DataRobot API

Various login credentials must be supplied to connect to the standard API and Prediction API of DataRobot.

Authenticating with a Login and API Key

Set the User and Password to your login credentials, and specify PredictionInstance. Additionally, set the APIKey connection property to your API Token, if you have obtained one already. If you are using a Cloud Prediction instance for DataRobot, you will need to supply DataRobotKey as well. To obtain the APIKey, follow the steps below:

  1. Login to the DataRobot UI, and click the person icon in the top right corner of the UI.
  2. From the drop down menu, select "Profile".
  3. Profile information will appear, including your "API Token".

To obtain the DataRobotKey, do the following:

  1. Login to the DataRobot UI, and click "Deployments" in the top-most toolbar.
  2. Open a deployment.
  3. In the deployment's menu, select the "Integrations" tab.
  4. Your DataRobotKey is the second entry in the
    headers
    JSON object.

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930