Skip to content

eillarra/carbonize

Repository files navigation

Carbonize

github-tests-badge github-mypy-badge codecov-badge pypi-badge pypi-versions license-badge

Basic usage

from carbonize import Footprint

fp = Footprint()
fp.add_flight(a="BRU", b="BIO", two_way=True)
fp.add_train(distance=100)
fp.co2e  # in kg

Running tests

$ pytest --cov=carbonize --cov-report=term

Updating the underlying data

The Pickle files in the data folder can be updated using the bin/update_data.py file.