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.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest-codecarbon-1.0.0.tar.gz | 3.5 kB | Without provenance | Details for pytest-codecarbon-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_codecarbon-1.0.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for pytest_codecarbon-1.0.0-py2.py3-none-any.whl |
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
|
Security for pytest-codecarbon 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.