Skip to main content

An implementation of QUIC and HTTP/3

Project description

pypi-v pypi-pyversions pypi-l codecov

What is qh3?

qh3 is a maintained fork of the awesome aioquic library. Important changes/improvements are:

  • Made abi3 compatible, no need to build the wheel all over again on each interpreter version.

  • Only one dependency left! Cryptography will remain as long as Python does not ship with proper QUIC implementation.

  • Mitigated deprecated match_hostname.

  • Mimic load_default_certs SSL context from native Python.

  • Remove the need for OpenSSL development headers.

  • Many, many more pre-built wheel for your convenience! Including PyPy 3.8 and 3.9 and musl linux distributions.

qh3 is a library for the QUIC network protocol in Python. It features a minimal TLS 1.3 implementation, a QUIC stack and an HTTP/3 stack.

QUIC was standardised in RFC 9000 and HTTP/3 in RFC 9114. qh3 is regularly tested for interoperability against other QUIC implementations.

To learn more about qh3 please read the documentation.

Why should I use qh3?

qh3 has been designed to be embedded into Python client and server libraries wishing to support QUIC and / or HTTP/3. The goal is to provide a common codebase for Python libraries in the hope of avoiding duplicated effort.

Both the QUIC and the HTTP/3 APIs follow the “bring your own I/O” pattern, leaving actual I/O operations to the API user. This approach has a number of advantages including making the code testable and allowing integration with different concurrency models.

This library is the lowest-level you can find on handling QUIC and HTTP/3. Here are higher libraries:

Features

  • QUIC stack conforming with RFC 9000

  • HTTP/3 stack conforming with RFC 9114

  • minimal TLS 1.3 implementation conforming with RFC 8446

  • IPv4 and IPv6 support

  • connection migration and NAT rebinding

  • logging TLS traffic secrets

  • logging QUIC events in QLOG format

  • HTTP/3 server push support

Requirements

qh3 requires Python 3.7 or greater.

Running the examples

qh3 comes with a number of examples illustrating various QUIC use-cases.

You can browse these examples here: https://github.com/Ousret/qh3/tree/main/examples

License

qh3 is released under the BSD license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qh3-0.11.5.tar.gz (818.5 kB view hashes)

Uploaded Source

Built Distributions

qh3-0.11.5-pp310-pypy310_pp73-win_amd64.whl (269.9 kB view hashes)

Uploaded PyPy Windows x86-64

qh3-0.11.5-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (276.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

qh3-0.11.5-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (281.4 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

qh3-0.11.5-pp310-pypy310_pp73-macosx_10_9_x86_64.whl (269.3 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

qh3-0.11.5-pp39-pypy39_pp73-win_amd64.whl (269.9 kB view hashes)

Uploaded PyPy Windows x86-64

qh3-0.11.5-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (276.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

qh3-0.11.5-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (281.4 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

qh3-0.11.5-pp39-pypy39_pp73-macosx_10_9_x86_64.whl (269.3 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

qh3-0.11.5-pp38-pypy38_pp73-win_amd64.whl (269.9 kB view hashes)

Uploaded PyPy Windows x86-64

qh3-0.11.5-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (276.8 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

qh3-0.11.5-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (281.4 kB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

qh3-0.11.5-pp38-pypy38_pp73-macosx_10_9_x86_64.whl (269.3 kB view hashes)

Uploaded PyPy macOS 10.9+ x86-64

qh3-0.11.5-cp37-abi3-win_amd64.whl (269.5 kB view hashes)

Uploaded CPython 3.7+ Windows x86-64

qh3-0.11.5-cp37-abi3-win32.whl (266.6 kB view hashes)

Uploaded CPython 3.7+ Windows x86

qh3-0.11.5-cp37-abi3-musllinux_1_1_x86_64.whl (370.4 kB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.1+ x86-64

qh3-0.11.5-cp37-abi3-musllinux_1_1_i686.whl (367.8 kB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.1+ i686

qh3-0.11.5-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (367.6 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

qh3-0.11.5-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (363.3 kB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ i686 manylinux: glibc 2.5+ i686

qh3-0.11.5-cp37-abi3-macosx_11_0_arm64.whl (277.3 kB view hashes)

Uploaded CPython 3.7+ macOS 11.0+ ARM64

qh3-0.11.5-cp37-abi3-macosx_10_9_x86_64.whl (272.5 kB view hashes)

Uploaded CPython 3.7+ macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page