Esmerald

Latest version: v3.2.5

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

Scan your dependencies

Page 1 of 15

3.2.5

Fixed

- Added missing options into get_scheduler of AsynczConfig.

3.2.4

Added

!!! danger
This new version deprecates an old style declaring the scheduler for Esmerald.
There is a new [SchedulerConfig](https://esmerald.dev/configurations/scheduler).

- New [SchedulerConfig](https://esmerald.dev/configurations/scheduler) interface for Esmerald schedulers and
custom schedulers.
- New [AsynczConfig]() that implements the configuration for Asyncz scheduler.
- New `scheduler_config` parameter to Esmerald and EsmeraldAPISettings.

Changed

- Deprecate `scheduler_class`, `scheduler_configurations` and `scheduler_tasks`
in favour of the new [SchedulerConfig](https://esmerald.dev/configurations/scheduler) approach.
- Deprecate the use of the `EsmeraldScheduler`.
- Creation of multilingual documentation by DJWOMS in https://github.com/dymmond/esmerald/pull/339

Breaking changes

You must update the imports to be:

From:

python
from asyncz.contrib.esmerald.decorator import scheduler


To:

python
from esmerald.contrib.schedulers.asyncz.decorator import scheduler


Check the documentation about the [Scheduler](https://www.esmerald.dev/scheduler/scheduler/), [handlers](https://www.esmerald.dev/scheduler/handler/) and the [SchedulerConfig](https://esmerald.dev/configurations/scheduler) to
see how to update your current project to the new version with the minimum disruption.

This change should not break existing functionality, instead, its just an update to make it more modular.
There is an [example](https://github.com/dymmond/scheduler-example) how to simply use this.

Fixed

- Added missing options `--settings` into the `runserver` directive.

3.2.3

Changed

- `EsmeraldScheduler` integration with Asyncz is not assembled before the configuration of the routing,
allowing multiple events to be triggered without overriding.

3.2.2

These changes were missed from the version 3.2.1

Changed

- Updated the default scheduler class to be in the configuration.
- Internal Dispatcher implemented for the routing and response handlers update.

3.2.1

Changed

- `Context` is not inheriting directly from Lilya.

Fixed

- The default `scheduler_class` internal settings validation.

3.2.0

Added

- `settings_module` also supports import as string.
- New `encoders` to Esmerald settings and instance parameters.
- New `register_encoder` encoder in any Esmerald and ChildEsmerald instances.
- New `encoders` to Esmerald responses. This allows to use any Response as ASGI application.
with unique custom encoders.
- [Encoders](https://esmerald.dev/encoders) documentation.

Changed

- Internal refactor of the `classmethods` of the `TransformerModel`. The class methods
are now normal python functions.
- Unifying the transformers in the signature model.
- Rename `EsmeraldSignature` to `SignatureModel`.

Page 1 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.