Gunicorn: WSGI HTTP Server for UNIX

25.3.0 · active · verified Sat Mar 28

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

Install

Imports

Quickstart

A minimal example of running a WSGI application with Gunicorn using the BaseApplication class.

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()

view raw JSON →