Command (autotransform.command.base)
The base class and associated classes for Command components.
- class autotransform.command.base.Command(*, run_pre_validation: bool = False)
Bases:
NamedComponent
The base for Command components. Used by AutoTransform to perform post-processing operations after validation, such as code generation.
- run_pre_validation
Whether to run the command before validation. Defaults to False.
- Type
bool, optional
- name
The name of the Component.
- Type
ClassVar[CommandName]
- name: ClassVar[CommandName]
- abstract run(batch: Batch, transform_data: Optional[Mapping[str, Any]]) None
Performs the post-processing steps represented by the Command.
- Parameters
batch (Batch) – The Batch for which this Command is run.
transform_data (Optional[Mapping[str, Any]]) – Data from the transformation.
- run_pre_validation: bool