flask-taskx
Flask-TaskX is an extension for Flask that adds the capability of running tasks within the context of your Flask applications. If you are familiar with Flask, Flask-TaskX should be easy to pick up. It provides a coherent collection of decorators and tools to define and execute asynchronous tasks.
Installation
You can install Flask-TaskX with pip:
$ pip install flask-taskx
or with easy_install:
$ easy_install flask-taskx
Quick start
With Flask-TaskX, you define the task worker by instantiating a BackgroundTaskWorker and with this instance define all tasks to be executed later in the background.
from flask import Flask
from flask_taskx import BackgroundTaskWorker
app = Flask(__name__)
task_worker = BackgroundTaskWorker(app)
@task_worker.define_task
def email_task(**kwargs):
response = send_message(**kwargs)
return response
@app.route('/email_send')
def email_send():
email_task.apply(email="test@test.com")
task_worker.start()
app.run()
Documentation
The documentation is hosted on Read the Docs
Metadata
Release files for flask-taskx 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flask-taskx-1.0.tar.gz | 2.4 kB | Without provenance | Details for flask-taskx-1.0.tar.gz |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flask_taskx-1.0-py3-none-any.whl | Python 3 | none | any | Details for flask_taskx-1.0-py3-none-any.whl |
| Flask_TaskX-1.0-py3-none-any.whl | Python 3 | none | any | Details for Flask_TaskX-1.0-py3-none-any.whl |
Total release size: 8.6 kB
Release files / flask-taskx-1.0.tar.gz
| Download URL | flask-taskx-1.0.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74499e814296adf8c34e2dca8582a2ac397b9a57d17807caf2ed301a485e832d
|
|
BLAKE2b-256 checksum How to use checksums |
f1aca5f63a172ab743f54f61b02f43ec8b7e8147cc8b48da0fb31082c25257f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.0
|
Release files / flask_taskx-1.0-py3-none-any.whl
| Download URL | flask_taskx-1.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acdc9fbf8a7394ef27a112312e3e044a978ffe6e415a887198d576d075335bab
|
|
BLAKE2b-256 checksum How to use checksums |
8258fb8f1ef88912d76071c8a464e87c844668c16742e38820d6c3da4899a22a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.0
|
Release files / Flask_TaskX-1.0-py3-none-any.whl
| Download URL | Flask_TaskX-1.0-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd3d9c45029a6a2b2e33106c1fcfc539ecb1237a287f3dbf24f69238c9338bc9
|
|
BLAKE2b-256 checksum How to use checksums |
a894f88ae2eef07782797921ed1c40709be7bb45a38745ea2322fb5bd802d08d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.0
|
Security for flask-taskx 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.