quart icon indicating copy to clipboard operation
quart copied to clipboard

An async Python micro framework for building web applications.

Results 94 quart issues
Sort by recently updated
recently updated
newest added

The current streaming response API requires returning an async generator. This is really awkward to use given that so many async classes are not RAII - initialised with `__init__` and...

```python import asyncio from quart import Quart, Response app = Quart(__name__) @app.route('/') async def sub(): response = Response( data_stream(), mimetype="text/event-stream", ) response.timeout = None return response async def data_stream(): try:...

https://github.com/pallets/quart/blob/77077bdf6ff63c7c4230241a9328cd1c89a94357/src/quart/helpers.py#L392 Passing a `Response` object to `abort` is valid, the typing should be corrected here Environment: - Python version: N/A - Quart version: 0.18.3

According to the `asyncio` documentation, [it is necessary to keep a strong reference to a task to avoid it disappearing mid-execution because the event loop only keeps weak references to...

I'm trying to use `after_this_websocket` to cleanup some long-running tasks that go alongside websocket connections. It appears this isn't called reliably enough for me to use it as a cleanup....

## Reproduce Follow the testing part of the documentation: https://pgjones.gitlab.io/quart/how_to_guides/startup_shutdown.html#testing ```bash AttributeError: 'async_generator' object has no attribute 'test_client' ``` The app fixture is not created as an async fixture which...

The app fixture is not created as an async fixture which results in breaking the second part of the documentation where we attempt to access the `test_client()` it gives an...

Per the [quart documentation](https://quart.palletsprojects.com/en/latest/how_to_guides/logging.html#configuration), logging configuration can be provided by configuring a logger called 'quart.app' via dictConfig. However, I've found that the log level pulled from `current_app.logger` uses the name...

Using the minimal example websocket code the quart server hangs on CTRL+C until all clients have closed their connections. This also applies to SSE examples. `app.py` ``` python from quart...