Pyjoules

Latest version: v0.5.1

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

Scan your dependencies

Page 1 of 2

0.5.1

Changelog:

- refactor: change API name:
- `pyJoules.energy_meter.measureit` to `pyJoules.energy_meter.measure_energy`
- `pyJoules.energy_sample` to `pyJoules.energy_trace`
- `pyJoules.energy_handler` to `pyJoules.handler`
- `pyJoules.energy_device` to `pyJoules.device`
- `pyJoules.energy_device.energy_device_factory` to `pyJoules.device.device_factory`
- `pyJoules.energy_device.EnergyDevice` to `pyJoules.device.Device`
- `pyJoules.energy_device.energy_domain` to `pyJoules.device.domain`
- `pyJoules.energy_device.energy_domain.EnergyDomain` to `pyJoules.device.domain.Domain`
- `pyJoules.energy_device.NoSuchEnergyDeviceError` to `pyJoules.device.NoSuchDeviceError`
- `pyJoules.energy_device.energy_device_factory.EnergyDeviceFactory` to `pyJoules.device.device_factory.DeviceFactory`
- [Better ReadTheDoc documentation](https://pyjoules.readthedocs.io/en/latest/)
- add tests
- `EnergyTrace` can be used as a list of `EnergySample` (support for `+`, `+=` operator and `append` method
- handler refactoring:
- Class from `energy_recorder` module have been moved in `handler` module
- `handler.process` method process only `EnergyTrace`

0.4.0

Changelog:

- add mongoDB and pandas Handler
- support python 3.6
- bug fix

0.3.0

Changelog :

- Idle generation from a given trace
- add `EnergyTrace` class to represent a trace of measurement
- Meter are no longer iterable, you must use `EnergyMeter.get_trace()` to generate the measured energy trace

0.2.5

- fix: use time.time_ns instead of time.perf_counter to get timestamp

0.2.4.1

0.2.3

- Add CSVHandler and PrintHandler
- set PrintHandler as default handler for `EnergyContext` and `measureit` decorator

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.