h2
Pure Python HTTP/2 protocol implementation for building HTTP/2 clients.
HTTP clients and networking PyPI MIT
How h2 is used
h2 is a dependency in 7 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 303 projects, and what it is used with below comes from all of them. The most used alternative in our scan is httpx (277 projects). Projects that use it most often also use NumPy (95.0%), attrs (94.1%), packaging (94.1%).
h2 popularity over time
Gid Score 63: downloads 98, use in agent projects 67, GitHub stars 12, downloads trend 56 (each 0-100). How it is calculated.
Often used with h2
| NumPy | 95.0% of h2 projects · 16.3× more than average |
|---|---|
| attrs | 94.1% of h2 projects · 135.8× more than average |
| packaging | 94.1% of h2 projects · 64.2× more than average |
| AnyIO | 93.1% of h2 projects · 62.8× more than average |
| charset-normalizer | 92.7% of h2 projects · 85.9× more than average |
From all 303 projects in our scan that use h2, including the dependency samples.
Install
| Package | pip install h2 |
|---|---|
| Main stacks | Python (301), Next.js (2) |
| Example projects | Paper2Poster/Paper2Poster, YuhangChen1/Paper2All, diffusionstudio/agent, bingreeky/MaAS, quarqlabs/argus |
Alternatives to h2
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside h2 are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| httpx pypi Modern Python HTTP client with async support, replacing the standard requests library. |
77 | 277 (17.1%) | 17M | 15.6K | BSD |
| aiohttp pypi Async HTTP client/server framework for Python with WebSocket support. |
81 | 128 (7.9%) | 123M | 16.6K | Apache-2.0 AND MIT |
More in HTTP clients and networking: Axios Requests ws websockets redis (Python) postgres node-fetch undici