lw_pipeline.Output_Registry#

class lw_pipeline.Output_Registry(step_instance)[source]#

Bases: object

Registry for managing registered outputs in a pipeline step.

This class is used internally by Pipeline_Step to track and filter registered outputs.

__init__(step_instance)[source]#

Initialize the registry for a pipeline step.

Parameters:

step_instance (Pipeline_Step) – The step instance to scan for registered outputs.

Methods

__init__(step_instance)

Initialize the registry for a pipeline step.

get_all()

Get all registered outputs.

get_enabled_by_default()

Get outputs that are enabled by default.

list_outputs([include_disabled])

List all registered outputs with their information.

should_generate(output_name, config)

Determine if an output should be generated.

get_all()[source]#

Get all registered outputs.

Returns:

Dictionary mapping output names to their info.

Return type:

dict

get_enabled_by_default()[source]#

Get outputs that are enabled by default.

Returns:

List of output names enabled by default.

Return type:

list

list_outputs(include_disabled=True)[source]#

List all registered outputs with their information.

Parameters:

include_disabled (bool, optional) – Include outputs that are disabled by default. Default is True.

Returns:

List of tuples (name, description, enabled_by_default).

Return type:

list

should_generate(output_name, config)[source]#

Determine if an output should be generated.

Parameters:
  • output_name (str) – Name of the output to check.

  • config (Config) – Configuration object with outputs_to_generate and outputs_to_skip settings.

Returns:

True if output should be generated.

Return type:

bool