Skip to main content

aioquic

License Version Python versions Tests Coverage Documentation

What is aioquic?

aioquic 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, for both clients and servers.

aioquic is used by Python opensource projects such as dnspython, hypercorn, mitmproxy and the Web Platform Tests cross-browser test suite. It has also been used extensively in research papers about QUIC.

To learn more about aioquic please read the documentation.

Why should I use aioquic?

aioquic 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. For applications which use asyncio, a convenience API built on top of it is also provided.

A lot of effort has gone into writing an extensive test suite for the aioquic code to ensure best-in-class code quality, and it is regularly tested for interoperability against other QUIC implementations.

aioquic treats its peer as untrusted. Malformed input closes the connection with an error code or drops the packet. The memory and CPU spent on the peer’s data are bounded, from TLS handshake messages to stream reassembly and HTTP/3 field sections. Vulnerabilities are reported privately as described in the security policy, and their fixes are announced in security advisories.

Features

  • minimal TLS 1.3 implementation conforming with RFC 9846
    • post-quantum key exchange with X25519MLKEM768

    • session resumption and 0-RTT data

  • QUIC stack conforming with RFC 9000 (QUIC v1) and RFC 9369 (QUIC v2)
    • TLS integration conforming with RFC 9001

    • loss detection and congestion control conforming with RFC 9002

    • Reno and CUBIC (RFC 9438) congestion control

    • IPv4 and IPv6 support

    • connection migration, NAT rebinding and server preferred addresses

    • datagram frames conforming with RFC 9221

    • logging TLS traffic secrets

    • logging QUIC events in QLOG format

    • version negotiation conforming with RFC 9368

    • reliable stream resets (experimental)

  • HTTP/3 stack conforming with RFC 9114 and RFC 9204 (QPACK)
    • datagram support conforming with RFC 9297

    • WebSocket bootstrapping conforming with RFC 9220

    • WebTransport (experimental)

Installing

The easiest way to install aioquic is to run:

pip install aioquic

Building from source

If there are no wheels for your system or if you wish to build aioquic from source you will need a C compiler and the Python development headers.

On Debian/Ubuntu run:

sudo apt install python3-dev

Running the examples

aioquic comes with example clients and servers for HTTP/3 and QUIC, which illustrate how to use the library.

You can browse these examples here: https://github.com/aiortc/aioquic/tree/main/examples

License

aioquic is released under the BSD license.

Metadata

Release files for aioquic 1.9.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aioquic 1.9.1
File Size Uploaded Provenance Actions
aioquic-1.9.1.tar.gz 292.9 kB Without provenance Details for aioquic-1.9.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for aioquic 1.9.1
File Actions
aioquic-1.9.1-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details for aioquic-1.9.1-cp310-abi3-win_arm64.whl
aioquic-1.9.1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for aioquic-1.9.1-cp310-abi3-win_amd64.whl
aioquic-1.9.1-cp310-abi3-win32.whl CPython 3.10 abi3 Windows x86-32 Details for aioquic-1.9.1-cp310-abi3-win32.whl
aioquic-1.9.1-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for aioquic-1.9.1-cp310-abi3-musllinux_1_2_x86_64.whl
aioquic-1.9.1-cp310-abi3-musllinux_1_2_i686.whl CPython 3.10 abi3 Linux musl 1.2+ x86-32 Details for aioquic-1.9.1-cp310-abi3-musllinux_1_2_i686.whl
aioquic-1.9.1-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details for aioquic-1.9.1-cp310-abi3-musllinux_1_2_aarch64.whl
aioquic-1.9.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for aioquic-1.9.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
aioquic-1.9.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64, Linux glibc 2.28+ ARM64 Details for aioquic-1.9.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
aioquic-1.9.1-cp310-abi3-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-32, Linux glibc 2.5+ x86-32 Details for aioquic-1.9.1-cp310-abi3-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
aioquic-1.9.1-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for aioquic-1.9.1-cp310-abi3-macosx_11_0_arm64.whl
aioquic-1.9.1-cp310-abi3-macosx_10_9_x86_64.whl CPython 3.10 abi3 macOS 10.9+ x86-64 Details for aioquic-1.9.1-cp310-abi3-macosx_10_9_x86_64.whl

Total release size: 1.8 MB

Release files / aioquic-1.9.1.tar.gz

Download URL aioquic-1.9.1.tar.gz
Size 292.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cba2660ebf9619703bc3f23b0a9dda52067ad94fcc4eb18c6ad9de30e49cf010
BLAKE2b-256 checksum
How to use checksums
ed8aed5adaed91ecd7f7f6f9f7faf683ba5aef60e284db425904efc1afb755f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / aioquic-1.9.1-cp310-abi3-win_arm64.whl

Download URL aioquic-1.9.1-cp310-abi3-win_arm64.whl
Size 137.9 kB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
b4b32af317272f605abcdb9c449d58a558b0f8f349ee7ad622616f39b2e4353a
BLAKE2b-256 checksum
How to use checksums
f00466943be83c6365e46a57e4b6d5a059a7bbae6902f07a341a0b3a8d6eb1ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / aioquic-1.9.1-cp310-abi3-win_amd64.whl

Download URL aioquic-1.9.1-cp310-abi3-win_amd64.whl
Size 138.0 kB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
15ae0435d3d71e173a16b3d4b34b3e2967447145ff13d6678f66cca43082da14
BLAKE2b-256 checksum
How to use checksums
ab4247222f73228fead3f9786530278deeffc1a9c662f6a81f7120019c2ca986
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / aioquic-1.9.1-cp310-abi3-win32.whl

Download URL aioquic-1.9.1-cp310-abi3-win32.whl
Size 137.4 kB
Tags CPython 3.10 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
18187f734cd7c3e40ed268e0fa02db14826e92593aac309f8c5c23d57c6c8644
BLAKE2b-256 checksum
How to use checksums
52c0ae20387fadc0e9514b7a608fb12b37ea2b706ce4a098fa1694e70e0f8513
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / aioquic-1.9.1-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL aioquic-1.9.1-cp310-abi3-musllinux_1_2_x86_64.whl
Size 143.9 kB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
d1a9e7ec5779f8ff1bd273fdaaebaa6da04c50aa47b082c4a678d559dce4eafb
BLAKE2b-256 checksum
How to use checksums
26cd2acba34563c265c11e6550f2dd77316a70bd2be5de05a4be8be9f7aa482a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / aioquic-1.9.1-cp310-abi3-musllinux_1_2_i686.whl

Download URL aioquic-1.9.1-cp310-abi3-musllinux_1_2_i686.whl
Size 143.2 kB
Tags CPython 3.10 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
11f42f029c4b6174a4e367275b03c9a9aac3749981b6fe1e2f58c4c9bcc525e2
BLAKE2b-256 checksum
How to use checksums
b542d785b1da096eeee47a233be4ce65f3a2627ae194388ea1e7d07f1ce9e48a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / aioquic-1.9.1-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL aioquic-1.9.1-cp310-abi3-musllinux_1_2_aarch64.whl
Size 144.7 kB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
939b2497ae46aae451e7734a072d24adb82d8767b6709c457156b53a6d7a511a
BLAKE2b-256 checksum
How to use checksums
3b01786f1e0ffbfdf021c3d161cca850c725a5233457525a9062b82a63d27875
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / aioquic-1.9.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL aioquic-1.9.1-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 143.6 kB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
8774dfeae20cbc1d476c816d3fc593751fd540d48293881709e202cbe37aa3a7
BLAKE2b-256 checksum
How to use checksums
79a460d6dc8603f78fde7f62b9ba24a90a8a496aee6687bce39eb3dcfdc04b20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / aioquic-1.9.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl

Download URL aioquic-1.9.1-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
Size 145.0 kB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
353b699d8a72ea1a92063167c14c91c4d11eb83518d8b82062b9c710dae6c670
BLAKE2b-256 checksum
How to use checksums
0e85b3037585dbf561e29aa0170b0b5d6eb20aa4916ab1b3d33b960f61d6d0b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / aioquic-1.9.1-cp310-abi3-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl

Download URL aioquic-1.9.1-cp310-abi3-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl
Size 142.6 kB
Tags CPython 3.10 Linux glibc 2.28+ x86-32 Linux glibc 2.5+ x86-32 abi3
SHA-256 checksum
How to use checksums
7033d7ca1dd4173d3282a6000f6192c537254b3a143e2fa2116f6624d4f7bcc1
BLAKE2b-256 checksum
How to use checksums
94155286499879cad7c10a3b4b48b9cac1f4ad8732d3112a573c84ae40de9a90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / aioquic-1.9.1-cp310-abi3-macosx_11_0_arm64.whl

Download URL aioquic-1.9.1-cp310-abi3-macosx_11_0_arm64.whl
Size 135.6 kB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
47032142b6c4a1ca214eceb6c4d404fb98755f23659dcba8835fcbb70f285996
BLAKE2b-256 checksum
How to use checksums
b3591bf291f64391dd60d7c6a27480493f5566c4bd726a77dd166a13df431fa4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / aioquic-1.9.1-cp310-abi3-macosx_10_9_x86_64.whl

Download URL aioquic-1.9.1-cp310-abi3-macosx_10_9_x86_64.whl
Size 135.1 kB
Tags CPython 3.10 abi3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
835bd7c940770c6980ed39a47520e4037242fb10d67fe97e2501783cdb14979a
BLAKE2b-256 checksum
How to use checksums
b9d309ae96652c277c14805fa6595e03f476dadf2a048129bd69e07e7f3e0c75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for aioquic 1.9.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.9.1 This release

12 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page