TutorialΒΆ
The co2calculator package is available via pip:
pip install co2calculator
For a simple and basic emission calculation, import the calculation function and define some emission cause:
from co2calculator import calculate_trip
from co2calculator.enums import TransportationMode
co2e = calculate_trip(distance=200,transportation_mode=TransportationMode.CAR)