A Flask extension for RQ.
Project description
Resources
A Flask extension for RQ (Redis Queue).
This is a continuation of Flask-RQ more in spirit than in code. Many thanks to Matt Wright for the inspiration and providing the shoulders to stand on.
Installation
pip install Flask-RQ2
Getting started
To quickly start using Flask-RQ2, simply create an RQ instance:
from flask import Flask
from flask_rq2 import RQ
app = Flask(__name__)
rq = RQ(app)
Alternatively, if you’re using the application factory pattern:
from flask_rq2 import RQ
rq = RQ()
and then later call init_app where you create your application object:
from flask import Flask
def create_app():
app = Flask(__name__)
from yourapplication.jobs import rq
rq.init_app(app)
# more here..
return app
For more information see the full documentation on Read The Docs.
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-RQ2-17.1.tar.gz
(24.1 kB
view hashes)
Built Distribution
Close
Hashes for Flask_RQ2-17.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 691883aad3e7d8aaf833da07977f03a957859b42310bd75a623b80493d006560 |
|
MD5 | 42caaa2f093668c7b1875c9282962e12 |
|
BLAKE2b-256 | 3f9190487aae2cf6734dd66db2403e71fddf5723f14b188bc407e67d0efdb1c4 |