Quart-Trio is an extension for Quart to support the Trio event loop. This is an alternative to using the asyncio event loop present in the Python standard library and supported by default in Quart.
Quickstart
QuartTrio can be installed via pip,
$ pip install quart-trio
and requires Python 3.13 or higher (see python version support for reasoning).
A minimal Quart example is,
from quart import websocket
from quart_trio import QuartTrio
app = QuartTrio(__name__)
@app.route('/')
async def hello():
return 'hello'
@app.websocket('/ws')
async def ws():
while True:
await websocket.send('hello')
app.run()
if the above is in a file called app.py it can be run as,
$ python app.py
To deploy in a production setting see the deployment documentation.
Contributing
Quart-Trio is developed on GitHub. You are very welcome to open issues or propose merge requests.
Testing
The best way to test Quart-Trio is with Tox,
$ pip install tox
$ tox
this will check the code style and run the tests.
Help
The Quart-Trio and Quart documentation are the best places to start, after that try searching stack overflow, if you still can’t find an answer please open an issue.
Release files for quart-trio 0.13.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quart_trio-0.13.0.tar.gz | 14.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quart_trio-0.13.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.3 kB
Release files / quart_trio-0.13.0.tar.gz
| Download URL | quart_trio-0.13.0.tar.gz |
|---|---|
| Size | 14.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76617d2651ab42824ff8ee53a7bde8e482a8543aac4381f8333f8e97ca90f46f
|
|
BLAKE2b-256 checksum How to use checksums |
7eb283e171f86cdbd5cfc043a7337c55e8000a4bd5473cb518332e77b85d2bb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.
Transparency logRelease files / quart_trio-0.13.0-py3-none-any.whl
| Download URL | quart_trio-0.13.0-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
737ac10c548c94a3827f432fffaca9770859d2503d93cdf98e11661908295f37
|
|
BLAKE2b-256 checksum How to use checksums |
450b36aaa673aa079c55cd40ac64701b6cb516afecda46b172da18e044aa6568
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.
Transparency log