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

Avoid a ResourceWarning by avoiding an async generator - fixes #301 Checklist: - [ ] Add tests that demonstrate the correct behavior of the change. Tests should fail without the...

**Description** In the current implementation of Quart, both Quart.before_serving and Blueprint.before_app_serving execute simultaneously before serving the app, which aligns with expectations. However, certain scenarios may arise where Blueprint.before_app_serving relies on...

`app.teardown_websocket` no longer exists in 0.19.x. It was previously implemented in the Scaffold class, the previous base for Quart and Blueprint, which was deleted in commit https://github.com/pallets/quart/commit/598b771abd36fb2d581aa88a64336c88615a26bf **Code to reproduce:**...

Bumps [dessant/lock-threads](https://github.com/dessant/lock-threads) from 4 to 5. Release notes Sourced from dessant/lock-threads's releases. v5.0.0 Learn more about this release from the changelog. v4.0.1 Learn more about this release from the changelog....

dependencies

As after_request must run before the response has been sent, an after_response would be useful (and possible with ASGI) to run after the response has been sent.

The error message is telling us that a task was destroyed, but it's still pending. Specifically, we have a task with the name 'Task-1672902' that was in the middle of...

## Steps to reproduce With the following Quart app: ```python3 from quart import Response, make_response from quart_trio import QuartTrio app = QuartTrio(__name__) @app.route("/") async def hello_world() -> Response: return await...

Currently the `code` number of the `websocket.disconnect` event is [discarded in `ASGIWebsocketConnection`](https://github.com/pallets/quart/blob/6e202846385cf24311603d53ba6bc90b8d4eed56/src/quart/asgi.py#L183) making it inaccessible to the application. It is currently not distinguishable whether - the client closed the connection...

The error ConnectionAbortedError is thrown if the page's loading is canceled. Using @app.errorhandler(ConnectionAbortedError) with an appropriate function is completely ignored. How do I handle (or just suppress) this error? reproducible...

When using quart-trio, with the versions specified below, if a Trio task is cancelled, a KeyError("Custom exceptions must be subclasses of Exception.") exception is raised. This is because "trio.Cancelled" class...