Skip to main content

Pytest plugin for measuring carbon emissions

Project description


Pytest plugin for measuring carbon emissions.


This plugin is installed via pip using:

pip3 install pytest-codecarbon


To use, simply run pytest with the --carbon option. When the tests have run, you will find an emissions.csv file containing each test, and the carbon, time and energy statistics for each test. You can also use --carbon-dir to specify a different directory for the emissions.csv file.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-codecarbon-1.0.0.tar.gz (3.5 kB view hashes)

Uploaded source

Built Distribution

pytest_codecarbon-1.0.0-py2.py3-none-any.whl (3.8 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page