fpiper-0.0.1
توضیحات
A small library providing functional wrappers over Optional and Iterable
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fpiper-0.0.1 |
| نام | fpiper |
| نسخه کتابخانه | 0.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Vladimir Okhotnikov |
| ایمیل نویسنده | vokhotnikov@gmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/fpiper/ |
| مجوز | MIT |
When coming from a functional background, it is normal to miss common
_chainable_ combinators for container types, namely:
- `map`|`fmap`
- `filter`|`where`
- `flatMap`|`bind`|`collect`
This library contains simple wrappers for `Optional` and `Iterable` Python
values which provide just that.
The library is currently in very experimental stage, use at your own risk.
An example:
```
from fpiper import pipe, pipeOpt
x = pipe(myList).filter(lambda x: x > 0).flatMap(lambda x: x*2).run()
y = pipeOpt(loadCustomer).flatMap(validateCustomer).map(submitCustomer).run()
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl fpiper-0.0.1:
pip install fpiper-0.0.1.whl
نصب پکیج tar.gz fpiper-0.0.1:
pip install fpiper-0.0.1.tar.gz