sb-ai-lab/Eco2AI

eco2AI is a python library which accumulates statistics about power consumption and CO2 emission during running code.

57
/ 100
Established

Monitors CPU and GPU power consumption in real-time, converting energy metrics to CO2 emissions using region-specific electricity grids (or global average if location is unavailable). Offers minimal-friction integration through simple context managers or decorators, with persistent session logging that captures device specs, runtime, and environmental parameters. Persists configuration settings across tracker instances and outputs all metrics to a local CSV file for downstream analysis.

270 stars and 1,023 monthly downloads. Used by 1 other package. No commits in the last 6 months. Available on PyPI.

Stale 6m
Maintenance 0 / 25
Adoption 18 / 25
Maturity 25 / 25
Community 14 / 25

How are scores calculated?

Stars

270

Forks

23

Language

Python

License

Apache-2.0

Last pushed

Mar 10, 2025

Monthly downloads

1,023

Commits (30d)

0

Dependencies

9

Reverse dependents

1

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/sb-ai-lab/Eco2AI"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.