Nutri is a C++ project that retrieves and processes nutritional information from various sources.
Go to file
:^) 48bfda760d
build: Search for files instead off explicitly giving CMake file list and enable color diagnostics
2024-11-24 04:04:52 +01:00
src Fix the parser check 2024-11-11 14:48:23 +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 ignore build dir 2024-11-10 19:58:34 +01:00
CMakeLists.txt build: Search for files instead off explicitly giving CMake file list and enable color diagnostics 2024-11-24 04:04:52 +01:00
LICENSE Add README and LICENSE 2024-11-10 19:12:09 +01:00
README.md Make the build command use all cores 2024-11-11 14:22:08 +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 -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)

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.