Phanos

Latest version: v0.3.2

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

Scan your dependencies

Page 1 of 2

0.3.2

Changed

- `curr_node` is now part of `Profiler` instance instead of being global variable
- `Profiler.tree` is now initialized in `Profiler.__init__` instead of in configuration methods

Fixed

- `curr_node` ContextVar and `Profiler.tree` are now properly initialized in `Profiler` instance

0.3.1

Changed
- removed deprecation warning for phanos_profiler variable
- `ContextTree.delete_node` method now returns `bool` if node was deleted or not

0.3.0

Added

- `Profiler.async_config`, `Profiler.async_dict_config` to support async handlers
- `AsyncImpProfHandler` for non-blocking messaging


Changed
- `Profiler` functionality for handling records and profiling moved to `SyncExtProfiler` and `AsyncExtProfiler` due
to support of async handlers, without breaking changes
- `MetricWrapper.label_names` are now `Set` instead of `List`
- `StoreOperationDecorator` no longer raises `ValueError` when input of `operation` is not valid,
now it is logged as warning and record is ignored
- `Profiler.delete_metric` and `Profiler.delete_handler` no longer raising `KeyError`when metric/handler not exists
now it is logged as warning

Deprecated

- `request_size_profile` parameter in `Profiler.config()` and `Profiler.dict_config()` is deprecated and will be removed in future versions, use
`response_size_profile` instead
- `phanos_profiler` variable is deprecated and will be removed in future versions, use `profiler` instead

0.2.2

Changed

- time profiler measurements have precision of two decimal places
- records are printed in one log message instead of log per record

0.2.1

Added

- added support for Mypy analysis

0.2.0

Added

- if `error_raised_label` set and error is raised during profiling, profiling will be printed with logger
- added `error_raised_label` flag into `Profiler.config` and `Profiler.dict_config` if turned
on, each record have additional label describing if profiled function/method raised error
- asyncio profiling support
- `phanos.publisher.NamedLoggerHandler` designed to be used of configuration `profile.dict_config`


Changed
- `PhanosProfiler` class renamed to `Profiler`
- `current_node` of `ContextTree` moved into `Contextvar` due to asyncio support
- limit `requirements` to minimum and separate development ones into `requirements-dev.txt`
- `messaging` is now defined in this project and thus separated from `imp-prof`

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.