Valohai Wattson 🔌⚡
About
Wattson is a Python library for estimating cloud compute carbon emissions.
It currently supports estimating emissions for a range of Amazon EC2 instances in a variety of regions.
Usage
You can install this package with pip by running pip install valohai-wattson.
If you are currently using AWS instances, you can calculate the carbon emissions for your instances using the following code:
from wattson import estiamte_carbon_emissions
training_emissions = estimate_carbon_emissions(
instance_type='c4.2xlarge',
region='us-east-1',
hours=1,
load_percentage=0.5,
)
The returned value will be of the type wattson.EmissionsEstimation and have the following information:
data_license: The license of the data used to estimate the emissions.region: The region the original computation was performed in.instance_type: The instance type of the original computation.avg_load: The average CPU load during the original computation (defaults to 50% if not specified).scope_2_co2eq: The estimated CO2 emissions for the electricity used in the original computation.scope_3_co2eq: The estimated CO2 emissions for manufacturing of the device used in the original computation, assuming a 4-year usage.compensated: Were any of the emissions of the original computation compensated using e.g. carbon emissions compensation or renewable energy credits.details: Any additional details about e.g. the compensation methodology.
Acknowledgements
This project uses the EC2 Carbon Emissions Dataset by Teads Engineering.
Licenses
- The library code is Copyright (c) 2022 Valohai, licensed under the MIT License.
- The Teads Engineering EC2 Carbon Emissions Dataset is licensed under the Creative Commons Attribution 4.0 International License.
Metadata
Release files for valohai-wattson 22.5.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 |
|---|---|---|---|---|
| valohai-wattson-22.5.0.tar.gz | 17.8 kB | Without provenance | Details for valohai-wattson-22.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| valohai_wattson-22.5.0-py3-none-any.whl | Python 3 | none | any | Details for valohai_wattson-22.5.0-py3-none-any.whl |
Total release size: 37.2 kB
Release files / valohai-wattson-22.5.0.tar.gz
| Download URL | valohai-wattson-22.5.0.tar.gz |
|---|---|
| Size | 17.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d5c3fa52a105deb65e270ea1853bd67b46706dee79331150b0dc6d7ce80db25
|
|
BLAKE2b-256 checksum How to use checksums |
1b8cad306b0432abd902b70ecb782c1ecd296babd7a834a8a036068977da69e4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / valohai_wattson-22.5.0-py3-none-any.whl
| Download URL | valohai_wattson-22.5.0-py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6d08f6a2bb0de3c11e303a3cf26dfdc65c48c0dded96585d40ffd4812a5be9e
|
|
BLAKE2b-256 checksum How to use checksums |
e23508f6036890bdbd8e667eabbad1bab4c2817c5694d4d234e0acbe9cb97af1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for valohai-wattson 22.5.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.