broussea1901 / low-carbon-cooking

A web-based cookprint calculator

Home Page:https://www.mycookprint.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

A web-based cookprint calculator

https://www.mycookprint.com

License:MIT License


Languages

Language:HTML 46.2%Language:Python 27.0%Language:JavaScript 26.4%Language:CSS 0.5%