Skip to content

Instantly share code, notes, and snippets.

@gpirrotta
Last active December 27, 2021 09:45
Show Gist options
  • Save gpirrotta/1136abf724b839406916b4a46d243db0 to your computer and use it in GitHub Desktop.
Save gpirrotta/1136abf724b839406916b4a46d243db0 to your computer and use it in GitHub Desktop.
Using Carbon Calculator from INI File
from carbon.calculator import CarbonCalculator
carbon = CarbonCalculator.from_ini_file('config.ini')
carbon.footprint("https://www.unime.it")
print(carbon.co2_grams)
//0.29566587414592505
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment