summer24-green-code
A tool for measuring the carbon emissions of a Python program, using live carbon intensity from Electricity Maps, and power measurements from pyJoules
The aim of this project was to create a tool to measure carbon emissions of a user's code. It is not fully fit for users at the moment, and needs further development. To measure emissions we need measurements for energy usage and carbon intensity
Emissions = Carbon Intensity x Power x Time
Carbon Intensity
- Carbon intensity is a measure of how clean our electricity is
- Units are in grams of CO2 released per kilowatt hour of electricity generated
- Lower is better (renewables < fossil fuels)
- Varies with - time of day, time of year, region
Currently it does:
- Allow the user to enter a filepath to a python file
- Run that file and measure the energy usage using PyJoules
- Allow the user to specify multiple regions for comparison
- Pull the live carbon intensity for specified regions from Electricity Maps
- Pull 24 hours historical carbon intensity to show effect of running at different times
Requirements
- python > 3.10
Metadata
Release files for traceCarbon 0.0.2
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 |
|---|---|---|---|---|
| tracecarbon-0.0.2.tar.gz | 10.9 kB | Without provenance | Details for tracecarbon-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| traceCarbon-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for traceCarbon-0.0.2-py3-none-any.whl |
Total release size: 70.7 kB
Release files / tracecarbon-0.0.2.tar.gz
| Download URL | tracecarbon-0.0.2.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e6b6d923173289800525f9b3be62e6e59bd2ec612c84fdaf381ac210799e1f12
|
|
BLAKE2b-256 checksum How to use checksums |
f854c0d48ff89599dfbb95b95553166162c72a2e3295a6cb525f6d0edeb90943
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / traceCarbon-0.0.2-py3-none-any.whl
| Download URL | traceCarbon-0.0.2-py3-none-any.whl |
|---|---|
| Size | 59.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1f6c44ab23fe09084d318a36802dc2c63b0de612a1d272fd1c1df6a8997bed0
|
|
BLAKE2b-256 checksum How to use checksums |
1d8019081a95cc0c7256d5f4cbf119d005735647ba9e637ba1d44d1dcd561b5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for traceCarbon 0.0.2
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.