web_programming.co2_emission

Get CO2 emission data from the UK CarbonIntensity API

Attributes

BASE_URL

Functions

fetch_from_to(→ list)

fetch_last_half_hour(→ str)

Module Contents

web_programming.co2_emission.fetch_from_to(start, end) list
web_programming.co2_emission.fetch_last_half_hour() str
web_programming.co2_emission.BASE_URL = 'https://api.carbonintensity.org.uk/intensity'