Measuring the carbon footprint of your Python applications

What is CodeCarbon?

How to install CodeCarbon

Grab this code from GitHub

How to monitor emissions

  • As an object
  • As a decorator
  • As a context manager

As an object

Grab this code from GitHub

As a decorator

Grab this code from GitHub

As a context manager

Grab this code from GitHub

How to make your emissions data more visible

View larger version
Grab this code from GitHub

How does this help my organisation?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store