Skip to main content

Functional Pipelines implemented in python

Project description

# Functional Pipeline

Functional languages like Haskell, Elixir, and Elm have pipe functions that allow
the results of one function to be passed to the next function.

Using functions from `functools`, we can build composition in python, however it is not
nearly as elegant as a well thought out pipeline.

This library is designed to make the creation of a functional pipeline easier in python.

```python
from operators import add, multiply
from functional_pipeline import pipeline, tap

result = pipeline(
10,
[
(add, 1),
(multiply, 2)
]
)
print(result) # 22
```

This pattern can be extended for easily dealing with lists or generators.

```python
from functional_pipeline import pipeline, String

names = [
"John",
"James",
"Bill",
"Tiffany",
"Jamie",
]

```


Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

functional_pipeline-0.1.0-py2.py3-none-any.whl (3.9 kB view hashes)

Uploaded py2 py3

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