https://github.com/fengb/pype
Python pipeline operator
https://github.com/fengb/pype
Last synced: about 2 months ago
JSON representation
Python pipeline operator
- Host: GitHub
- URL: https://github.com/fengb/pype
- Owner: fengb
- Created: 2018-05-17T15:29:57.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-17T15:31:13.000Z (about 8 years ago)
- Last Synced: 2025-07-29T11:28:15.166Z (10 months ago)
- Language: Python
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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]
```