Step (autotransform.step.base)

The base class and associated classes for Step components.

class autotransform.step.base.Step

Bases: NamedComponent

The base for Step components. Used by AutoTransform to manage outstanding Changes, determining what actions to take.

name

The name of the component.

Type:

ClassVar[StepName]

abstract continue_management(change: Change) bool

Checks if management should be continued after this Step when Actions were provided.

Parameters:

change (Change) – The Change the Step is running against.

Returns:

Whether to continue management.

Return type:

bool

abstract get_actions(change: Change) List[Action]

Checks the Change to determine what actions should be taken. If no Actions are returned, the Step is considered skipped.

Parameters:

change (Change) – The Change the Step is running against.

Returns:

The Actions the Step wants to take.

Return type:

List[Action]

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_fields: ClassVar[dict[str, FieldInfo]] = {}

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.

name: ClassVar[StepName]
class autotransform.step.base.StepName(value)

Bases: str, Enum

A simple enum for mapping.

CONDITIONAL = 'conditional'