Skip to main content

Build Status docs pypi python license

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)

Source distribution for quart-trio 0.13.0
File Size Uploaded
quart_trio-0.13.0.tar.gz 14.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for quart-trio 0.13.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.13.0 This release

2 release files

0.11.1

2 release files

0.10.0

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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