Pipeline Support¶
API¶
Support for pipeline actions.
Constructor ¶
Bases: PipelineFactory
A pipeline action factory generating init calls.
Source code in src/gapper/core/pipeline_support.py
Function ¶
Bases: PipelineFactory
A pipeline action factory generating function calls.
Source code in src/gapper/core/pipeline_support.py
FunctionEntry ¶
Bases: PipelineBase
Source code in src/gapper/core/pipeline_support.py
__call__ ¶
Call the function on the object.
Source code in src/gapper/core/pipeline_support.py
PipelineBase ¶
A pipeline action base class. All pipeline actions should inherit from this class.
Source code in src/gapper/core/pipeline_support.py
replace property
¶
Whether to replace the piped object with the result of the pipeline action.
__call__ ¶
__init__ ¶
A pipeline base class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name | str | The name of the attribute to be extracted from the piped object. | required |
_pipeline_replace | bool | Whether to replace the piped object with the result of the pipeline. | False |
args | The arguments to pass to the attribute. | () |
Source code in src/gapper/core/pipeline_support.py
PipelineFactory ¶
A pipeline action factory base class. All pipeline action factories should inherit from this class.
The semantics of a pipeline action factory is to generate a pipeline action when called. That is
pipeline_factory = PipelineFactory(name)
pipeline_action = pipeline_factory(*args, **kwargs)
@test_case(
pipeline_action,
pipeline_factory(*args, **kwargs),
)
...
Attributes:
Name | Type | Description |
---|---|---|
ValueType | Type[PipelineBase] | The type of the pipeline action generated by the factory. |
Source code in src/gapper/core/pipeline_support.py
Property ¶
Bases: PipelineBase
A pipeline action factory generating property lookups.