Skip to main content

No project description provided

Project description

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']}'))

Project details


Download files

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

Source Distribution

flask_apium-0.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

Flask_Apium-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file flask_apium-0.0.1.tar.gz.

File metadata

  • Download URL: flask_apium-0.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.0rc2

File hashes

Hashes for flask_apium-0.0.1.tar.gz
Algorithm Hash digest
SHA256 29f270830f566f104454663b2a89f24fa56774156009ce881c15077a7174d08f
MD5 c3f09f88901048a17ee7ab0e7cc2239a
BLAKE2b-256 10c6094620fcec694d1499d0aeec35863ba39e4c9c569181a9da75394eb16798

See more details on using hashes here.

File details

Details for the file Flask_Apium-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: Flask_Apium-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.0rc2

File hashes

Hashes for Flask_Apium-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 18dc20f96d2f44bbd64afb4a313c73b9e5bf2f472e92d2b27034e6125200dce7
MD5 9b629c2eff05de06a58b91cd771ccd36
BLAKE2b-256 33c39df172ff6557a4654351e9766b58a7445a5cba943f39068a80b780bbbbce

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page