Gunicorn: WSGI HTTP Server for UNIX
Gunicorn is a Python WSGI HTTP Server for UNIX, compatible with various web frameworks. Current version: 25.3.0. Released on March 27, 2026. Maintained by volunteers, with a stable release cadence.
Warnings
- breaking Gunicorn 25.3.0 introduces HTTP/2 support (beta) and per-app worker allocation for dirty arbiters, which may affect application performance and compatibility.
- gotcha When specifying a configuration file with the '-c' option, ensure the file is a valid Python source file and located in the current working directory or specified path.
Install
-
pip install gunicorn
Imports
- gunicorn.app.base.BaseApplication
from gunicorn.app.base import BaseApplication
Quickstart
import os
from gunicorn.app.base import BaseApplication
class MyApplication(BaseApplication):
def __init__(self, app, options=None):
self.options = options or {}
self.application = app
super().__init__()
def load(self):
return self.application
if __name__ == '__main__':
app = ... # Your WSGI application here
options = {'bind': '0.0.0.0:8000', 'workers': 4}
MyApplication(app, options).run()