Gunicorn

{{Short description|Python web server}}

{{Infobox software

| name = Gunicorn

| logo = Gunicorn logo 2010.svg

| screenshot =

| caption =

| author = Benoit Chesneau

| developer = [https://github.com/benoitc/gunicorn/blob/master/MAINTAINERS Gunicorn Developers]

| released = {{Start date and age|2010|02|20|df=yes/no}}

| latest release version = {{wikidata|property|edit|reference|P348}}

| latest release date = {{start date and age|{{wikidata|qualifier|P348|P577}}}}

| programming language = Python

| operating system = Cross-platform

| genre = Web server

| license = MIT License

| website = {{Official URL}}

}}

File:Benoit Chesneau in 2010.jpg

The Gunicorn "Green Unicorn" (pronounced jee-unicorn or gun-i-corn){{Cite web|url=https://github.com/benoitc/gunicorn/issues/139|title=Ambiguous Pronunciation · Issue #139 · benoitc/gunicorn|website=GitHub|language=en|access-date=2018-08-02}} is a Python Web Server Gateway Interface (WSGI) HTTP server. It is a pre-fork worker model, ported from Ruby's Unicorn project. The Gunicorn server is broadly compatible with a number of web frameworks, simply implemented, light on server resources and fairly fast.[http://gunicorn.org/ Gunicorn-Python WSGI HTTP Server for UNIX] It is often paired with Nginx, as the two have complementary features.[https://vsupalov.com/gunicorn-and-nginx/ Gunicorn and Nginx in a Nutshell]

Architecture

Server model{{Cite web | url=https://docs.gunicorn.org/en/latest/design.html | title=Design — Gunicorn 20.1.0 documentation}}

  • Central master process to manage the workers
  • Requests are handled by worker processes
  • Components:
  • Master
  • Sync workers
  • Async workers
  • Tornado workers
  • AsyncIO workers

Features

{{facts|date=September 2016}}

  • Natively supports WSGI, web2py, Django and Paster
  • Automatic worker process management
  • Simple Python configuration
  • Multiple worker configurations
  • Various server hooks for extensibility
  • Compatible with Python 2.6+ and Python 3.2+{{Cite web |url=http://docs.gunicorn.org/en/19.3/install.html |title=Gunicorn 19.3 Documentation: Requirements |access-date=2015-07-29 |archive-date=2015-08-19 |archive-url=https://web.archive.org/web/20150819004437/http://docs.gunicorn.org/en/19.3/install.html |url-status=dead }}

See also

References

{{Reflist}}