Flask-Apium
There is no established Flask extension for celery. This is a first
proof of concept to that end. Let me know if it is useful. To make
clear that it is separate from the celery project, I took the
Latin genus name for the celery species.
Running
First set FLASK_APP to the make_celery submodule, and then execute:
celery -A flask_apium.make_celery worker --loglevel INFO &
flask run
You can test with:
import requests
base_url = 'http://localhost:5000/'
add_url = f'{base_url}/add'
r = requests.post(url, data = {'a':'1','b':'2'})
print(requests.get(f'{base_url}/result/{r.json()['result_id']}'))
Release files for Flask-Apium 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| flask_apium-0.0.1.tar.gz | 3.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Flask_Apium-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / flask_apium-0.0.1.tar.gz
| Download URL | flask_apium-0.0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29f270830f566f104454663b2a89f24fa56774156009ce881c15077a7174d08f
|
|
BLAKE2b-256 checksum How to use checksums |
10c6094620fcec694d1499d0aeec35863ba39e4c9c569181a9da75394eb16798
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.0rc2
|
Release files / Flask_Apium-0.0.1-py3-none-any.whl
| Download URL | Flask_Apium-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
18dc20f96d2f44bbd64afb4a313c73b9e5bf2f472e92d2b27034e6125200dce7
|
|
BLAKE2b-256 checksum How to use checksums |
33c39df172ff6557a4654351e9766b58a7445a5cba943f39068a80b780bbbbce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.10.0rc2
|