quart
quart copied to clipboard
An async Python micro framework for building web applications.
Quart currently supports only `str | None` for the template folder argument of the app, while Flask also supports `os.PathLike[str]`. https://github.com/pallets/quart/blob/b5593ca4c8c657564cdf2d35c9f0298fce63636b/src/quart/app.py#L287 [flask/src/flask/app.py](https://github.com/pallets/flask/blob/f61172b8dd3f962d33f25c50b2f5405e90ceffa5/src/flask/app.py#L234) ```python template_folder: str | os.PathLike[str] | None =...
The current example code in the documentation assigns a function to the `endpoint: str | None` argument of add_websocket. Example code from docs: ```python def websocket_route(): ... app.add_websocket('/', websocket_route) ```...
Add `request` to imports since it is used in the example in `if "text/event-stream" not in request.accept_mimetypes:`
When I close my application and the websocket is active, the server raise this uncaught stack of exception: ``` service | Traceback (most recent call last): service | File "/usr/local/lib/python3.13/site-packages/uvicorn/protocols/websockets/wsproto_impl.py",...
Environment: - Python version: 3.12.8 - Quart version: 0.20.0 - Machine: MacOS M1 running Sequoia 15.3 When I close an app with the Ctrl+C command, then try to run it...
See #406 Please let me know if someone tested this on Mac
Hot reload not working when `app.py` has `+x` permissions. To replicate, create `app.py` like this, run it in debug mode ``` from quart import Quart app = Quart(__name__) @app.route("/api") async...
Add `quart.blueprints.Blueprint` type annotation for the `blueprints` property instead of the inherited `flask.sansio.blueprints.Blueprint` type. fixes #404 With a given MRE: ```python from quart import Quart from quart.blueprints import Blueprint app...
When using Quart's Blueprint, mypy doesn't recognize its inheritance from `flask.sansio.blueprints.Blueprint`. This causes type errors when accessing blueprints through `app.blueprints`, which returns the Flask Blueprint type. ## Environment - Python...
Typo fix in tutorial docs: subscibe -> subscribe