chaining-0.0.2
توضیحات
Package that implements functional chaining in Python, which behaves like JavaScript
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | chaining-0.0.2 |
| نام | chaining |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Junho Yeo |
| ایمیل نویسنده | hanaro0704@gmail.com |
| آدرس صفحه اصلی | https://github.com/junhoyeo/chaining |
| آدرس اینترنتی | https://pypi.org/project/chaining/ |
| مجوز | MIT |
# ⛓ Chaining
[](https://www.python.org/)
[](https://pypi.org/project/chaining/)
[](https://github.com/junhoyeo/chaining/blob/master/LICENSE)
[](https://badge.fury.io/py/chaining)
[](https://pypistats.org/packages/chaining)
> Package that implements functional chaining in Python, which behaves like JavaScript
## 📦 Installation
This package is not ready to be used in production; There are lots of things still left to be implemented and optimized!
```bash
# only python 3.6 or newer
pip3 install chaining
```
## 🔥 Action
### ChainList
```python
>>> from chaining import ChainList
>>> array = ChainList([1, 2, 3])
>>> array.length
3
>>> array.map(lambda item: item * 2)
<ChainList [2, 4, 6]>
>>> other_array = ChainList._from('chain').map(lambda item, idx: ord(item) + idx)
>>> other_array.iterable
[99, 105, 99, 108, 114]
>>> array.concat(other_array)
<ChainList [1, 2, 3, 99, 105, 99, 108, 114]>
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl chaining-0.0.2:
pip install chaining-0.0.2.whl
نصب پکیج tar.gz chaining-0.0.2:
pip install chaining-0.0.2.tar.gz