Socket
Book a DemoInstallSign in
Socket

uwsgidecorators-fallback

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uwsgidecorators-fallback

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

0.0.5
pipPyPI
Maintainers
1

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.

Keywords

uwsgi

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.