An open API service indexing awesome lists of open source software.

https://github.com/fengb/pype

Python pipeline operator
https://github.com/fengb/pype

Last synced: about 2 months ago
JSON representation

Python pipeline operator

Awesome Lists containing this project

README

          

# pype

Silly experiment to add Elixir's pipeline operator into Python.

## Example usage

```python
>>> import pype

>>> ([1, 2, 3, 4, 5]
... | pype.l(filter, lambda x: x%2 == 1)
... | pype.l(map, lambda x: x**2)
... )
[1, 9, 25]
```