An easy to use Flask wrapper for concurrent.futures
Project description
Flask-Executor
Sometimes you need a simple task queue without the overhead of separate worker processes or powerful-but-complex libraries beyond your requirements. Flask-Executor is an easy to use wrapper for the concurrent.futures module that lets you initialise and configure executors via common Flask application patterns. It's a great way to get up and running fast with a lightweight in-process task queue.
Installation
Flask-Executor is available on PyPI and can be installed with:
pip install flask-executor
Quick start
Here's a quick example of using Flask-Executor inside your Flask application:
from flask import Flask
from flask_executor import Executor
app = Flask(__name__)
executor = Executor(app)
def send_email(recipient, subject, body):
# Magic to send an email
return True
@app.route('/signup')
def signup():
# Do signup form
executor.submit(send_email, recipient, subject, body)
Documentation
Check out the full documentation at flask-executor.readthedocs.io!
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 Distribution
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-Executor-0.6.1.tar.gz.
File metadata
- Download URL: Flask-Executor-0.6.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faaa064e5b4280d2925fa1d9cbec2bde572562a6b8473f19af082f77feab6f86
|
|
| MD5 |
d86efb8ca6510978446ef341a3c40e22
|
|
| BLAKE2b-256 |
c60b547ce9bd09f5aa5a2857621998e3bb63ffbabd6afa63228878923fe5a588
|
File details
Details for the file Flask_Executor-0.6.1-py3-none-any.whl.
File metadata
- Download URL: Flask_Executor-0.6.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bafae2b830a348452ab62ddb1c845b1b90d5b6f26aee0ffda51c0eb15aae3164
|
|
| MD5 |
91f3a3982215056112c85d4ee4f0a3d1
|
|
| BLAKE2b-256 |
73b6d723a04738fce5551886d6263fb440e07f2e1c0ac1eda319c7eefa02835c
|