--- id: h2 version: "4.4.1" license: MIT license_treatment: permissive maintenance: active --- # h2 — Pure-Python HTTP/2 protocol implementation License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install h2 uv add h2 poetry add h2 ## Description ========================= h2: HTTP/2 Protocol Stack ========================= .. image:: https://github.com/python-hyper/h2/workflows/CI/badge.svg :target: https://github.com/python-hyper/h2/actions :alt: Build Status .. image:: https://codecov.io/gh/python-hyper/h2/branch/master/graph/badge.svg :target: https://codecov.io/gh/python-hyper/h2 :alt: Code Coverage .. image:: https://readthedocs.org/projects/h2/badge/?version=latest :target: https://h2.readthedocs.io/en/latest/ :alt: Documentation Status .. image:: https://img.shields.io/badge/chat-join_now-brightgreen.svg :target: https://gitter.im/python-hyper/community :alt: Chat community .. image:: https://raw.github.com/python-hyper/documentation/master/source/logo/hyper-black-bg-white.png This repository contains a pure-Python implementation of a HTTP/2 protocol stack. It's written from the ground up to be embeddable in whatever program you choose to use, ensuring that you can speak HTTP/2 regardless of your programming paradigm. You use it like this: .. code-block:: python import h2.connection import h2.config config = h2.config.H2Configuration() conn =... ## AI interpretation — verify before relying h2 is a pure-Python HTTP/2 protocol implementation that handles frame-level communication, header encoding, and stream management for embedding HTTP/2 support into any Python application. Verdict: h2 is a stable, actively maintained HTTP/2 implementation suitable for production use. With no known vulnerabilities, minimal dependencies, and permissive licensing, it's a reliable choice for projects needing HTTP/2 protocol support. The low install friction and broad Python version support (3.10–3.14) make adoption straightforward. [View on SkillFed](https://skillfed.io/packages/h2) · [View on PyPI](https://pypi.org/project/h2/)