Installation¶
Requirements¶
h2corn requires CPython 3.11 or newer on standard builds, or CPython 3.14t or newer on free-threaded builds. Prebuilt wheels are published for Linux, macOS, and Windows.
- Multi-worker supervision, rolling reload, and Unix domain sockets require Linux or macOS; Windows runs a single worker in-process.
- See Python compatibility and wheels for the exact interpreter and wheel matrix.
Install h2corn¶
uv add h2corn
pip install h2corn
Verify the installed CLI:
h2corn --version
With uv, prefix commands with uv run (for example uv run h2corn --version).
Optional uvloop extra¶
By default, --loop auto uses uvloop when it is installed and falls back to the standard-library asyncio event loop. To install uvloop alongside h2corn on Linux or macOS:
uv add "h2corn[uvloop]"
pip install "h2corn[uvloop]"
Windows and some free-threaded Python builds do not have a uvloop wheel; those environments use asyncio automatically under --loop auto.
Next steps¶
Continue to the Quickstart to run your first ASGI application over HTTP/1.1 and HTTP/2.