Overview
Gunicorn, short for Green Unicorn, is a web server for Python applications on UNIX systems. It sits between the network and your Django, Flask or FastAPI app, accepts HTTP requests and hands them to your code, and it is one of the standard ways to run a Python site in production.
It uses a pre-fork worker model: a master process starts a number of worker processes and replaces any that die. You pick the worker type to suit the workload. The default sync worker handles one request at a time per process, threaded workers run several threads each, gevent workers suit many slow, I/O-bound connections, and an ASGI worker runs asyncio frameworks such as FastAPI and Starlette natively. Recent releases also list HTTP/2 support and a "dirty arbiter" feature for heavy workloads, both marked as beta.
Installation is a single pip command and a basic server starts with one line naming your app. In real deployments it is usually combined with nginx, systemd or Docker, which the documentation covers. It is released under the MIT licence and needs Python 3.10 or later.
Categories
Features
- Runs WSGI apps such as Django, Flask and Pyramid
- ASGI worker for FastAPI, Starlette and Quart
- Pre-fork model with a master process managing workers
- Sync, threaded, gevent and ASGI worker types
- Graceful worker restarts and management
- HTTP/2 support, marked beta
- uWSGI binary protocol for use behind nginx
- Installed with pip and started with one command
Privacy
See the official privacy policy. Gunicorn is software you run on your own server; we saw no ad or common analytics scripts in the project home page HTML.
Pros & Cons
Pros
- Free and open source under the MIT licence
- Few dependencies and simple configuration
- Works with any WSGI or ASGI framework
- Long track record in production use
- Deployment guides for nginx, systemd and Docker
Cons
- Built for UNIX systems, not a native Windows server
- Normally needs a reverse proxy such as nginx in front of it
- Worker type and count have to be tuned by hand for each app
- HTTP/2 and dirty arbiters are still beta features
Community Reviews (0)
No written reviews yet — be the first to rate this tool.
Similar Tools
-
Builds Python web applications with a batteries-included framework.
Open Source No Signup Web -
Builds lightweight Python web applications.
Open Source No Signup Windows Linux -
Builds Python web APIs with automatic docs and validation.
Open Source No Signup Web