Tools for extended function composition and pipelines
Project description
function-pipe
The function-pipe Python module defines the class FunctionNode (FN) and decorators to create the derived-class PipeNode (PN). FNs are wrappers of callables that permit returning new FNs after applying operators, composing callables, or partialing. This supports the flexible combination of functions in a lazy and declarative manner.
PipeNodes (PNs) are FNs prepared for extended function composition or dataflow programming. PNs, through a decorator-provided, two-stage calling mechanism, expose to wrapped functions both predecessor output and a common initial input. Rather than strictly linear pipelines, sequences of PNs can be stored and reused; PNs can be provided as arguments to other PNs; and results from PNs can be stored for later recall in the same pipeline.
Code: https://github.com/InvestmentSystems/function-pipe
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for function_pipe-2.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 996282b87f2034a395918f0641467f94271e4e79e565d5768b37b09e7cc37bac |
|
MD5 | f9f4975334625de2ba13d35abe0d1e17 |
|
BLAKE2b-256 | e8a82554618ecd7b6f1e7b2cf8e3fdc58ddab21f3a415ffcf2c47c7a105b5a1d |