Skip to main content

Tools for extended function composition and pipelines

Project description

https://img.shields.io/pypi/pyversions/function-pipe.svg https://img.shields.io/pypi/v/function-pipe.svg https://img.shields.io/codecov/c/github/InvestmentSystems/function-pipe.svg https://img.shields.io/github/workflow/status/InvestmentSystems/function-pipe/Test?label=test&logo=Github https://img.shields.io/github/workflow/status/InvestmentSystems/function-pipe/Quality?label=quality&logo=Github https://img.shields.io/readthedocs/function-pipe.svg https://img.shields.io/pypi/status/function-pipe.svg

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

Docs: http://function-pipe.readthedocs.io

Packages: https://pypi.python.org/pypi/function-pipe

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

function-pipe-2.1.2.tar.gz (20.7 kB view details)

Uploaded Source

File details

Details for the file function-pipe-2.1.2.tar.gz.

File metadata

  • Download URL: function-pipe-2.1.2.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.12

File hashes

Hashes for function-pipe-2.1.2.tar.gz
Algorithm Hash digest
SHA256 66dfae5fae07ff5868b9480622a04ed22f2d8b50d6f079bb085b892251c8420b
MD5 6acb100c4889c9bdde98adc9f94cb4ee
BLAKE2b-256 3c7e124038d3d043ccbd30a090a689c29f2e769da9311d2b02f4cadf099523d1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page