Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The Python Connector agent configuration has three tabs: General, API, and MIM.

General Tab

The Python Connector agent - General tab

...

Setting
Description

Host

The IP address or hostname to which the Python Connector will bind. If left empty, the Python Connector binds to all IP addresses available on the system.

Port

The port number on which the Python Connector will bind. Ensure that the port is not used by other applications.

Allow Multiple ConnectionsIf enabled, several connections are allowed simultaneously. If disabled, only one at a time is allowed.
Number of Connections AllowedIf Allow Multiple Connections is enabled, the maximum number of simultaneous connections is specified as a number between 0 and 99999.
Use Connection Control

Select this option if you want to control connection requests individually. If you select this option, you may need to make a selection for Route Connection Requests on. See the description below.

Route Connection Requests onSelect on which route you want to route connection requests when a user requests to connect. Select one of the possible routes listed in the drop-down list.
Use per Connection RoutingSelect this check box if you want to control what each individual connection is routing.
Use TLS

Select this check box if you want to use TLS. When you select this check box, the fields under Security are enabled.

If you want connections to use SSL, see 9.6362.6.3.35 5 Connecting Using SSL.

Keystore PathEnter the path to the keystore in this field.
Keystore PasswordEnter the password for the keystore in this field.
Key AliasEnter the alias for the key in the keystore in this field. This field is optional
Key PasswordEnter the password for the key alias in this field. This field is optional.
Require Client AuthenticationSelect this check box if you require client authentication from all connecting clients.

Accepted Types

Select which data types are to be accepted by the Python Connector agent. You can select UDR types or bytearrays.

Output RoutesEnter which route accepts what data type.

...

You can use __all__ = ['<name1>', '<name2>', ..] to only expose the names listed as the API instead of adding to the default API. See the example shown in the image below. The Python Language Service tool must be running to enable the Compilation Test. For further information, see 9.50.4 Python Language Service.

For further information on writing code in the API tab, see 9.6263.5 Python Writer's Guide.

Python Connector agent - API tab

...

Info
titleExample - Interaction via Python Connector agent

The Python Connector agent is configured to accept DRUDR types.

The Analysis agent is configured to debug the input and send UDRs to route r_2 back to the Python Connector agent.

As shown below, you can trigger activity in the workflow using an exploration tool, Jupyter Notebook is used in this example.




Scroll ignore
scroll-viewportfalse
scroll-pdftrue
scroll-officefalse
scroll-chmtrue
scroll-docbooktrue
scroll-eclipsehelptrue
scroll-epubtrue
scroll-htmlfalse


Next: