cars.pipelines.pipeline
This module contains class pipeline factory.
Module Contents
Classes
Pipeline factory: |
- class cars.pipelines.pipeline.Pipeline
Pipeline factory: A class designed for registered all available Cars Pipeline and instantiate when needed.
- available_pipeline
- classmethod create_pipeline(name: str, cfg: Dict[str, Union[str, int]], config_json_dir)
Factory command to create the pipeline Return the instance of pipeline associated with the pipeline name given as parameter
- Parameters
pipeline_name (str) – name of the pipeline.
cfg (dictionary) – cars input configuration
config_json_dir (str) – path to dir containing json
- classmethod print_available_pipelines()
Print all registered pipelines
- classmethod register(pipeline_name: str)
Allows to register the pipeline with its name :param pipeline_name: the pipeline to be registered :type pipeline_name: string