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.
Metadata
Release files for uwsgidecorators-fallback 0.0.5
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 | |
|---|---|---|---|---|
| uwsgidecorators-fallback-0.0.5.tar.gz | 2.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uwsgidecorators_fallback-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.8 kB
Release files / uwsgidecorators-fallback-0.0.5.tar.gz
| Download URL | uwsgidecorators-fallback-0.0.5.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
73df0436c3e2f138a9b87d48c0d0e4ed6f7d6cf2597996b5e61e380697077af5
|
|
BLAKE2b-256 checksum How to use checksums |
237a35ddd2a30bc1eb53d0d45535026e45cb90631cdb128c1c85c3422719f3b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Release files / uwsgidecorators_fallback-0.0.5-py3-none-any.whl
| Download URL | uwsgidecorators_fallback-0.0.5-py3-none-any.whl |
|---|---|
| Size | 9.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d93a6b86cab98ae82f0513f5bfb3e2f0b3824d9e25f4f0fd539c880a974315d
|
|
BLAKE2b-256 checksum How to use checksums |
26685a26b29bbaf3afe4dd863cb605327fe301d0078a9ede80850f4e88924b7a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|
Security for uwsgidecorators-fallback 0.0.5
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.