Pytheus

Latest version: v0.5.0

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

Scan your dependencies

Page 1 of 3

0.5.0

What's Changed
* improved new redis sample generation by Llandy3d in https://github.com/Llandy3d/pytheus/pull/51
* make EXPIRE_KEY_TIME configurable by Llandy3d in https://github.com/Llandy3d/pytheus/pull/53
* Prom patching by Llandy3d in https://github.com/Llandy3d/pytheus/pull/54

---


- New improved implementation of `_generate_samples` for `MultiProcessRedisBackend`:
- Improved performance for generating metrics
- Fixed a bug where on multiprocess on some scrapes a metric wouldn't be picked up due to missing local collector child
- Now on labeled metrics, the labels/value combination will be initialized to 0 if it doesn't exists (before only the key would be initialized)

- Redis keys expire time can now be configured via the `expire_key_time` config passed when loading the backend

- Experimental `prometheus_client` patching in-place to quickly test the library on existing codebases

- **DEPRECATED**: `key_prefix` for redis configuration. Prefer a side-car container or a separate redis/redis db per service.

0.4.0

What's Changed
* python 3.12 support

0.3.0

What's Changed
* fix `generate_metrics` to handle custom collectors by Llandy3d in https://github.com/Llandy3d/pytheus/pull/48

0.2.0

What's Changed
* support for kwargs in `labels()` by Llandy3d in https://github.com/Llandy3d/pytheus/pull/46

`kwargs` (keyword arguments) support for the `labels()` method.

python
metric = Counter("counter", "desc", required_labels=["method"])

dict approach
metric.labels({"method": "POST"})

kwargs approach
metric.labels(method="POST")

0.1.0

What's Changed
* asgi middleware for fastapi by Llandy3d in https://github.com/Llandy3d/pytheus/pull/41

All the core functionality of the library it's stable and this deserves a version bump 🥳

0.0.16

What's Changed
* add `Summary` metric type by Llandy3d in https://github.com/Llandy3d/pytheus/pull/40

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.