Skip to main content

Quart-Trio 0.6 temporary fork

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.

Quickstart

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__)

@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 GitLab. 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.

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-Twice-0.6.1.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

Quart_Trio_Twice-0.6.1-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file Quart-Trio-Twice-0.6.1.tar.gz.

File metadata

  • Download URL: Quart-Trio-Twice-0.6.1.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for Quart-Trio-Twice-0.6.1.tar.gz
Algorithm Hash digest
SHA256 dd22551259a540515d7e23620e0211be36751777bd5c20f22db2c4c78edde79a
MD5 e08093e310b9ae30b428c3d2c88f3935
BLAKE2b-256 df848689cc2a078cb2230da09bac031afaf20c0d2c3277b12508a9ff4874a6e3

See more details on using hashes here.

File details

Details for the file Quart_Trio_Twice-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: Quart_Trio_Twice-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

File hashes

Hashes for Quart_Trio_Twice-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f60c72a8d4c75732b3e3577958bd9371b5408b7d2ebbc1ba13bff62c5c016987
MD5 d1849fc050b81917e0b61f8b7fe54e63
BLAKE2b-256 b2f90da7a725114ac526e9c3c0d1ca8205f2c4533781ea93674fc482f86af1ef

See more details on using hashes here.

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