callchain-0.2.6
توضیحات
callables and components joined in one big happy chain
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | callchain-0.2.6 |
| نام | callchain |
| نسخه کتابخانه | 0.2.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | L. C. Rees |
| ایمیل نویسنده | lcrees@gmail.com |
| آدرس صفحه اصلی | https://bitbucket.org/lcrees/callchain |
| آدرس اینترنتی | https://pypi.org/project/callchain/ |
| مجوز | BSD |
Lets arbitrary callables, components, and event listeners be stringed into one lazily evaluated processing chain.
Some highly contrived examples:
`chain <https://en.wikipedia.org/wiki/Fluent_interface>`_ style:
>>> from callchain import aachainq as chainq
>>> chainqueue = chainq()
>>> chainqueue(('a', 1), ('b', 2), ('c', 3)).reup().wrap(dict).map().value()
{'a': 1, 'b': 2, 'c': 3}
Object-oriented style:
>>> chainqueue(('a', 1), ('b', 2), ('c', 3))
>>> chainqueue.reup()
>>> chainqueue.wrap(dict)
>>> chainqueue.map()
>>> chainqueue.value()
{'a': 1, 'b': 2, 'c': 3}
Mirrored at https://github.com/lcrees/callchain/
نحوه نصب
نصب پکیج whl callchain-0.2.6:
pip install callchain-0.2.6.whl
نصب پکیج tar.gz callchain-0.2.6:
pip install callchain-0.2.6.tar.gz