Skip to main content

uWSGI API - Python decorators - with fallback for running outside uwsgi

Project description

uWSGI API - Python decorators - with fallback for running outside uwsgi

Uwsgi offers a nice pyhton api in the form of decorators. It’s a shame that you can nolonger run your code outside of uwsgi. This package implements fallbacks for the uwsgi decorators, that either do nothing, or run the asynchronous stuff synchronously.

Beats import errors right?

this module provides fallbacks for the following uwsgi decorators:

spool
lock
cron
timer

usage, just import the decorators from uwsgidecoratorsfallback instead of uwsgidecorators and your code will nolonger import error outside of uwsgi:

from uwsgidecoratorsfallback import spool, lock, cron, timer

After that just use as intended, outside of uwsgi you get alternatives that either do nothing or run the function synchronously.

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

uwsgidecorators-fallback-0.0.1.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file uwsgidecorators-fallback-0.0.1.tar.gz.

File metadata

File hashes

Hashes for uwsgidecorators-fallback-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b0b2db6e988ebb0880304ebd04ebe3816b51efc1e3959bc3cdd3a0119485303e
MD5 fbf645df1bd36e044ce5dbf2cc760c0f
BLAKE2b-256 735bd2a6daa28fd42769ae20aacadb9ecd8e863b041b3675407a5bcae78c75d4

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