Connecting an Analytics Case to a Python Script

You can connect Python to Results Analytics to enable the use of scripting APIs.


Before you begin:

Prepare your Python environment:

  1. Ensure that you have a local Python installation.
  2. Install py4j and requests with a package manager such as pip.

    For example, from a command line, enter pip install py4j.

  3. Install the Results Analytics scripting module using the wheel file located at pip install Install Locationwin_b64/reffiles/SMAMDOPython/dist/ResultsAnalytics-1.0-py3-none-any.whl

    If using pip, this command will be: pip install Install Locationwin_b64/reffiles/SMAMDOPython/dist/ResultsAnalytics-1.0-py3-none-any.whl

  4. Add Install Locationwin_b64\reffiles\SMAMDOPython to your PYTHONPATH, where Install Location is the file location of your 3DOrchestrate Station installation.

Prepare Results Analytics:

  1. Upload an analytics case to Results Analytics. For more information, see About Data Source Import.
  2. Ensure that Results Analytics is connected to a 3DOrchestrate localhost station. The scripting API is not supported on public (Regular) and remote stations.
See Also
About Results Analytics Scripting
  1. Open a Python editor such as an IDE or notebook.
  2. From Results Analytics, run an analytics case.
  3. From the upper right of Results Analytics, click Connect .
  4. Click Copy to copy the string to your clipboard.
  5. Paste the string into the top of a Python script.

Result: You can now begin using the provided API calls to interact with your analytics case.

Every time you run an analytics case, you must copy a new connection code from the Connect dialog box into your script.