{"library":"mod-wsgi","title":"mod_wsgi","description":"mod_wsgi is an Apache HTTP Server module that provides a WSGI compliant interface for hosting Python web applications under Apache. It supports both embedded and daemon modes, with the ability to run multiple Python versions and virtual environments. Current version 5.0.2 (2024-02-19) requires Python >=3.8. Release cadence is irregular, typically minor updates every few years.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install mod-wsgi"],"cli":null},"imports":["def application(environ, start_response): ...  # then assign to module-level 'application'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# Save as myapp.wsgi\ndef application(environ, start_response):\n    status = '200 OK'\n    output = b'Hello, World!'\n    response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(output)))]\n    start_response(status, response_headers)\n    return [output]","lang":"python","description":"Minimal WSGI application file. Place in your Apache document root or a directory accessible to Apache, then configure Apache with 'WSGIScriptAlias / /path/to/myapp.wsgi'.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}