Tools for extended function composition and pipelines
Project description
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. 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-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4ab7c3872490e2a3093ff92a2e085fe54df45ffed6b0a0af793d5b856d8b489 |
|
MD5 | 276878d6b7b5ea1f3ac1c1d7913e8258 |
|
BLAKE2b-256 | ed7a0d2a75d9604fd79e7b57a297a5102a48991b9e84c95d6c57c74a4b7e3129 |