MCPcopy
hub / github.com/benoitc/gunicorn

github.com/benoitc/gunicorn @26.0.0 sqlite

repository ↗ · DeepWiki ↗ · release 26.0.0 ↗
5,644 symbols 21,582 edges 433 files 3,791 documented · 67%
README

Gunicorn

Gunicorn is maintained by volunteers. If it powers your production, please consider supporting us:

GitHub Sponsors Revolut

PyPI version Supported Python versions Build Status

Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. It's a pre-fork worker model ported from Ruby's Unicorn project. The Gunicorn server is broadly compatible with various web frameworks, simply implemented, light on server resource usage, and fairly speedy.

New in v25: Per-app worker allocation for dirty arbiters, HTTP/2 support (beta)!

Quick Start

pip install gunicorn
gunicorn myapp:app --workers 4

For ASGI applications (FastAPI, Starlette):

gunicorn myapp:app --worker-class asgi

Features

  • WSGI support for Django, Flask, Pyramid, and any WSGI framework
  • ASGI support for FastAPI, Starlette, Quart
  • HTTP/2 support (beta) with multiplexed streams
  • Dirty Arbiters (beta) for heavy workloads (ML models, long-running tasks)
  • uWSGI binary protocol for nginx integration
  • Multiple worker types: sync, gthread, gevent, asgi
  • Graceful worker process management
  • Compatible with Python 3.9+

Documentation

Full documentation at https://gunicorn.org

Community

Support

Powering Python apps since 2010. Support continued development.

Become a Sponsor

Sponsors

Enki Multimedia

License

Gunicorn is released under the MIT License. See the LICENSE file for details.

Core symbols most depended-on inside this repo

set
called by 336
gunicorn/config.py
encode
called by 273
gunicorn/dirty/tlv.py
decode
called by 244
gunicorn/dirty/tlv.py
get
called by 211
gunicorn/dirty/stash.py
get
called by 163
examples/frameworks/tornadoapp.py
feed
called by 154
gunicorn/asgi/parser.py
receive_data
called by 92
gunicorn/http2/connection.py
send_headers
called by 82
gunicorn/http/wsgi.py

Shape

Method 3,640
Class 1,014
Function 868
Route 122

Languages

Python100%
TypeScript1%

Modules by API surface

gunicorn/config.py202 symbols
tests/test_gthread.py132 symbols
tests/test_dirty_arbiter.py120 symbols
tests/test_http2_stream.py94 symbols
tests/test_asgi_websocket_protocol.py93 symbols
tests/test_arbiter.py85 symbols
tests/test_asgi_worker.py75 symbols
tests/test_asgi_compliance.py74 symbols
gunicorn/asgi/protocol.py74 symbols
tests/docker/asgi_compliance/test_http_compliance.py72 symbols
tests/test_dirty_worker.py71 symbols
tests/test_config.py71 symbols

Dependencies from manifests, versioned

Django5.0 · 1×
blacksheep2.0.0 · 1×
channels4.0.0 · 1×
fastapi0.110.0 · 1×
gunicorn_h1c0.6.5 · 1×
h24.1.0 · 1×
httptools0.6.0 · 1×
httpx0.27.0 · 1×
litestar2.7.0 · 1×
markdown-grid-tables0.6 · 1×
mkdocs1.6 · 1×
mkdocs-gen-files0.5 · 1×

Datastores touched

myappDatabase · 1 repos

For agents

$ claude mcp add gunicorn \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact