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 .

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

Uploaded Source

Built Distributions

Flask-Celery-py3-0.2.3.linux-x86_64.tar.gz (2.7 kB view details)

Uploaded Source

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

Uploaded Source

Flask-Celery-py3-0.2.3-1.noarch.rpm (11.5 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for Flask-Celery-py3-0.2.3.tar.gz
Algorithm Hash digest
SHA256 2bc2a95e1ba83f65a0b2ef5d7cc88f2af4b385c61ffef68ff4d7536c9b0629e3
MD5 befd981150a3a459c488cb97f592be8b
BLAKE2b-256 d5e211b1e5749d07f925ace989e307e1efd5570d94a4114317271feb75b755ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Flask-Celery-py3-0.2.3.linux-x86_64.tar.gz
Algorithm Hash digest
SHA256 5221cc209e60ba9691c50473ada5530705571b7d8c1dd0d694e34facb26820cb
MD5 6e10c5dc62515048de32623d459b1cae
BLAKE2b-256 3a7650c81c0dd6f1e7be4b19fa80c2c972f520e0baaf26c4060e45cf3a609438

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Flask-Celery-py3-0.2.3-1.src.rpm
Algorithm Hash digest
SHA256 714c69672c9abf6e1f1fe291f7d7cd9631dd5ba307fcc489e60b684c4da782c4
MD5 b3fee179d17c60fe22c9f88e4d294c5a
BLAKE2b-256 259ae62a50ae41a0a79b2cd63467027ddd075c2f749004e2a76ce0b4337e2f43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for Flask-Celery-py3-0.2.3-1.noarch.rpm
Algorithm Hash digest
SHA256 309145b1f153971c211aba43fb488808cb71a35ea5f48ab3d349244d2b26c134
MD5 8f9ba06ef2714886c1fab73f8ebeec9a
BLAKE2b-256 0fdc37121ea08b261473e388927abae8f329d5ee766346a45bc29ea2aa154bc0

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