Rouver

Latest version: v2.6.3

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

Scan your dependencies

Page 8 of 10

0.5.4

Bug Fixes

- `rouver.handler`: `RouteHandlerBase.parse_args()` can now be called
inside `prepare_response()`.

0.5.3

API Additions

- `rouver.args`: Add `ArgumentParser`.

Improvements

- `rouver.handler`: `RouteHandlerBase.parse_args()` can now be called
multiple times.

0.5.2

API Additions

- `rouver.handler`: Add `RouteHandlerBase.parse_json_request()`.
- `rouver.handler`: Add `RouteHandlerBase.respond_with_content()`.
- `rouver.response`: Add `respond_with_content()`.

Improvements

- Include Content-Length header in JSON and HTML responses.

Bug Fixes

- Use first matching route handler, instead of crashing when multiple routes
match.

0.5.1

Bug Fixes

- `rouver.router`: Ignore trailing slashes.

0.5.0

API-Incompatible Changes

- `rouver.handler`: RouteHandlerBase is now an ordinary WSGI application.
It takes an WSGI environment and a start response handler as constructor
arguments.
- `rouver.handler`: Redesign RouteHandlerBase API. Implementations must now
implement `prepare_response()` instead of `__iter__()`.
- `rouver.handler`: All response methods now return an iterable instead
of an iterator.
- `rouver.handler`: `RouteHandlerBase.path_args` is now acquired from the
WSGI environment and will not contain the wildcard path.
- `rouver.response`: All response functions now return an iterable instead
of an iterator.
- `rouver.router`: `add_routes()` now requires a regular WSGI
application instead of a route handler.
- `rouver.types`: Remove `RouteHandler`. `RouteDescription` now expects
an `WSGIApplication` in the third field.

API Additions

- `rouver.handler`: Add `RouterHandlerBase.wildcard_path`.
- `rouver.router`: Add a field `rouver.path_args` to the WSGI environment
that contains the path arguments formerly passed to route handlers as the
second argument. The wildcard path is not added to this field.
- `rouver.router`: Add a field `rouver.wildcard_path` to the WSGI
environment that contains the wildcard path or the empty string.

0.4.5

API Additions

- `rouver.router`: Support sub-routers.

Page 8 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.