51Degrees Pipeline Python  4.1Newer Version 4.2

51Degrees Pipeline for Python
  • pipeline-python
  • fiftyone_pipeline_core
  • fiftyone_pipeline_core
  • pipelinebuilder
  • PipelineBuilder

pipeline-python.fiftyone_pipeline_core.fiftyone_pipeline_core.pipelinebuilder.PipelineBuilder Class Reference

Detailed Description

A PipelineBuilder generates a Pipeline object
Before construction of the Pipeline, FlowElements are added to it
There are also options for how JavaScript is output from the Pipeline

Public Member Functions

def  __init__ (self, settings={})
def  get_javascript_elements (self)
def  add (self, flow_element)
def  build (self)
def  add_logger (self, logger)

Public Attributes


Constructor & Destructor Documentation

◆ __init__()

def pipeline-python.fiftyone_pipeline_core.fiftyone_pipeline_core.pipelinebuilder.PipelineBuilder.__init__ (   self,
  settings = {}  
Pipeline Builder constructor.
@type settings: dictionary
@param settings : settings for the pipeline builder including:
`addJavaScriptBuilder (Bool)` - Whether to add the JavaScriptBuilder to the pipeline
(default true)
`javascriptBuilderSettings (dict)` - Settings for the JavaScriptBuilder engine 
@rtype: PipelineBuilder
@return: Returns a Pipeline Builder

Member Function Documentation

◆ add()

def pipeline-python.fiftyone_pipeline_core.fiftyone_pipeline_core.pipelinebuilder.PipelineBuilder.add (   self,
Add a flow_element to a list of flowElements be used in a pipeline.

@type flow_element: FlowElement
@param flow_element: flowElement to be added to the pipeline

@rtype: PipelineBuilder
@return: Returns the pipleine builder with the specified flowElement added to it's list of flowElements.

◆ add_logger()

def pipeline-python.fiftyone_pipeline_core.fiftyone_pipeline_core.pipelinebuilder.PipelineBuilder.add_logger (   self,
Add an instance of the logger class to the pipeline.

@type logger: Logger
@param logger: Logger to be added to the pipeline

@rtype: PipelineBuilder
@return: Returns the pipeline builder with the specified Logger added.

◆ build()

def pipeline-python.fiftyone_pipeline_core.fiftyone_pipeline_core.pipelinebuilder.PipelineBuilder.build (   self )
Construct an immutable Pipeline using the list of flowElements, (Engines) and (Logger) currently in this Pipeline Builder.
Call build after all items to be included in the pipeline have been added.

@rtype: Pipeline
@return: Returns a Pipeline

◆ get_javascript_elements()

def pipeline-python.fiftyone_pipeline_core.fiftyone_pipeline_core.pipelinebuilder.PipelineBuilder.get_javascript_elements (   self )
Adds the JavaScriptBuilder, JSONBundler and SequenceElement to the pipeline if
If addJavascriptBuilder is set to true (the default)
@rtype: list
@return: Returns a list of FlowElements