$npx skillfedfor your agent

codecarbon

With conditionsPyPI MonitoringReleased Aug 2026204.8K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — codecarbon-3.3.0-py3-none-any.whl
v3.3.0 · released 2026-08-04 · Python >=3.10 · 16 runtime deps: arrow, authlib, joserfc, click, pandas, prometheus_client, psutil, py-cpuinfo

Yes, if you need to measure and track carbon emissions from local computing. The library is actively maintained, has no known vulnerabilities, installs easily, and uses a permissive MIT license. It fills a specific niche—local hardware emissions tracking—and is complementary to tools that track remote API calls. Install it if environmental impact of your code matters to your workflow or reporting requirements.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • GPU tracking requires nvidia-ml-py and NVIDIA hardware; CPU-only tracking works on any system.
  • Low friction install with a pure Python wheel.

License · maintenance · safety

MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for commercial and research projects without licensing concerns.

last release 2026-08-04 (10 days) · last repo commit 2026-08-14 · 1,897 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 204,797 downloads/mo, #9,600 on PyPI

Verify before relying

pip install codecarbon

from codecarbon import EmissionsTracker

tracker = EmissionsTracker()
tracker.start()
# Your code here
emissions = tracker.stop()
print(f"Emissions: {emissions} kg CO₂")
  • Accuracy of carbon intensity data by region and how frequently it is updated
  • Overhead and performance impact of continuous hardware monitoring on long-running processes
  • Whether disk I/O, network, and cooling are modeled or remain unmeasured
Same gist for agents: .md · .json

What it is and what it does

CodeCarbon is a Python library that estimates the carbon emissions produced by your local computing hardware. It measures or estimates power consumption from CPU, GPU, and RAM, then applies the regional carbon intensity of your electricity grid to calculate CO₂ emissions in kilograms. The library offers both a programmatic API (via EmissionsTracker) and a command-line interface for tracking emissions without modifying code.

It's designed for developers and researchers who want to understand and reduce the environmental footprint of their computational work—particularly useful for machine learning experiments, data processing, and other CPU- or GPU-intensive tasks. The package integrates with a web dashboard for visualization and provides configuration through files, environment variables, or Python arguments.

Use it for

  • Measure carbon emissions from training machine learning models to compare efficiency across different architectures or hyperparameters
  • Track total CO₂ impact of long-running data processing or scientific computing jobs to report environmental metrics
  • Monitor GPU utilization and emissions during development to identify and optimize energy-intensive code paths
  • Establish baseline carbon footprint for a research project and track improvements over time
  • Generate emissions reports for sustainability reporting or academic papers on green computing

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to measure and track carbon emissions from local computing.

The library is actively maintained, has no known vulnerabilities, installs easily, and uses a permissive MIT license. It fills a specific niche—local hardware emissions tracking—and is complementary to tools that track remote API calls. Install it if environmental impact of your code matters to your workflow or reporting requirements.

Install

codecarbon on PyPI

Before you install

Low friction install with a pure Python wheel. Actively maintained with a recent release; last commit within days. Supports modern Python versions (3.10–3.14). Sixteen runtime dependencies are manageable but add some weight to the dependency tree.

Requires Python 3.10 or later. GPU tracking requires nvidia-ml-py and NVIDIA hardware; CPU-only tracking works on any system.

License in practice

MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for commercial and research projects without licensing concerns.

Quickstart

pip install codecarbon

from codecarbon import EmissionsTracker

tracker = EmissionsTracker()
tracker.start()
# Your code here
emissions = tracker.stop()
print(f"Emissions: {emissions} kg CO₂")

Verify before relying

  • Accuracy of carbon intensity data by region and how frequently it is updated
  • Overhead and performance impact of continuous hardware monitoring on long-running processes
  • Whether disk I/O, network, and cooling are modeled or remain unmeasured

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
16 packages
arrowauthlibjoserfcclickpandasprometheus_clientpsutilpy-cpuinfopydanticnvidia-ml-pyrapidfuzzrequestsquestionaryrichtyperpycountry
MaintenanceActively maintained 10 days since the last release
Last repo commit
First released
Downloads204,797 / month, #9,600 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Natural Language :: EnglishProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: codecarbon-3.3.0-py3-none-any.whl

Tags

Capabilities
carbon emissions trackingCO2 measurement local computinghardware energy consumption monitorenvironmental impact of codeGPU CPU RAM emissionscarbon footprint estimationgreen computing metrics
Topics
sustainabilityenvironmental-impacthardware-monitoring

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “carbon emissions tracking”

  • codecarbonMeasures and tracks carbon emissions from local computing hardware…
  • pyobjc-framework-CarbonProvides Python bindings to macOS's Carbon framework, enabling Python…
  • graphitesendSends metrics to Graphite's Carbon backend over TCP or UDP, with…

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.

Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.

Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.

Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also graphyte · graphitesend · comet-ml · nvidia-cuda-cccl · joulescope · nvidia-cuda-cccl-cu12 · cirq-google · pyTibber · access · greeneye_monitor