Tomodachi

Latest version: v0.27.0

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

Scan your dependencies

Page 9 of 24

0.16.2

- Added keyword arguments for overriding the `topic_prefix` and `routing_key_prefix` when publishing messages. Useful by for example intermediaries that needs to publishing messages to external services running on other environments, or services that are otherwise confined to a prefix / environment but needs to contact a core service, i.e. data collection, emails, etc.

0.16.1

- Bug fix for websocket handler functions signature inspection in middlewares, which caused the function signature to return a non-wrapped internal function.

0.16.0

- Refactored all internal middleware functionality to use the same base function for executing middlewares.
- A middleware context will be passed into the middlewares as the optional fifth argument, a `dict` that will live within the middleware excecution and may pass data along from middleware to middleware.

0.15.1

- Middlewares first argument `func: Callable` will now be wrapped with the endpoint function, using `functools.wraps`, so that signatures and keywords may be inspected and applied accordingly. (github: **0x1EE7**)

0.15.0

- `message_middleware` will now receive four arguments instead of the earlier three. `func: Callable, service: Any, message: Any, topic: str` for SNS and `func: Callable, service: Any, message: Any, route_key: str` for AMQP. If you are using middlewares for messaging you will most likely need to update these.
- Additional kwargs may be passed into the `aws_sns_sqs_publish` and `amqp_publish` functions and will be forwarded to the `message_protocol` `build_message` function.

0.14.8

- Fixes an issue when websockets were initiated together with an HTTP middleware applying additional arguments and keywords.
- Sets the `request._cache['is_websocket']` value before handing the processing off to the middleware.
- Fixes a bug causing `aiohttp.web.FileResponse` return values to not show any content.

Page 9 of 24

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.