Skip to main content

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.

Release files for pytest-codecarbon 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-codecarbon 1.0.0
File Size Uploaded
pytest-codecarbon-1.0.0.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-codecarbon 1.0.0
File Interpreter ABI Platform
pytest_codecarbon-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 7.3 kB

Release files / pytest-codecarbon-1.0.0.tar.gz

Download URL pytest-codecarbon-1.0.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c9bf071ee0664649b8a93afdfef8aa9d5581230e3c7fc5d44a3c0dd5d764fbb1
BLAKE2b-256 checksum
How to use checksums
3fd857407b7d019b886e3f3632195a49a674f675a861dffeead892a646cac73a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / pytest_codecarbon-1.0.0-py2.py3-none-any.whl

Download URL pytest_codecarbon-1.0.0-py2.py3-none-any.whl
Size 3.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b950a8784de02037dc18635e50c74b675e90bb4824007b6127168b07d09d9538
BLAKE2b-256 checksum
How to use checksums
68c727d60288a3d7b46463cf4e57de9b8d288d549e170310c08c7dd7ec187ba4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page