talira

Hypercorn

ASGI and WSGI web server for Python with HTTP/2, WebSockets and optional HTTP/3

open sourceMITself-hostablefree

Hypercorn is an ASGI and WSGI web server for Python, built on the sans-io h11, h2 and wsproto libraries and inspired by Gunicorn. It supports HTTP/1, HTTP/2 and WebSockets over both, and can run asyncio, uvloop or Trio workers. With the h3 extra and the aioquic library it can also serve the current draft of HTTP/3. It started inside the Quart web framework and was split out into a standalone server at Quart's 0.5.0, and it runs from the command line or programmatically.

Ways to install

Package managers

Problems it solves

  • serve my async Python web app over HTTP/2
  • run an ASGI app with Trio instead of asyncio
  • try HTTP/3 for my Python web server

Features

  • serves ASGI and WSGI apps
  • HTTP/1, HTTP/2 and WebSockets over both
  • optional HTTP/3 through aioquic
  • asyncio, uvloop or Trio workers
  • runs from the command line or from Python code

Alternatives

The same job

These do what Hypercorn does.

  1. Uvicorn ASGI web server for Python with HTTP/1.1, HTTP/2 and WebSockets
  2. Daphne HTTP, HTTP/2 and WebSocket server for ASGI apps, built to power Django Channels
  3. Gunicorn Python WSGI HTTP server for UNIX

Compare Hypercorn with the top 3