aiorecycle-0.0.2
توضیحات
A decorator to recycle tasks in the event loop
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aiorecycle-0.0.2 |
| نام | aiorecycle |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Maxim Pyatishev |
| ایمیل نویسنده | mpyatishev@gmail.com |
| آدرس صفحه اصلی | https://github.com/mpyatishev/aiorecycle |
| آدرس اینترنتی | https://pypi.org/project/aiorecycle/ |
| مجوز | - |
==========
aiorecycle
==========
.. image:: https://travis-ci.com/mpyatishev/aiorecycle.svg?branch=master
:target: https://travis-ci.com/mpyatishev/aiorecycle
.. image:: https://codecov.io/gh/mpyatishev/aiorecycle/branch/master/graph/badge.svg
:target: https://codecov.io/gh/mpyatishev/aiorecycle
.. image:: https://img.shields.io/pypi/v/aiorecycle.svg
:target: https://pypi.python.org/pypi/aiorecycle
A decorator to recycle tasks in the event loop
Installation
============
.. code:: bash
pip install aiorecycle
Usage example
=============
.. code:: python
import asyncio
import aiorecycle
@aiorecycle.cycle()
async def task():
if asyncio.get_event_loop().time() % 2 == 0:
print('make some periodic work')
async def main():
await task()
await asyncio.sleep(3) # emulate very important work
if __name__ == "__main__":
asyncio.run(main())
License
=======
``aiorecycle`` library is offered under Apache 2 license.
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl aiorecycle-0.0.2:
pip install aiorecycle-0.0.2.whl
نصب پکیج tar.gz aiorecycle-0.0.2:
pip install aiorecycle-0.0.2.tar.gz