wecatch asynctask
Project description
# asynctask
[![Build Status](https://api.travis-ci.org/listen-lavender/asynctask.svg?branch=master)](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*.
[![Build Status](https://api.travis-ci.org/listen-lavender/asynctask.svg?branch=master)](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*.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
asynctask-0.0.4.tar.gz
(5.2 kB
view details)
File details
Details for the file asynctask-0.0.4.tar.gz
.
File metadata
- Download URL: asynctask-0.0.4.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21030375b9c7f80e3b470f861159e4e63689634d92366a52c0248a5622a63098 |
|
MD5 | e32885c2e312b2947216aa1457c44024 |
|
BLAKE2b-256 | c993e8b55d3f5f0068808d2daa48d23f7eeb6cd4326db594bb6a03d67747e8c9 |