{"name":"Gunicorn: A Fast and Lightweight WSGI HTTP Server for Python","description":"Gunicorn, or 'Green Unicorn', is a robust and widely-used WSGI HTTP server for Python applications, known for its speed and efficiency. It employs a pre-fork worker model, making it compatible with various web frameworks like Django and Flask. This server is designed to be light on server resource usage while providing reliable performance for your Python web projects.","github":"https://github.com/benoitc/gunicorn","url":"https://osrepos.com/repo/benoitc-gunicorn","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/benoitc-gunicorn","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/benoitc-gunicorn.md","json":"https://osrepos.com/repo/benoitc-gunicorn.json","topics":["python","wsgi","asgi","http-server","web-server","deployment","backend","gunicorn"],"keywords":["python","wsgi","asgi","http-server","web-server","deployment","backend","gunicorn"],"stars":null,"summary":"Gunicorn, or 'Green Unicorn', is a robust and widely-used WSGI HTTP server for Python applications, known for its speed and efficiency. It employs a pre-fork worker model, making it compatible with various web frameworks like Django and Flask. This server is designed to be light on server resource usage while providing reliable performance for your Python web projects.","content":"## Introduction\n\nGunicorn, short for 'Green Unicorn', is a powerful and efficient WSGI HTTP Server for UNIX-based systems, designed specifically for Python applications. Ported from Ruby's Unicorn project, Gunicorn is celebrated for its simplicity, speed, and minimal resource consumption. It supports a wide array of Python web frameworks, including Django, Flask, and Pyramid, and has recently expanded its capabilities to include ASGI support for modern frameworks like FastAPI and Starlette.\n\n## Installation\n\nGetting started with Gunicorn is straightforward. You can install it using pip:\n\nbash\npip install gunicorn\n\n\n## Examples\n\nOnce installed, you can run your WSGI application with Gunicorn. For a typical WSGI application, use:\n\nbash\ngunicorn myapp:app --workers 4\n\n\nFor ASGI applications, such as those built with FastAPI or Starlette, specify the worker class:\n\nbash\ngunicorn myapp:app --worker-class asgi\n\n\n## Why Use Gunicorn?\n\nGunicorn offers several compelling reasons for its adoption in Python web development:\n\n*   **Broad Compatibility**: Seamlessly integrates with popular WSGI frameworks (Django, Flask) and now supports ASGI frameworks (FastAPI, Starlette).\n*   **Performance and Efficiency**: Its pre-fork worker model ensures fast client handling and efficient resource usage, making it ideal for production environments.\n*   **Advanced Features**: Recent updates in v25 introduce HTTP/2 support (beta) for multiplexed streams and Dirty Arbiters (beta) for handling heavy workloads like ML models or long-running tasks.\n*   **Flexible Worker Types**: Choose from various worker types including sync, gthread, gevent, and asgi, to best suit your application's needs.\n*   **Robust Community Support**: Powering Python apps since 2010, Gunicorn benefits from active maintenance and a dedicated community.\n\n## Links\n\n*   **GitHub Repository**: [https://github.com/benoitc/gunicorn](https://github.com/benoitc/gunicorn){:target=\"_blank\"}\n*   **Official Documentation**: [https://gunicorn.org](https://gunicorn.org){:target=\"_blank\"}\n*   **Quickstart Guide**: [https://gunicorn.org/quickstart/](https://gunicorn.org/quickstart/){:target=\"_blank\"}\n*   **Configuration Reference**: [https://gunicorn.org/configure/](https://gunicorn.org/configure/){:target=\"_blank\"}\n*   **Deployment Guide**: [https://gunicorn.org/deploy/](https://gunicorn.org/deploy/){:target=\"_blank\"}\n*   **Report Bugs**: [https://github.com/benoitc/gunicorn/issues](https://github.com/benoitc/gunicorn/issues){:target=\"_blank\"}","metrics":{"detailViews":1,"githubClicks":1},"dates":{"published":null,"modified":"2026-07-22T12:05:51.000Z"}}