src.toolbox.steps#

This module contains the logic to dynamically discover and register step implementations, and to instantiate them in a config-aware way.

Submodules#

Attributes#

REGISTERED_STEPS

Registry of explicitly registered step classes.

REGISTERED_QC

Registry of explicitly registered QC test classes.

STEP_CLASSES

Dictionary mapping step names to their implementing classes.

QC_CLASSES

Dictionary mapping QC test names to their implementing classes.

Functions#

discover_steps()

Dynamically discover and import step modules from the custom directory.

create_step(step_config[, context])

Factory to create a Step instance from a dictionary or YAML file.

Package Contents#

src.toolbox.steps.REGISTERED_STEPS[source]#

Registry of explicitly registered step classes.

src.toolbox.steps.REGISTERED_QC[source]#

Registry of explicitly registered QC test classes.

src.toolbox.steps.STEP_CLASSES[source]#

Dictionary mapping step names to their implementing classes.

src.toolbox.steps.QC_CLASSES[source]#

Dictionary mapping QC test names to their implementing classes.

src.toolbox.steps.discover_steps()[source]#

Dynamically discover and import step modules from the custom directory. This populates the global STEP_CLASSES and QC_CLASSES registries for use elsewhere.

src.toolbox.steps.create_step(step_config, context=None)[source]#

Factory to create a Step instance from a dictionary or YAML file.

Parameters:
  • step_config (dict | str) –

    • If dict: must contain at least {‘name’: <step_name>}.

    • If str: path to a YAML file describing the step.

  • context (dict | None) – Shared context passed through the pipeline.

Returns:

An instantiated, config-aware step.

Return type:

BaseStep