Skip to content

A free, open-source nutritional data calculator tool with a graphical user interface (GUI) for analyzing the nutritional content of Italian meals.

License

Notifications You must be signed in to change notification settings

FabbriniMarco/MacroMicro-ITA-Tracker

Repository files navigation

Circle logo

MacroMicro-ITA-Tracker: Analyze Diets with Italian Food Tables

MacroMicro-ITA-Tracker is a free open-source nutritional data calculator tool that helps researchers and clinicians to analyze the nutritional content of Italian meals. This tool allows users to select foods from a comprehensive list of 900 foods, specify the quantity in grams, and get detailed information about the macro and micronutrients present in the dietary intake.

Screenshot 1 Screenshot 2


Table of Contents



Features

  • Extensive Food Database: Includes nutritional data for 900 foods.
  • Detailed Nutritional Information: Provides information on both macro and micronutrients for selected foods.
  • Search Functionality: Allows users to search for foods by name.
  • Quantity Specification: Users can specify the quantity of each food item to get proportionate nutritional information.
  • Data Export: Users can export the aggregated nutritional data to a TSV file. It's up to user choice wether to generate an export per-meal, per-daily intake or whatever time span.
  • Clear Data: Option to clear all inputs and start a new analysis.
  • Dual Language: The database based on italian foods can be consulted both with Italian and English food names, for practicity.
  • Info and Help Links: Provides links to usage instructions and proper citation to the original data.


Installation and usage

Windows 10/11 users: portable pre-built .exe file

If you are a Windows user, you just need the MacroMicro-ITA-Tracker.exe file. It can be obtained:


In addition you can also clone this repo, or manually download the .exe file from the Release section. Once downloaded simply double-click the MacroMicro-ITA-Tracker.exe file. That's it!

The .exe file has been signed, therefore no warnings related to unknown developers should appear when opening the program.

Linux and MacOS users: run the python script

Prerequisites

  • Python 3.7 or higher
  • ttkbootstrap library
  • tkinter library (usually comes pre-installed with Python)

Use pip to install the required libraries:

py -m pip install tk
py -m pip install ttkbootstrap

Clone this repository and navigate to the project directory:

git clone https://github.com/FabbriniMarco/MacroMicro-ITA-Tracker.git
cd MacroMicro-ITA-Tracker
python MacroMicro-ITA-Tracker.py

You can also download the tarball archive from the Release section and decompress it.

wget https://github.com/FabbriniMarco/MacroMicro-ITA-Tracker/releases/download/v1.0/MacroMicro-ITA-Tracker.tar.gz
tar -zxvf MacroMicro-ITA-Tracker.tar.gz
cd MacroMicro-ITA-Tracker
python MacroMicro-ITA-Tracker.py


Add food and export data

  1. Select Food: Use the dropdown menu to select a food item. You can also search for a food by typing part of its name in the search bar.
  2. Enter Quantity: Enter the quantity (in grams) of the selected food.
  3. Add Food: Click the "Add Food" button to add the food to your list. The added foods along with their quantities will be displayed in a list.
  4. Delete: Next to each added food in the list, a "Delete" button is displayed, allowing (upon a second confirm) to remove the corresponding item, in case a food is added by mistake.
  5. Duplicate: Next to each "Delete" button, you will find a "Duplicate" button. Once pressed, it allows to duplicate the given food (with the same amount) to speed up recording repeated daily-,weekly- intakes.
  6. Export Data: Once done adding all the foods, click the "Export Data" button to save the nutritional information to a TSV file.
  7. Wipe Data: Click the "Wipe Data" button to clear all inputs and start a new analysis. You will be prompted to confirm this action.

Info: Click the "Info" button for details about the program, including version, maintainer contact, and reference links.
External Links: Use the "Github" button to visit this project's GitHub repository.

The food tables used by this tool have been downloaded from the "CREA Centro di ricerca Alimenti e Nutrizione" (Italian Council for Agricultural Research and Analysis of Agricultural Economic) web page: https://www.alimentinutrizione.it/sezioni/tabelle-nutrizionali and https://www.alimentinutrizione.it. Food data in the CREA food tables are reported with macronutrients in absolute quantities (grams) and micronutrients in percentages based on the Protein and Lipid fractions. When a food item is added to the list, the tool calculates the relative macronutrient content based on the input quantity. This relative amount is then used to determine the precise absolute quantity of micronutrients according to the percentages from the food tables. The tool generates a TSV table that shows the total amounts of both micro and macronutrients in absolute quantities (grams, milligrams, micrograms, millimoles, or kJ/kcal for energy).



Visual example

GIF 1 GIF 2


Data Sources

The nutritional data used by this tool has been obtained from the CREA food tables, which can be consulted at the original source, Web page: https://www.crea.gov.it/alimenti-e-nutrizione and Web page: https://www.alimentinutrizione.it



Citation

If you use this tool, please cite both the tool and the CREA, Centro di ricerca Alimenti e la Nutrizione.

@Manual{,
  title = {MacroMicro-ITA-Tracker: Analyze Diets with Italian Food Tables},
  author = {Marco Fabbrini},
  year = {2024},
  note = {Version v1.0},
  url = {https://github.com/FabbriniMarco/MacroMicro-ITA-Tracker.git},
}
@Manual{,
  title = {TABELLE DI COMPOSIZIONE DEGLI ALIMENTI, CREA AN, Aggiornamento 2019},
  author = {CREA-AN},
  year = {2019},
  url = {https://www.alimentinutrizione.it/tabelle-di-composizione-degli-alimenti},
}

Example:

Fabbrini, M. (2024) 'MacroMicro-ITA-Tracker: Analyze Diets with Italian Food Tables'. Available on Github: https://github.com/FabbriniMarco/MacroMicro-ITA-Tracker.git


CREA-AN (2019) 'TABELLE DI COMPOSIZIONE DEGLI ALIMENTI, CREA AN, Aggiornamento 2019'. Website: https://www.alimentinutrizione.it/tabelle-di-composizione-degli-alimenti



License

This project is licensed under the custom MacroMicro-ITA-Tracker License. You are free to use, copy, and distribute the software for private, personal, and academic research purposes.

Restrictions:

  • No commercial use
  • No modifications
  • No patent use

For full licensing details, see the LICENSE file.

For any use cases not covered under this license, please contact the maintainer and CREA, Centro di ricerca Alimenti e la Nutrizione.

About

A free, open-source nutritional data calculator tool with a graphical user interface (GUI) for analyzing the nutritional content of Italian meals.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages