Skip to main content

Pytest plugin for measuring carbon emissions

Project description

pytest-codecarbon

Pytest plugin for measuring carbon emissions.

Installation

This plugin is installed via pip using:

pip3 install pytest-codecarbon

Usage

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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

Details for the file pytest-codecarbon-1.0.0.tar.gz.

File metadata

  • Download URL: pytest-codecarbon-1.0.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for pytest-codecarbon-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c9bf071ee0664649b8a93afdfef8aa9d5581230e3c7fc5d44a3c0dd5d764fbb1
MD5 7c434f4749435da680904baf28504040
BLAKE2b-256 3fd857407b7d019b886e3f3632195a49a674f675a861dffeead892a646cac73a

See more details on using hashes here.

File details

Details for the file pytest_codecarbon-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_codecarbon-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b950a8784de02037dc18635e50c74b675e90bb4824007b6127168b07d09d9538
MD5 1c39b984fcf28569c91eb61ead122631
BLAKE2b-256 68c727d60288a3d7b46463cf4e57de9b8d288d549e170310c08c7dd7ec187ba4

See more details on using hashes here.

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