Published Jun 15, 2025
[
 
]
WSGI stands for Web Server Gateway Interface. Itβs a standard interface between web servers and Python web applications or frameworks. It allows you to write web applications in Python that can run on any WSGI-compatible web server.
def application(environ, start_response):
status = '200 OK'
headers = [('Content-Type', 'text/plain')]
start_response(status, headers)
return [b"Hello, World!"]
environ
: A dict with request info (method, path, headers, etc.)start_response
: A function used to send status and headers to the server