Simple wrapper that can make running Python script in CloverDX easier.
The library supports the following operations:
A subgraph is used to wrap an ExecuteScript component that calls Python making use of external scripts more user-friendly. The subgraph allows the user to pass a path to the Python script using a parameter and input parameters via input edge. Script output is returned through the output port.
A component that wraps the ExecuteScript components and helps to run a Python script.
| Parameter name | Description | Required | Default Value |
|---|---|---|---|
| Python script URL | Path to the script which will be executed. | yes | no |
| Script charset | Character set for the input script | yes | UTF-8 |
| Python interpreter URL | Absolute path to the Python interpreter (e.g. /usr/bin/python3) | yes | no |
| Port | Required | Used for | Description |
|---|---|---|---|
| Input 0 | No | Standard input | If the Python script expects data on standard input, input 0 is used. |
| Output 0 | Yes | Standard output | Standard output of the Python script. |
| Output 1 | Yes | Error output | Error output, used in cases of runtime error during the script execution. |
A local Python interpreter must be installed to use PythonExecute component. The path to the Python interpreter must be set as an attribute of the component.