BaseProcessor

Contents

BaseProcessor#

class processor_tools.processor.BaseProcessor(context: Any | None = None, processor_path: str | None = None, **kwargs)[source]#

Base class for processor implementations

Parameters:
  • context – container object storing configuration values that define the processor state

  • processor_path – location of processor name in subprocessor tree

Methods

__init__

Constructor method

append_subprocessor

Appends instantiation of processor to subprocessors attribute.

run

Runs processor subprocessors sequentially in order, output of each feeding into the next

Attributes

cls_processor_name

Name for processor objects of this class (accessed via processor_name property - will default to the name of the class is if this class attribute is unset.)

cls_subprocessors

Default set of subprocessors for processor objects of this class

processor_name

Returns processor name