Hopeit.engine

Latest version: v0.25.4

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

Scan your dependencies

Page 5 of 15

0.19.1

______________
- Plugins:

- config_manager: add `client_timeout` setting to `config_manager` to prevent the server from waiting indefinitely for a response.
- apps-visualizer: using `config_manager` `client_timeout` setting preventing UI from blocking.

0.19.0

______________
- Engine:

- BREAKING CHANGE:

- SERVICE events for continuously running processes now must use `service_running`
helper method. This method can be used to create a loop in which the service is executed
allowing it to be gracefully stopped when the service or server is stopped.

0.18

0.18.0

______________
- Engine:

- `hopeit_server` command now supports the `--api-auto` parameter:

- Setting: When the `--api-file` is not specified, using `--api-auto=version;title;description`
enables the OpenAPI feature in hopeit.engine.
To define the API General Info, use `--api-auto=0.17;Simple Example;Simple Example OpenAPI specs`.
The default value is `None`.

- Test build for Python 3.11 has been added.

0.17.1

______________
- Engine:
- `hopeit_server` command have new `--workers-timeout` param:

- Setting `--workers-timeout=N` a worker not responding for more than N seconds will be killed and restarted.
Setting N to 0 disables the timeout completely.
Note that this is only the gunicorn worker timeout and does not affect endpoints and stream timeouts.
Recommended value of N is above the maximum endpoint or stream timeouts in the application.
Default value is 0.

0.17.0

______________
- Engine:

Significant performance improvements by executing `hopeit_server` using `gunicorn` in a multicore environment.

- `hopeit_server` command have new `--workers` and `--worker-class` params:

- Setting `--workers=2` allows to start `hopeit.engine` with 2 engine workers to respond
requests from the same port. This feature was implemented with `gunicorn`.
Default value is `--workers=1`. Max number of workers is \(cpu_count * 2\) + 1.
- To set `--worker-class` there are two possible options: `GunicornWebWorker`, `GunicornUVLoopWebWorker`.
Refer to `aiohttp <https://docs.aiohttp.org/en/stable/deployment.html#start-gunicorn>`_ docs for more details.
Default value is `--worker-class=GunicornWebWorker`

Page 5 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.