Class ExternalPythonExecutionStrategy

java.lang.Object
ai.nervemind.app.executor.script.ExternalPythonExecutionStrategy
All Implemented Interfaces:
ScriptExecutionStrategy

@Component public class ExternalPythonExecutionStrategy extends Object implements ScriptExecutionStrategy
External Python execution strategy using subprocess.

Executes Python code using the user's installed Python interpreter via subprocess. This provides full access to the Python ecosystem including pip-installed packages.

Features

  • Full Python standard library access
  • pip packages available
  • Any Python version supported (3.8+)
  • Virtual environment support

Limitations

  • Requires Python to be installed
  • Slower startup than embedded mode
  • Less sandboxed (can access filesystem)

Available Globals

  • input / $input - Data from previous nodes (dict)
  • node / $node - Current node parameters (dict)

Example

import json

# Access input data
items = input.get('items', [])

# Use any Python feature
result = {
    'count': len(items),
    'processed': [x.upper() for x in items]
}
return result