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.
Metadata
Release files for Quart-Trio-Twice 0.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Quart-Trio-Twice-0.6.1.tar.gz | 12.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Quart_Trio_Twice-0.6.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.7 kB
Release files / Quart-Trio-Twice-0.6.1.tar.gz
| Download URL | Quart-Trio-Twice-0.6.1.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd22551259a540515d7e23620e0211be36751777bd5c20f22db2c4c78edde79a
|
|
BLAKE2b-256 checksum How to use checksums |
df848689cc2a078cb2230da09bac031afaf20c0d2c3277b12508a9ff4874a6e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / Quart_Trio_Twice-0.6.1-py3-none-any.whl
| Download URL | Quart_Trio_Twice-0.6.1-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f60c72a8d4c75732b3e3577958bd9371b5408b7d2ebbc1ba13bff62c5c016987
|
|
BLAKE2b-256 checksum How to use checksums |
b2f90da7a725114ac526e9c3c0d1ca8205f2c4533781ea93674fc482f86af1ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for Quart-Trio-Twice 0.6.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.