➡️ Pipe fp
Functional piping for Python.
Simple ⬦ Clear ⬦ Concise

Background
Piping is a method targeting code composition style, taking input data and passing it through a series of functions to produce a final output data.
Usage
Pipe fp is a tool to compose code in a simple, clear, and concise manner.
Features
- Composable pipelines; build it.
- Lazy evaluation; call any time later.
- Lambda functions with type hinting via generics! ✨
Example
Without Generics
from pipe_fp import pipe
pipe(
str.lower,
str.title,
str.split
)('WHY, HELLO THERE! 🐰')
Returns
['Why,', 'Hello', 'There!', '🐰']
Using Generics
from pipe_fp import pipe
pipe[str](
lambda msg: msg.lower(),
lambda msg: msg.title(),
lambda msg: msg.split()
)('WHY, HELLO THERE! 🐰')
Returns
['Why,', 'Hello', 'There!', '🐰']