Code
This commit is contained in:
@ -0,0 +1 @@
|
||||
pip
|
||||
@ -0,0 +1,25 @@
|
||||
Copyright (c) Jeremy Lainé.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
* Neither the name of aioquic nor the names of its contributors may
|
||||
be used to endorse or promote products derived from this software without
|
||||
specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@ -0,0 +1,194 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: aioquic
|
||||
Version: 1.2.0
|
||||
Summary: An implementation of QUIC and HTTP/3
|
||||
Author-email: Jeremy Lainé <jeremy.laine@m4x.org>
|
||||
License: BSD-3-Clause
|
||||
Project-URL: Homepage, https://github.com/aiortc/aioquic
|
||||
Project-URL: Changelog, https://aioquic.readthedocs.io/en/stable/changelog.html
|
||||
Project-URL: Documentation, https://aioquic.readthedocs.io/
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Environment :: Web Environment
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: BSD License
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Topic :: Internet :: WWW/HTTP
|
||||
Requires-Python: >=3.8
|
||||
Description-Content-Type: text/x-rst
|
||||
License-File: LICENSE
|
||||
Requires-Dist: certifi
|
||||
Requires-Dist: cryptography >=42.0.0
|
||||
Requires-Dist: pylsqpack <0.4.0,>=0.3.3
|
||||
Requires-Dist: pyopenssl >=24
|
||||
Requires-Dist: service-identity >=24.1.0
|
||||
Provides-Extra: dev
|
||||
Requires-Dist: coverage[toml] >=7.2.2 ; extra == 'dev'
|
||||
|
||||
aioquic
|
||||
=======
|
||||
|
||||
.. image:: https://img.shields.io/pypi/l/aioquic.svg
|
||||
:target: https://pypi.python.org/pypi/aioquic
|
||||
:alt: License
|
||||
|
||||
.. image:: https://img.shields.io/pypi/v/aioquic.svg
|
||||
:target: https://pypi.python.org/pypi/aioquic
|
||||
:alt: Version
|
||||
|
||||
.. image:: https://img.shields.io/pypi/pyversions/aioquic.svg
|
||||
:target: https://pypi.python.org/pypi/aioquic
|
||||
:alt: Python versions
|
||||
|
||||
.. image:: https://github.com/aiortc/aioquic/workflows/tests/badge.svg
|
||||
:target: https://github.com/aiortc/aioquic/actions
|
||||
:alt: Tests
|
||||
|
||||
.. image:: https://img.shields.io/codecov/c/github/aiortc/aioquic.svg
|
||||
:target: https://codecov.io/gh/aiortc/aioquic
|
||||
:alt: Coverage
|
||||
|
||||
.. image:: https://readthedocs.org/projects/aioquic/badge/?version=latest
|
||||
:target: https://aioquic.readthedocs.io/
|
||||
:alt: 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.
|
||||
|
||||
``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.
|
||||
|
||||
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`_.
|
||||
|
||||
Features
|
||||
--------
|
||||
|
||||
- minimal TLS 1.3 implementation conforming with `RFC 8446`_
|
||||
- QUIC stack conforming with `RFC 9000`_ (QUIC v1) and `RFC 9369`_ (QUIC v2)
|
||||
* IPv4 and IPv6 support
|
||||
* connection migration and NAT rebinding
|
||||
* logging TLS traffic secrets
|
||||
* logging QUIC events in QLOG format
|
||||
* version negotiation conforming with `RFC 9368`_
|
||||
- HTTP/3 stack conforming with `RFC 9114`_
|
||||
* server push support
|
||||
* WebSocket bootstrapping conforming with `RFC 9220`_
|
||||
* datagram support conforming with `RFC 9297`_
|
||||
|
||||
Installing
|
||||
----------
|
||||
|
||||
The easiest way to install ``aioquic`` is to run:
|
||||
|
||||
.. code:: bash
|
||||
|
||||
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 the OpenSSL development headers.
|
||||
|
||||
Linux
|
||||
.....
|
||||
|
||||
On Debian/Ubuntu run:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
sudo apt install libssl-dev python3-dev
|
||||
|
||||
On Alpine Linux run:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
sudo apk add openssl-dev python3-dev bsd-compat-headers libffi-dev
|
||||
|
||||
OS X
|
||||
....
|
||||
|
||||
On OS X run:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
brew install openssl
|
||||
|
||||
You will need to set some environment variables to link against OpenSSL:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
export CFLAGS=-I$(brew --prefix openssl)/include
|
||||
export LDFLAGS=-L$(brew --prefix openssl)/lib
|
||||
|
||||
Windows
|
||||
.......
|
||||
|
||||
On Windows the easiest way to install OpenSSL is to use `Chocolatey`_.
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
choco install openssl
|
||||
|
||||
You will need to set some environment variables to link against OpenSSL:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$Env:INCLUDE = "C:\Progra~1\OpenSSL\include"
|
||||
$Env:LIB = "C:\Progra~1\OpenSSL\lib"
|
||||
|
||||
Running the examples
|
||||
--------------------
|
||||
|
||||
`aioquic` comes with a number of examples illustrating various QUIC usecases.
|
||||
|
||||
You can browse these examples here: https://github.com/aiortc/aioquic/tree/main/examples
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
``aioquic`` is released under the `BSD license`_.
|
||||
|
||||
.. _read the documentation: https://aioquic.readthedocs.io/en/latest/
|
||||
.. _dnspython: https://github.com/rthalley/dnspython
|
||||
.. _hypercorn: https://github.com/pgjones/hypercorn
|
||||
.. _mitmproxy: https://github.com/mitmproxy/mitmproxy
|
||||
.. _Web Platform Tests: https://github.com/web-platform-tests/wpt
|
||||
.. _tested for interoperability: https://interop.seemann.io/
|
||||
.. _QUIC implementations: https://github.com/quicwg/base-drafts/wiki/Implementations
|
||||
.. _cryptography: https://cryptography.io/
|
||||
.. _Chocolatey: https://chocolatey.org/
|
||||
.. _BSD license: https://aioquic.readthedocs.io/en/latest/license.html
|
||||
.. _RFC 8446: https://datatracker.ietf.org/doc/html/rfc8446
|
||||
.. _RFC 9000: https://datatracker.ietf.org/doc/html/rfc9000
|
||||
.. _RFC 9114: https://datatracker.ietf.org/doc/html/rfc9114
|
||||
.. _RFC 9220: https://datatracker.ietf.org/doc/html/rfc9220
|
||||
.. _RFC 9297: https://datatracker.ietf.org/doc/html/rfc9297
|
||||
.. _RFC 9368: https://datatracker.ietf.org/doc/html/rfc9368
|
||||
.. _RFC 9369: https://datatracker.ietf.org/doc/html/rfc9369
|
||||
@ -0,0 +1,72 @@
|
||||
aioquic-1.2.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
aioquic-1.2.0.dist-info/LICENSE,sha256=jX4xQ89ui69Ofw7l_ArFknyeC83E6Mgyn8Pf5049HPU,1503
|
||||
aioquic-1.2.0.dist-info/METADATA,sha256=UrtLGwqhHVJVVJ2fvMSaxF-4Qm-o1CAir0odgG7f6wg,6327
|
||||
aioquic-1.2.0.dist-info/RECORD,,
|
||||
aioquic-1.2.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
aioquic-1.2.0.dist-info/WHEEL,sha256=YU-_AmJaQHVuj2oV7rp4R8w--gLra7_KJbMZX5zWGNo,148
|
||||
aioquic-1.2.0.dist-info/top_level.txt,sha256=wIoYXYSiS7-Q4mTEPQ437O21BliXaBRsqhRDaDp_SeY,8
|
||||
aioquic/__init__.py,sha256=MpAT5hgNoHnTtG1XRD_GV_A7QrHVU6vJjGSw_8qMGA4,22
|
||||
aioquic/__pycache__/__init__.cpython-313.pyc,,
|
||||
aioquic/__pycache__/buffer.cpython-313.pyc,,
|
||||
aioquic/__pycache__/tls.cpython-313.pyc,,
|
||||
aioquic/_buffer.abi3.so,sha256=r0vwkOCh3BUlZbf7li5oOWFwH0Igy6e8dUJwCuHI_cQ,42656
|
||||
aioquic/_buffer.c,sha256=sFIXTidQJ7XkDxB8-Wg5kbiAamo1KjaJMI1rG1uJroc,12282
|
||||
aioquic/_buffer.pyi,sha256=e34UHSxy8Wp2E_bqVEpNLOyKAtByJ5-ff73TUrD4G7I,1014
|
||||
aioquic/_crypto.abi3.so,sha256=1lixAF_xGPdhvNtzswclhTjvvClMN9KDmK9_GrJlewk,5967120
|
||||
aioquic/_crypto.c,sha256=Jl1Ncmqva4hrOG8mn5C-d40qqo1MenXUq0KWrbt080Y,12089
|
||||
aioquic/_crypto.pyi,sha256=nvDbJk0cTD5EAllb8wvCfUxMBOE_-DeFxgndvuDEPik,610
|
||||
aioquic/asyncio/__init__.py,sha256=JsklCTY12r8P2FyM8bfbdq-eM-gDcxonnleLxqzduxg,123
|
||||
aioquic/asyncio/__pycache__/__init__.cpython-313.pyc,,
|
||||
aioquic/asyncio/__pycache__/client.cpython-313.pyc,,
|
||||
aioquic/asyncio/__pycache__/protocol.cpython-313.pyc,,
|
||||
aioquic/asyncio/__pycache__/server.cpython-313.pyc,,
|
||||
aioquic/asyncio/client.py,sha256=9hhKRR7ctGxVok2sEAHlfWbSw7Kjyf6CMRfo8NRCyH8,3791
|
||||
aioquic/asyncio/protocol.py,sha256=Z7afi6sQV72Hi4SmxVq0mrAoZEvmaSo8uQRYkMkTVjs,9843
|
||||
aioquic/asyncio/server.py,sha256=uXbNRrE1GlPN_WbyzgTUNc4r11yH7nFh3di9EBQgbPQ,8432
|
||||
aioquic/buffer.py,sha256=JjhIHbmSU5kcSKUJhM2ojhCaEErviauPTKBJEcMcdSg,770
|
||||
aioquic/h0/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
aioquic/h0/__pycache__/__init__.cpython-313.pyc,,
|
||||
aioquic/h0/__pycache__/connection.cpython-313.pyc,,
|
||||
aioquic/h0/connection.py,sha256=0DiPj3_JmqQoDaeqdOanRLghNFLpao3PWgNi_GANBTg,2558
|
||||
aioquic/h3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
aioquic/h3/__pycache__/__init__.cpython-313.pyc,,
|
||||
aioquic/h3/__pycache__/connection.cpython-313.pyc,,
|
||||
aioquic/h3/__pycache__/events.cpython-313.pyc,,
|
||||
aioquic/h3/__pycache__/exceptions.cpython-313.pyc,,
|
||||
aioquic/h3/connection.py,sha256=5-idx097NTdxEyp_360Q_4EginECy1j_M7jg4JCI190,43238
|
||||
aioquic/h3/events.py,sha256=fAsT4AEZR5PWCYdcj6fq6HhNvDQrSoJPINiloq1y5oo,2147
|
||||
aioquic/h3/exceptions.py,sha256=ZwnJ3kKbSzG31gJY7SWN7G4rDFx0VJZ6aSDmn2o5uwg,341
|
||||
aioquic/py.typed,sha256=sow9soTwP9T_gEAQSVh7Gb8855h04Nwmhs2We-JRgZM,7
|
||||
aioquic/quic/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
aioquic/quic/__pycache__/__init__.cpython-313.pyc,,
|
||||
aioquic/quic/__pycache__/configuration.cpython-313.pyc,,
|
||||
aioquic/quic/__pycache__/connection.cpython-313.pyc,,
|
||||
aioquic/quic/__pycache__/crypto.cpython-313.pyc,,
|
||||
aioquic/quic/__pycache__/events.cpython-313.pyc,,
|
||||
aioquic/quic/__pycache__/logger.cpython-313.pyc,,
|
||||
aioquic/quic/__pycache__/packet.cpython-313.pyc,,
|
||||
aioquic/quic/__pycache__/packet_builder.cpython-313.pyc,,
|
||||
aioquic/quic/__pycache__/rangeset.cpython-313.pyc,,
|
||||
aioquic/quic/__pycache__/recovery.cpython-313.pyc,,
|
||||
aioquic/quic/__pycache__/retry.cpython-313.pyc,,
|
||||
aioquic/quic/__pycache__/stream.cpython-313.pyc,,
|
||||
aioquic/quic/configuration.py,sha256=6jtrVGIoXEGuuca0h7k9cjd-uVm9kX8mM-8MSKlenTw,4549
|
||||
aioquic/quic/congestion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
aioquic/quic/congestion/__pycache__/__init__.cpython-313.pyc,,
|
||||
aioquic/quic/congestion/__pycache__/base.cpython-313.pyc,,
|
||||
aioquic/quic/congestion/__pycache__/cubic.cpython-313.pyc,,
|
||||
aioquic/quic/congestion/__pycache__/reno.cpython-313.pyc,,
|
||||
aioquic/quic/congestion/base.py,sha256=oqARpP2Yabdptn23FDKnkByAIHHVWGEetpxtJhp19gY,3858
|
||||
aioquic/quic/congestion/cubic.py,sha256=R2tU8M7SujU0twzokgVBZblD3UQj9DZkBaD_myCviIQ,8018
|
||||
aioquic/quic/congestion/reno.py,sha256=fJi0LkrtRsTgDVF__77WCEfPA0e_oQ8f1C7Z_imIg7M,2855
|
||||
aioquic/quic/connection.py,sha256=fBRZQHO7370EhRVCRvxShD0Wa26wwSd53frBZ9pZTXQ,139259
|
||||
aioquic/quic/crypto.py,sha256=rBQmqSp__SIt6KkHNpO_hH9lPkyI8yR4Am9a_V0xNW4,8150
|
||||
aioquic/quic/events.py,sha256=QH1jzrBUTsFDu3qs_Vj_3tda7IhnDd0IbIJL9tBq8hM,2728
|
||||
aioquic/quic/logger.py,sha256=yn1NiuCGjMBN3cAH0L1Fa3uygDkyArx1gVBI7fotG8A,10336
|
||||
aioquic/quic/packet.py,sha256=SqHOLoWIkIis5_rkUcFjJekx3A2gK83U7UpbguqBJVE,20076
|
||||
aioquic/quic/packet_builder.py,sha256=_S7zCBh-899MP7kp2CO1jt-1nB0sq1HBOfBb77IhtU8,13072
|
||||
aioquic/quic/rangeset.py,sha256=34Slw9RFXp4FNBQutOWqWrtm1-u4B2FOYtMFJHpqHdA,3133
|
||||
aioquic/quic/recovery.py,sha256=vUwW3dW67xkEFSTPMqmPtHJBdQTQBdyCIm2O1-Exb7E,13534
|
||||
aioquic/quic/retry.py,sha256=VKgwH65NZkVF7qLNxjiSMytyodWYsKWXqw8YSvKvcqs,1882
|
||||
aioquic/quic/stream.py,sha256=9HpaX7Ffa9SJiG6xpbsrl0dqfElwV2nUR606GlKLYok,12081
|
||||
aioquic/tls.py,sha256=oZsI5LwGfF-dV_9VJV7Vhr61oY3r7Wh34n1WsTk_48Q,76410
|
||||
@ -0,0 +1,6 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: bdist_wheel (0.43.0)
|
||||
Root-Is-Purelib: false
|
||||
Tag: cp38-abi3-manylinux_2_17_x86_64
|
||||
Tag: cp38-abi3-manylinux2014_x86_64
|
||||
|
||||
@ -0,0 +1 @@
|
||||
aioquic
|
||||
Reference in New Issue
Block a user