Skip to main content
Jeremias Meister - Tools & Pipeline

Action Scripting

Execute Python Script

Executes a Python script using a specified interpreter and outputs the result. ⚠️ Security Warning: This node executes arbitrary code. Note: Scripts inherit environment variables from the Succession process. Sensitive env vars (like API keys set in the parent process) will be accessible to scripts.

Node IDExecutePythonScriptAction

Parameters

ParameterTypeRequiredDefaultDescription
Python Interpreter pythonInterpreter string No python Path to the Python interpreter. Defaults to the 'python' command in the system's PATH.
Script Content scriptContent textarea Yes — The raw text of the Python script. Can be set by a data connection.
Working Directory workingDirectory string No — Optional. The path to the directory where the script should run.
Fail on Non-Zero Exit Code failOnNonZeroExit boolean No true If true, the action is marked as 'Failure' if the script returns any exit code other than 0.

Inputs

InputTypeRequiredDescription
Execute input0 object Yes An incoming execution signal.

Outputs

OutputTypeIdentifierDescription
stdout output0 object stdout Emits a standard data object containing the script's standard output as a string.
stderr output1 object stderr Emits a standard data object containing the script's standard error as a string.
Exit Code output2 object exit_code Emits a standard data object containing the script's integer exit code.