Quart-Trio 0.6 temporary fork
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd22551259a540515d7e23620e0211be36751777bd5c20f22db2c4c78edde79a |
|
MD5 | e08093e310b9ae30b428c3d2c88f3935 |
|
BLAKE2b-256 | df848689cc2a078cb2230da09bac031afaf20c0d2c3277b12508a9ff4874a6e3 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f60c72a8d4c75732b3e3577958bd9371b5408b7d2ebbc1ba13bff62c5c016987 |
|
MD5 | d1849fc050b81917e0b61f8b7fe54e63 |
|
BLAKE2b-256 | b2f90da7a725114ac526e9c3c0d1ca8205f2c4533781ea93674fc482f86af1ef |