| Change type | Description |
|---|---|
| Introduced in version 3.18 | A new Python node, based on Python 3, is now available for use in data flows. |
The node accesses the Python APIs to perform tasks that cannot be accomplished via standard
nodes. It runs custom Python code within a node as part of a data flow. To do this, your code
needs to be inside a class that extends the BaseNode class. Also, make sure
the class name is specified in the PythonClass property. The node uses
Python 3 version.
Properties
PythonCode
Enter the Python code to execute. The code must contain a class that extends the
BaseNode class, and the class name must be referenced in the
PythonClass property.
PythonPath
Specify the Python path to use for custom modules that points to the lib/python3 directory in the site path. Generally, it is recommended to install third-party libraries into this location by performing the steps outlined in the Installing Python modules. However, the PythonPath can also be extended to add locations referencing data collections or data directories visible within the Analyze directory, especially if Python scripts and modules are to be maintained within Analyze data collections. The internal PythonPath, which points to the Python in the installation directory, will be appended to anything provided in this list.
PythonClass
Specify the name of the Python class containing the node code to execute. This must match
the class name used in the PythonCode property and should not need to be
changed unless the name of the class in the PythonCode property
changes.
Example data flows
A number of sample Data Flows are available from the Samples workspace, found in the Analyze Directory page.
In the Directory under the /Data360 Samples/Node Examples/ folder, you
will find "Processing Data with Python 3", which shows examples of how to use this node.
Inputs and outputs
Inputs: Multiple optional.
Outputs: Multiple optional.
Python node API documentation
Access the Python node API documentation to work with Python classes and functions. It helps you process data from node inputs and outputs, get properties, and log information. This documentation is available in the installed version of the help.