Celery 3.0+ integration for Flask (Python 3 version)
Project description
Celery: http://celeryproject.org
Using Flask-Celery
You can easily add Celery to your flask application like this:
app.py:
from flask_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
If your flask application has complex condition, you can refer to the example https://github.com/taogeT/flask-celery/tree/master/example.
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Flask-Celery-py3-0.2.2.tar.gz.
File metadata
- Download URL: Flask-Celery-py3-0.2.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bc319b53390f85373a4cca17b89356b7bc2683b5eb00cf19e1aae0707f95586
|
|
| MD5 |
c03b05d0e428a9aafae353b8b3103ef1
|
|
| BLAKE2b-256 |
6d63d6ce04cfea6b2ebf7b82d0e00f7fa1fb1524a7946ef9dfe955d6d1d78250
|
File details
Details for the file Flask-Celery-py3-0.2.2.linux-x86_64.tar.gz.
File metadata
- Download URL: Flask-Celery-py3-0.2.2.linux-x86_64.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee2b895554f9ba799d5b139082067f138dbf90ed0c888ffdd0d466311eae3212
|
|
| MD5 |
7723f9492b7a0e9a95a0673f919b43b3
|
|
| BLAKE2b-256 |
280862440ff0310793359f836517122716e03753f156a57882a7d538da460049
|
File details
Details for the file Flask-Celery-py3-0.2.2-1.src.rpm.
File metadata
- Download URL: Flask-Celery-py3-0.2.2-1.src.rpm
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65a11dfb2429907b2dc6d205b4e858784180947490d3df60942cb32116fafca4
|
|
| MD5 |
5c615403881af3a6a7f30484830d306b
|
|
| BLAKE2b-256 |
69fc2ee5eb732aa827f60445d85309be93d9780126a795a123abe39a752e0f1a
|
File details
Details for the file Flask-Celery-py3-0.2.2-1.noarch.rpm.
File metadata
- Download URL: Flask-Celery-py3-0.2.2-1.noarch.rpm
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7209a327eaa47b15e1f563657ec260886e096ff4be7941469c47672edac4b797
|
|
| MD5 |
c4be7b06c331c2fbc1577947df173f3b
|
|
| BLAKE2b-256 |
3b1c78108bbe41817cb597f026adf04ebeb244d7b65d96df283230b94bcadba3
|