Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Adds Celery support to Flask Unchained

Project description

# Flask Celery Bundle

Adds Celery support to Flask Unchained projects

# Install

Install from PyPI:

$ pip install flask_celery_bundle

And add it to your `unchained_config.BUNDLES`:

# your_app_package/

# ...

NOTE: If you're using `flask_mail_bundle`, and you want to send emails asynchronously with celery, then `flask_celery_bundle` must be listed *after* `flask_mail_bundle` (or alternatively, you could manually configure `MAIL_SEND_FN` in your app bundle config).

# Configure

This package is just a tiny wrapper that integrates Celery with Flask, so it accepts all of the standard [celery configuration options]( The only restriction is that, for compatibility with Flask, you must use the "old" uppercase setting names.

The default configuration included with this bundle uses `redis` as a message broker:

import os

class Config:
CELERY_BROKER_URL = 'redis://{host}:{port}/0'.format(
host=os.getenv('FLASK_REDIS_HOST', ''),
port=os.getenv('FLASK_REDIS_PORT', 6379),
CELERY_ACCEPT_CONTENT = ('json', 'pickle')

Project details

Release history Release notifications

This version
History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Flask_Celery_Bundle-0.2.1-py3-none-any.whl (5.1 kB) Copy SHA256 hash SHA256 Wheel py3 May 1, 2018
Flask Celery Bundle-0.2.1.tar.gz (5.0 kB) Copy SHA256 hash SHA256 Source None May 1, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page