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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pytest_codecarbon-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b950a8784de02037dc18635e50c74b675e90bb4824007b6127168b07d09d9538 |
|
MD5 | 1c39b984fcf28569c91eb61ead122631 |
|
BLAKE2b-256 | 68c727d60288a3d7b46463cf4e57de9b8d288d549e170310c08c7dd7ec187ba4 |