Energy Monitor
A Python package to monitor energy consumption and CO2 emissions for LLM models and other computational tasks. The package provides tools to track power usage of both CPU and GPU, as well as monitor system memory usage. It also estimates CO2 emissions based on energy consumption.
Features
- Monitors CPU power usage
- Monitors GPU power usage (NVIDIA GPUs only)
- Monitors memory usage
- Estimates CO2 emissions based on energy consumption
Installation
You can install the package using pip:
pip install python-energy-monitor
Usage
You can use the EnergyMonitor class to start monitoring energy consumption and CO2 emissions:
from energy_monitor import EnergyMonitor
# Initialize the energy monitor
monitor = EnergyMonitor()
# Log energy consumption data
monitor.log_energy_consumption()
# Stop the emissions tracker and get CO2 emissions
monitor.stop_tracker()
# Shutdown the monitor
monitor.shutdown()
Requirements
- Python 3.6+
- psutil
- pynvml (for NVIDIA GPU monitoring)
- codecarbon (for CO2 emissions tracking)
Metadata
Release files for python-energy-monitor 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_energy_monitor-0.0.1.tar.gz | 4.1 kB | Without provenance | Details for python_energy_monitor-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_energy_monitor-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for python_energy_monitor-0.0.1-py3-none-any.whl |
Total release size: 9.2 kB
Release files / python_energy_monitor-0.0.1.tar.gz
| Download URL | python_energy_monitor-0.0.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b2265bf2f78c85b6119ca555ea285bd7287d0504b7063e02c63f0f0b7c7b763f
|
|
BLAKE2b-256 checksum How to use checksums |
61e4fa8a312d355904d88f205c373822db44e93ec111a0baf12807c545018c8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.6
|
Release files / python_energy_monitor-0.0.1-py3-none-any.whl
| Download URL | python_energy_monitor-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3728b4f723b42a739ac94325f33ba049cd54b1f4fe1430361c604e7fb803acc7
|
|
BLAKE2b-256 checksum How to use checksums |
73e9ce1daabe37fdf49443f0826d646d0fb167a5026ec85c9bb758dc819b3b9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.6
|
Security for python-energy-monitor 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.