Celery 3.0+ integration for Flask (Python 3 version)
Project description
- Python:
3.4+
- Celery:
3.0.0+
Celery: http://celeryproject.org
Using Flask-Celery
You can easily add Celery to your flask application like this:
app.py:
from flask.ext.celery import Celery celery = Celery() def create_app(): app = Flask(__name__) celery.init_app(app) return app @celery.task def add(x, y): return x + y
To start the worker you can then launch the celery worker command by pointing to your celery app instance:
$ celery -A app:celery worker -l info
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-Celery-py3-0.1.2.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for Flask_Celery_py3-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4d91436ced80e08ca6c111502dce66e5c33314f587af9958db3d87154e27fc2 |
|
MD5 | a0bb93a39b494e2e2cf07321f1f2d49c |
|
BLAKE2b-256 | 1ef17f7d60dc0e72946533f1b74cfea1a5c41874e2ae5957445484181f29d131 |