Skip to content

gperonato/low-carbon-cooking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Low carbon cooking

This repository contains a calculator based on datatabases released by French government agencies as open data (Licence Ouverte):

  • the AGRIBALYSE® database (v. 3.0.1 2020) provided by the French Environment Protection Agency (ADEME) containing the environmental analysis of food products;
  • the CIQUAL food composition database (v. 2020) provided by the French Agency for Food, Environmental and Occupational health safety (ANSES).

Additional data regarding the carbon content of energy sources are issued from the European Environment Agency CO2 Intensity of Electricity generation (2017), the latest values from ADEME's Base carbone® (v 19.0 4/12/2020), and the Swiss Federal Office for the Environment (2014).

Note that the Italian translation of the CIQUAL database is provided without warranty of any kind, in particular in terms of accuracy or reliability: please check the original version in French (or the official English translation) in case of doubts.

Data pipeline

The data are downloaded and transformed from the original sources using a dataflows pipeline. The pipeline can be reproduced by running data/getData.py.

API

The calculator is based on the Recipe class, which is available both in Python (recipe.py) and Javascript (receipe.js)

Web app

See a running web app on www.mycookprint.com