Esmerald

Latest version: v3.6.1

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

Scan your dependencies

Page 1 of 18

3.6.1

Added

- Allow passing extensions as string.

Changed

- Change `media_type` parameter of `Response` from `MediaType.JSON` to `None` to match the default of the underlying lilya Response.

Fixed

- OpenAPI responses.
- Enum definitions.

3.6.0

Added

- New `Security` section with all the explanations how to use the internals of Esmerald.
- Added new `Security` object used for security dependencies using Esmerald `esmerald.security` package.

Changed

- Updates from python-jose to PyJWT as dependency contrib library.
- Remove OpenAPI security as they where redundant and not 100% compliant with OpenAPI security.
- Allow the new Lilya StaticFiles allowing to provide multiple directories with fallthrough behaviour.
- Deprecate support for Mako.
- Internal code organisation and cleaning.

Fixed

- Fix cli detection of wrapped esmerald instances or different ASGI servers.
- Allow passing multiple `StaticFilesConfig` configurations in a tuple.
- Allow passing multiple directories to `StaticFiles` by removing the stringification in `StaticFilesConfig` so a fallthrough behavior can be established.
Note: this requires a newer lilya version.

3.5.1

Changed

- Use assigned encoders at requests for json_encoder.
- Allow overwriting the `LILYA_ENCODER_TYPES` for different encoder sets or tests.
- Use more orjson for encoding requests.

3.5.0

Added

- Allow passing HTTP/WebSocket handlers directly to routes. They are automatically wrapped in Gateways-
- Allow passing HTTP/WebSocket handlers directly to routes as alternative to defining a Gateway/WebsocketGateway.

Changed

- Esmerald is now under the License BSD-3. This aims to protect the maintainers and contributors and
the license will be now the final.
- Pluggables can now receive plain Extensions and Extension classes.
- Rename of Pluggables to Extensions:
- **Breaking**: The `pluggables` attribute and parameter are now renamed to `extensions`. The old name is still available but deprecated.
- **Breaking**: The `add_pluggable` method is now renamed to `add_extension`. The old name is still available but deprecated.
- The documentation will refer now to extensions with `Pluggable` as a setup wrapper.

Fixed

- Directive `runserver` now allows the use of ASGI middlewares.
- Remove the dependency of an app being an `esmerald` instance for `runserver`.
- Check the environment variables instead of settings variable for esmerald settings in the runserver.

3.4.4

Added

- Support for [Taskfile](https://taskfile.dev) when generating a project via directive.
- Add taskfile for development mode.

Changed

- Internal JSONResponse is now natively supporting ORJSON.

3.4.3

Changed

- PydanticEncoder now tries mode `json` first as default.
- Stop ignoring warnings in the tests.
- Stop shadowing the BaseDirective `help` from Lilya.
- Asyncz settings for empty tasks.
- Update the docs for the templates.

Page 1 of 18

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.