CHAP.processor

File : processor.py Author : Valentin Kuznetsov Description: Processor module

Define a generic Processor object.

Module Contents

Classes

Processor

Generic data processor.

OptionParser

User based option parser

Functions

main

Main function

API

class CHAP.processor.Processor

Bases: CHAP.pipeline.PipelineItem

Generic data processor.

The job of any Processor in a Pipeline is to receive data returned by the previous PipelineItem, process it in some way, and return the result for the next PipelineItem 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