core.script.run_python
Execute a Python script.
Inputs
Python script to execute. Must contain at least one function. If multiple functions are defined, one must be named ‘main’. Returns the output of the function.
Whether to allow network access during script execution. Default is False. Note: package installation always has network access.Default:
false.Optional list of Python package dependencies to install via pip. Packages are cached between executions for performance.Default:
null.Environment variables to set in the sandbox. Use this to inject secrets or configuration.Default:
null.Input data passed as function arguments to the main function. Keys must match the parameter names in the function signature. Missing parameters will receive
None.Default: null.Maximum execution time in seconds. Default is 300 seconds (5 minutes).Default:
300.