Nutri is a C++ project that retrieves and processes nutritional information from various sources.
Go to file
:^) b54b713d25 Merge pull request '?' (#2) from fix-regex into master
Reviewed-on: #2
2024-11-10 18:52:29 +00:00
src fix std::get error on invalid query 2024-11-10 19:33:18 +01:00
.clang-format first commit 2024-10-15 19:48:16 +02:00
.clangd fix clangd errors 2024-10-16 14:22:01 +02:00
.gitignore regex experimentations 2024-10-16 14:02:16 +02:00
CMakeLists.txt fix 2024-11-10 18:26:07 +01:00
LICENSE Add README and LICENSE 2024-11-10 19:12:09 +01:00
README.md Add README and LICENSE 2024-11-10 19:12:09 +01:00

README.md

Nutri

Nutri is a C++ project that retrieves and processes nutritional information from various sources.

Currently supported sources

  • WolframAlpha
  • OpenFoodFacts

Features

  • Fetch and display nutrition data
  • Export data to a CSV file
  • Cache previous queries
  • alternative QT based GUI

Installation

Dependencies

These libraries will be fetched automatically via CMake if they are not already installed on your system.

Clone the repository

git clone --depth=1 https://git.etenie.net/etenie/nutri.git
cd nutri

Build with CMake

cmake -S . -B build
cmake --build build

Now you will find the nutri executable in the build dir.

Usage

-h, --help: Print help
-f, --food: Specify the food item
-a, --amount: Specify the amount (in grams)

Example usage:

./nutri -f "ground beef" -a 100
Cals:    236 kcal
Protein: 26 g
Carbs:   0 g
Fats:    14 g

License

This project is licensed under the MIT License - see the LICENSE file for details.