{"id":24775,"library":"types-uwsgi","title":"types-uwsgi","description":"Typing stubs for uWSGI, providing type hints for the uwsgi module. Version 2.0.0.20260408, part of typeshed. Released as needed based on upstream changes.","status":"active","version":"2.0.0.20260408","language":"python","source_language":"en","source_url":"https://github.com/python/typeshed","tags":["types","stubs","uwsgi","type-hints"],"install":[{"cmd":"pip install types-uwsgi","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Direct import of the module is sufficient; no need for explicit imports of submodules.","wrong":"from uwsgi import ...","symbol":"uwsgi","correct":"import uwsgi"}],"quickstart":{"code":"import uwsgi\n\ndef application(env, start_response):\n    start_response('200 OK', [('Content-Type','text/html')])\n    return [b\"Hello World\"]\n\nif __name__ == '__main__':\n    pass","lang":"python","description":"Basic WSGI app using uwsgi module (stubs provide type hints)."},"warnings":[{"fix":"Install uWSGI via `pip install uwsgi` (or your OS package manager) alongside types-uwsgi.","message":"types-uwsgi only provides type stubs; you must still install uWSGI (e.g., `uwsgi` package) to run your application.","severity":"gotcha","affected_versions":"all"},{"fix":"Use `# type: ignore` for missing stubs or contribute upstream.","message":"The types-uwsgi stubs are part of typeshed and may not cover all uWSGI API features. Some functions or options might be untyped or partially typed.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin types-uwsgi version in requirements and test against new versions.","message":"Version jumps may include breaking changes when typeshed updates type annotations that conflict with your code.","severity":"breaking","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Install uWSGI runtime: `pip install uwsgi`","cause":"types-uwsgi only provides type stubs; the runtime uwsgi module is missing.","error":"ModuleNotFoundError: No module named 'uwsgi'"},{"fix":"Use a different uwsgi function like `uwsgi.send()` or handle with try/except.","cause":"The uwsgi API does not include 'sendfile' in the stubs; it may be an unsupported or deprecated API.","error":"AttributeError: module 'uwsgi' has no attribute 'sendfile'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}