ProgramExecutionContext

class pyniryo_nate.models.programs.ProgramExecutionContext(environment: dict[str, str], arguments: list[str])[source]

Bases: object

Represents the execution context for a program.

Parameters:
  • environment (dict[str, str]) – Environment variables to set for the program execution.

  • arguments (list[str]) – Command-line arguments to pass to the program.

Attributes

Methods

environment: dict[str, str]
arguments: list[str]
classmethod from_transport_model(model: ProgramExecutionContext) → ProgramExecutionContext[source]
Parameters:

model (ProgramExecutionContext)

Return type:

ProgramExecutionContext

to_transport_model() → ProgramExecutionContext[source]
Return type:

ProgramExecutionContext