OSS TanbouSign in with GitHub

serve Python WSGI and ASGI applications with a prefork worker model on UNIX

OSS scale score 290.6OSS health 100
About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
10,694
Primary language
Python
License
MIT
Repository last updated
Sep 6, 2026
On this page

Overview

Gunicorn is a Python HTTP server for UNIX built around a prefork worker model derived from Unicorn. It serves WSGI applications such as Django and Flask and now also provides an ASGI worker for FastAPI and Starlette plus beta HTTP/2 support.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Key features

Manage Python web applications through a master process and multiple workers

Gunicorn starts and supervises workers under a prefork model and offers sync, gthread, gevent, and ASGI worker types. WSGI applications such as Django and Flask and ASGI applications such as FastAPI and Starlette can use the same process-management layer.

Sources: [2]

Extend the serving layer with HTTP/2, the uWSGI protocol, and graceful worker management

The 26.x line includes beta HTTP/2, the uWSGI binary protocol for nginx integration, and graceful worker process management. HTTP/2 dependencies and worker choices remain explicit deployment decisions.

Sources: [2][3]

Best fit

Fits multi-process Python web deployments behind a reverse proxy

It is useful when WSGI or ASGI applications need multiple workers and process lifecycle behavior controlled outside application code in an established UNIX or POSIX deployment environment.

Sources: [2][3]

Before adoption

Require Python 3.10+ and UNIX/POSIX, and test HTTP/2 and ASGI by worker and protocol

Gunicorn 26.2.2 requires Python 3.10 or newer and primarily targets UNIX/POSIX systems. HTTP/2 remains beta. Version 26.2.2 fixes an ASGI worker issue where HTTP/1.1 connections could close without a Connection: close header, so connection reuse and graceful shutdown deserve regression tests for the selected worker and protocol combination.

Sources: [3][4][5]

Official sources

  1. [1]benoitc/gunicorn — GitHub repository(2026-10-06)
  2. [2]Gunicorn 26.2.2 — README(2026-10-06)
  3. [3]Gunicorn 26.2.2 — pyproject.toml(2026-10-06)
  4. [4]Gunicorn 26.2.2 release(2026-10-06)
  5. [5]Gunicorn 26.2.2 changelog(2026-10-06)
  6. [6]Gunicorn MIT license(2026-10-06)
Supplemental curator note

Gunicorn now spans traditional WSGI deployments and an ASGI worker, but behavior depends on the selected worker and HTTP protocol. Treat beta HTTP/2 as a deployment-specific choice and test reverse proxy, keepalive, and graceful shutdown behavior explicitly.

Try it in 3 steps

  1. 1

    Clone the reviewed Gunicorn source

    Pin the reviewed tag so the official example application is available locally.

    git clone --depth 1 --branch 26.2.2 https://github.com/benoitc/gunicorn.git && cd gunicorn
  2. 2

    Install Gunicorn 26.2.2

    Install the same Gunicorn version in a Python 3.10 or newer environment.

    python -m pip install "gunicorn==26.2.2"
  3. 3

    Start the official WSGI example with four workers

    Combine the README Quick Start with examples/test.py, then open http://127.0.0.1:8000/ and confirm Hello, World!.

    gunicorn examples.test:app --workers 4
Check the official README

Growth

Growth trends · Last 30 days

10,694 Stars

Trend data is still being collected.

Built with

Categories and tags

GitHub data

GitHub dataView detailed GitHub data

GitHub Topics

  • http
  • http-server
  • python
  • wsgi
  • wsgi-server
Stars
10,694
Forks
1,863
Watchers
218
Open issues
122
Contributors
372
Owner type
User
Primary language
Python
License
MIT
Repository last updated
Sep 6, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?