Developer Transformation Guide > Python Transformation > Python Transformation Ports
  

Python Transformation Ports

A Python transformation can have input and output ports.
To create and edit ports for a non-reusable Python transformation, use the Ports tab in the editor. To create and edit ports for a reusable Python transformation, use the Overview view in the editor. After you add ports to the transformation, you can use the port names as variables in the Python code.
Use the following rules to create input and output ports:
You cannot configure user-defined default values in output ports in the Python transformation. Set user-defined default values in the Python code.
For example, you can write output_port = 'value' to set the default value 'value' for the output port output_port.