Skip to main content

A Quart extension to provide trio support

Project description

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.


QuartTrio can be installed via pip,

$ pip install quart-trio

and requires Python 3.7.0 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__)

async def hello():
    return 'hello'

async def ws():
    while True:
        await websocket.send('hello')

if the above is in a file called it can be run as,

$ python

To deploy in a production setting see the deployment documentation.


Quart-Trio is developed on GitHub. You are very welcome to open issues or propose merge requests.


The best way to test Quart-Trio is with Tox,

$ pip install tox
$ tox

this will check the code style and run the tests.


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.

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

quart-trio-0.10.0.tar.gz (13.0 kB view hashes)

Uploaded source

Built Distribution

quart_trio-0.10.0-py3-none-any.whl (14.7 kB view hashes)

Uploaded py3

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