Reuseable Pipes
Project description
plmbr
Type safe, reusable pipes to process streams of data.
from plmbr.pipes import *
if __name__ == '__main__':
double: Pipe[int, int] = transform(lambda i: i * 2)
half: Pipe[int, int] = transform(lambda i: i // 2)
ge5: Pipe[int, int] = keep(lambda i: i >= 5)
(
range(10)
- ge5
+ [
double,
half
]
> log()
)
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
plmbr-0.0.0.tar.gz
(3.0 kB
view hashes)