Skip to main content

Celery 3.0+ integration for Flask (Python 3 version)

Project description

https://img.shields.io/pypi/v/Flask-Celery-py3.svg https://img.shields.io/pypi/dm/Flask-Celery-py3.svg https://img.shields.io/pypi/l/Flask-Celery-py3.svg https://img.shields.io/pypi/pyversions/Flask-Celery-py3.svg https://img.shields.io/pypi/status/Flask-Celery-py3.svg

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


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.2.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distributions

Flask-Celery-py3-0.2.2.linux-x86_64.tar.gz (3.0 kB view details)

Uploaded Source

Flask-Celery-py3-0.2.2-1.src.rpm (11.4 kB view details)

Uploaded Source

Flask-Celery-py3-0.2.2-1.noarch.rpm (11.6 kB view details)

Uploaded Source

File details

Details for the file Flask-Celery-py3-0.2.2.tar.gz.

File metadata

File hashes

Hashes for Flask-Celery-py3-0.2.2.tar.gz
Algorithm Hash digest
SHA256 8bc319b53390f85373a4cca17b89356b7bc2683b5eb00cf19e1aae0707f95586
MD5 c03b05d0e428a9aafae353b8b3103ef1
BLAKE2b-256 6d63d6ce04cfea6b2ebf7b82d0e00f7fa1fb1524a7946ef9dfe955d6d1d78250

See more details on using hashes here.

File details

Details for the file Flask-Celery-py3-0.2.2.linux-x86_64.tar.gz.

File metadata

File hashes

Hashes for Flask-Celery-py3-0.2.2.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 ee2b895554f9ba799d5b139082067f138dbf90ed0c888ffdd0d466311eae3212
MD5 7723f9492b7a0e9a95a0673f919b43b3
BLAKE2b-256 280862440ff0310793359f836517122716e03753f156a57882a7d538da460049

See more details on using hashes here.

File details

Details for the file Flask-Celery-py3-0.2.2-1.src.rpm.

File metadata

File hashes

Hashes for Flask-Celery-py3-0.2.2-1.src.rpm
Algorithm Hash digest
SHA256 65a11dfb2429907b2dc6d205b4e858784180947490d3df60942cb32116fafca4
MD5 5c615403881af3a6a7f30484830d306b
BLAKE2b-256 69fc2ee5eb732aa827f60445d85309be93d9780126a795a123abe39a752e0f1a

See more details on using hashes here.

File details

Details for the file Flask-Celery-py3-0.2.2-1.noarch.rpm.

File metadata

File hashes

Hashes for Flask-Celery-py3-0.2.2-1.noarch.rpm
Algorithm Hash digest
SHA256 7209a327eaa47b15e1f563657ec260886e096ff4be7941469c47672edac4b797
MD5 c4be7b06c331c2fbc1577947df173f3b
BLAKE2b-256 3b1c78108bbe41817cb597f026adf04ebeb244d7b65d96df283230b94bcadba3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page