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.5.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for uwsgidecorators-fallback-0.0.5.tar.gz
Algorithm Hash digest
SHA256 73df0436c3e2f138a9b87d48c0d0e4ed6f7d6cf2597996b5e61e380697077af5
MD5 235e2c6e80b78240becc6f1a07ade0e3
BLAKE2b-256 237a35ddd2a30bc1eb53d0d45535026e45cb90631cdb128c1c85c3422719f3b9

See more details on using hashes here.

File details

Details for the file uwsgidecorators_fallback-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for uwsgidecorators_fallback-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7d93a6b86cab98ae82f0513f5bfb3e2f0b3824d9e25f4f0fd539c880a974315d
MD5 fab302a31cd53eca90cd3eaa0975b1f6
BLAKE2b-256 26685a26b29bbaf3afe4dd863cb605327fe301d0078a9ede80850f4e88924b7a

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