methodflow package¶
Submodules¶
methodflow.pipeline module¶
- class methodflow.pipeline.PipelineMixin[source]¶
Bases:
objectDecorator and methods for building a processing pipeline.
- execute_pipeline(*args, **kwargs) Any[source]¶
Execute the pipeline.
The arguments are passed to the starting preprocess steps.
- static op(condition: str | None = '') Callable[[Callable], ProcessStep][source]¶
Decorator for registering a preprocess method.
This needs to be the top-most decorator if using stacked decorators (e.g. @classmethod, @staticmethod).
- Parameters:
condition (str) – Comma separated string of attribute names used as predicates for the annotated method. The method will run if all the predicates are True at runtime.