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
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9bf071ee0664649b8a93afdfef8aa9d5581230e3c7fc5d44a3c0dd5d764fbb1 |
|
MD5 | 7c434f4749435da680904baf28504040 |
|
BLAKE2b-256 | 3fd857407b7d019b886e3f3632195a49a674f675a861dffeead892a646cac73a |
File details
Details for the file pytest_codecarbon-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: pytest_codecarbon-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b950a8784de02037dc18635e50c74b675e90bb4824007b6127168b07d09d9538 |
|
MD5 | 1c39b984fcf28569c91eb61ead122631 |
|
BLAKE2b-256 | 68c727d60288a3d7b46463cf4e57de9b8d288d549e170310c08c7dd7ec187ba4 |