Functional Pipeline
URL:
Pypi: https://pypi.org/project/functional-pipeline/
Gitlab: https://gitlab.com/mc706/functional-pipeline
Description
A tool to make writing pipelines of functions and composing functions to write and read. I wrote a series on the development on this:
In a nutshell it allows you to replace nosy code like:
1 | starting = get_data_from_remote() |
or possibly more cleanly without the intermediate values:
1 | process_final_result( |
into clean and easier to reason about code like:
1 | final = pipeline( |
It also has first class support for generators allowing for lazy evaluation
and trivial support for parallelism using multiprocessing.Pool.map
Technologies:
- Python
- Function Composition
Setup
1 | $ pip install functional-pipeline |