CHAP.processor
¶
File : processor.py
Author : Valentin Kuznetsov
Define a generic Processor
object.
Module Contents¶
Classes¶
Generic data processor. |
|
User based option parser |
Functions¶
Main function |
API¶
- class CHAP.processor.Processor¶
Bases:
CHAP.pipeline.PipelineItem
Generic data processor.
The job of any
Processor
in aPipeline
is to receive data returned by the previousPipelineItem
, process it in some way, and return the result for the nextPipelineItem
to use as input.- process(data)¶
Extract the contents of the input data, add a string to it, and return the amended value.
- Parameters:
data – input data
- Returns:
processed data
- class CHAP.processor.OptionParser¶
User based option parser
Initialization
- CHAP.processor.main(opt_parser=OptionParser)¶
Main function