https://github.com/alexhroom/pytest-codecarbon
Pytest plugin for tracking carbon emissions
https://github.com/alexhroom/pytest-codecarbon
codecarbon pytest pytest-plugin python sustainability
Last synced: about 22 hours ago
JSON representation
Pytest plugin for tracking carbon emissions
- Host: GitHub
- URL: https://github.com/alexhroom/pytest-codecarbon
- Owner: alexhroom
- License: mit
- Created: 2022-06-15T10:35:53.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-15T14:22:28.000Z (almost 4 years ago)
- Last Synced: 2024-08-11T11:05:29.302Z (almost 2 years ago)
- Topics: codecarbon, pytest, pytest-plugin, python, sustainability
- Language: Python
- Homepage: https://pypi.org/project/pytest-codecarbon/
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.