Quart

Latest version: v0.19.6

Safety actively analyzes 638681 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 11

0.15.0

-----------------

* Add the routes command, ``quart routes`` to output the routes in the
app.
* Add the ability to close websocket connections with a reason if
supported by the server.
* Revert AppContext lifespan interaction change in 0.14.0. It is not
possible to introduce this and match Flask's ``g`` usage.
* Add syntatic sugar for route registration allowing ``app.get``,
``app.post``, etc... for app and blueprint instances.
* Support handlers returning a Werkzeug Response.
* Remove Quart's exceptions and use Werkzeug's. This may cause
incompatibility to fix import from ``werkzeug.exceptions`` instead
of ``quart.exceptions``.
* Switch to Werkzeug's locals and Sans-IO wrappers.
* Allow for files to be sent via test client, via a ``files``
argument.
* Make the NoAppException clearer.
* Support nested blueprints.
* Support while_serving functionality.
* Bugfix Correct routing host case matching.
* Bugfix cache flashed msg on request.flashes.
* Bugfix debug defaults and overrides using run.
* Bugfix adopt Werkzeug's timestamp parsing.
* Bugfix only show the traceback response if propagating exceptions.
* Bugfix unhandled exception handling.
* Bugfix support url_for in websocket contexts.
* Bugfix cookie jar handling in test client.
* Bugfix support SERVER_NAME configuration for the run method.
* Bugfix correctly support root_paths.
* Bugfix support str and byte streamed responses.
* Bugfix match Flask and consume the raw data when form parsing.

0.14.1

-----------------

* Bugfix add missing receive to test request connection and docs.
* Bugfix Add the templates_auto_reload API.
* Bugfix setting the debug property on the app now also sets the auto
reloading for the jinja environment.

0.14.0

-----------------

* Add user_agent property to requests/websockets - to easily extract
the user agent using Werkzeug's UserAgent class.
* Bugfix set the content length when using send file - instead of
using chunked transfer encoding.
* Introduce a test_app method - this should be used to ensure that
the startup & shutdown functions are run during testing.
* Bugfix prevent local data sharing.
* Officially support Python 3.9.
* Add send and receive json to the test websocket client - allows a
simpler way for json to be sent and received using the app's encoder
and decoder.
* Add signals for websocket message receipt and sending - specifically
the ``websocket_received`` and ``websocket_sent`` signals.
* Add dump and load functions to the json module - as matching Flask.
* Enhance the dev server output.
* Change AppContext lifespan interaction - this pushes the app context
on startup and pops on shutdown meaning ``g`` is available
throughout without being cleared.
* Major refactor of the testing system - this ensures that any
middleware and lifespans are correctly tested. It also introduces a
``request`` method on the test client for a request connection (like
the websocket connection) for testing streaming.

0.13.1

-----------------

* Bugfix add the data property to the patched request attributes.
* Bugfix WebSocket ASGI rejection (for servers that don't support the
ASGI WebSocket response extension).
* Bugfix don't wrap commands in with_appcontext by default.
* Bugfix CSP parsing for the report-only header.
* Bugfix wait for tasks to complete when cancelled.
* Bugfix clean up the generator when the response exits.
* Bugfix request data handling with Flask-Patch.

0.13.0

-----------------

* Bugfix set cookies from the testing jar for websockets.
* Restore Flask-Patch sync handling to pre 0.11. This means that sync
route handlers, before request, and more, are **not** run in a
thread if Flask-Patch is used. This restores Flask-SQLAlchemy
support (with Flask-Patch).
* Bugfix accept additional attributes to the delete cookie.

0.12.0

-----------------

* Add certfile and keyfile arguments to cli.
* Bugfix request host value returns an empty string rather than None
for HTTP/1.0 requests without a host header.
* Bugfix type of query string argument to Werkzeug Map fixing a
TypeError.
* Add ASGI scope dictionary to request.
* Ensure that FlaskGroup exists when using flask_patch by patchin the
flask.cli module from quart.
* Add quart.cli.with_appcontext matching the Flask API.
* Make the quart.Blueprint registration api compatible with
flask.Blueprint.
* Make the add_url_rule api match the flask API.
* Resolve error handlers by most specific first (matches Flask).
* Support test sessions and context preservation when testing.
* Add lookup_app and lookup_request to flask patch globals.
* Make quart.Blueprint API constructor fully compatible with
flask.Blueprint
* Bugfix ensure (url) defaults aren't copied between blueprint routes.

Page 4 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.