asynctask-0.0.5
توضیحات
wecatch asynctask
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | asynctask-0.0.5 |
| نام | asynctask |
| نسخه کتابخانه | 0.0.5 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | haokuan |
| ایمیل نویسنده | jingdaohao@gmail.com |
| آدرس صفحه اصلی | https://github.com/listen-lavender/asynctask |
| آدرس اینترنتی | https://pypi.org/project/asynctask/ |
| مجوز | UNKNOWN |
# asynctask
[](https://api.travis-ci.org/listen-lavender/asynctask)
Best practice of celery.
## celery app connection setting
asynctask/setting.py
## task connection setting
asynctask/db.py
# Getting started
No example now.
## Installation
To install asynctask, simply:
````bash
$ cd asynctask
$ python setup.py install
````
````bash
$ celery -A asynctask worker --loglevel=info
````
````python
>>> from asynctask.unit.project.test import add, insert
>>> add()
>>> insert()
>>> add.apply_async()
>>> insert.apply_async()
````
or
````python
>>> from asynctask.celery import send_task
>>> send_task('asynctask.unit.project.test.add')
````
````mongo
> use test
> db.resource.find()
````
## Discussion and support
Report bugs on the *GitHub issue tracker <https://github.com/listen-lavender/asynctask/issues*.
نحوه نصب
نصب پکیج whl asynctask-0.0.5:
pip install asynctask-0.0.5.whl
نصب پکیج tar.gz asynctask-0.0.5:
pip install asynctask-0.0.5.tar.gz