executor
flavor.psp.format_2025.executor
¶
PSPF 2025 Bundle Executor Handles process execution with environment setup and variable substitution.
Classes¶
BundleExecutor
¶
Executes PSPF bundles with proper environment and substitution.
Initialize executor with metadata and work environment.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
metadata
|
dict[str, Any]
|
Bundle metadata containing execution configuration |
required |
workenv_dir
|
Path
|
Path to the extracted work environment |
required |
Source code in flavor/psp/format_2025/executor.py
Functions¶
execute
¶
Execute the bundle command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
list[str] | None
|
Command line arguments to pass to the executable |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict[str, Any]
|
Execution result with exit_code, stdout, stderr, etc. |
Source code in flavor/psp/format_2025/executor.py
prepare_command
¶
Prepare command with substitutions and arguments.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
base_command
|
str
|
Command template with placeholders |
required |
args
|
list[str] | None
|
Additional arguments to append |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Prepared command ready for execution |
Source code in flavor/psp/format_2025/executor.py
prepare_environment
¶
Prepare environment variables for execution.
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict[str, str]
|
Environment variables including FLAVOR_* vars |