Skip to main content

No project description provided

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tracecarbon-0.0.2.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

traceCarbon-0.0.2-py3-none-any.whl (59.8 kB view details)

Uploaded Python 3

File details

Details for the file tracecarbon-0.0.2.tar.gz.

File metadata

  • Download URL: tracecarbon-0.0.2.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for tracecarbon-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e6b6d923173289800525f9b3be62e6e59bd2ec612c84fdaf381ac210799e1f12
MD5 3726274ae47031734d12a6cb1e0dc3c8
BLAKE2b-256 f854c0d48ff89599dfbb95b95553166162c72a2e3295a6cb525f6d0edeb90943

See more details on using hashes here.

File details

Details for the file traceCarbon-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: traceCarbon-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 59.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for traceCarbon-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1f6c44ab23fe09084d318a36802dc2c63b0de612a1d272fd1c1df6a8997bed0
MD5 3fcadd7969981c5e0de87620cad84fbb
BLAKE2b-256 1d8019081a95cc0c7256d5f4cbf119d005735647ba9e637ba1d44d1dcd561b5b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page