quart
quart copied to clipboard
An async Python micro framework for building web applications.
#### Summary According to [werkzeug's documentation](https://werkzeug.palletsprojects.com/en/3.0.x/datastructures/#werkzeug.datastructures.ContentRange), end is not included in the range, so end should not be reduced by one. #### Changes: Changed `end - 1` to `end` and...
I've found a bug about `ContentRange` . This is how it is used in `quart`: ```py self.headers["Accept-Ranges"] = accept_ranges self.content_range = ContentRange( request_range.units, self.response.begin, # type: ignore self.response.end - 1,...
When creating a Quart app using Poetry as a dependency manager and using Poetry to run a server with scripts, how reload fails to restart the app. 1. Create Quart...
Fixes pallets/flask#5322 Checklist: - [x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change. - [x] Add or update relevant docs, in the...
The server sent event class ```class ServerSentEvent: data: str event: str | None = None id: int | None = None retry: int | None ... ``` appears to be...
Hot reload cause a permission denied error in docker container: ``` Traceback (most recent call last): File "/app/z.py", line 9, in app.run() File "/usr/local/lib/python3.11/site-packages/quart/app.py", line 864, in run restart() File...
It would be nice to have an accept_range flag on the semd_file, that would set the accept header, and check for range requests in the context. It seems easy enough...
The codeblock imported `pathlib.Path` but it was unused, so the operation for `app.root_path / "blog.db"` would error since `app.root_path` is defined as a string. - fixes #347 Checklist: - [x]...
The blog tutorial has a section that imports `pathlib.Path` but doesn't use it, causing the lines where the path to the db and schema files fail. ```python from pathlib import...
Hot-reloading would fail when the script is in a path with space in it. E.g D:\Python\path with space\main.py would not work but D:\Python\test\main.py would reload just fine. The exact error...