Skip to main content

Home and office nutrient tracking software

Project description

Nutritracker

Extensible command-line tool for nutrient analysis.

Requires:

  • Python 3.6.5 or later

  • Redis server

  • (Optional) Android 5.0+ phone, USB, adb, developer mode

Install PyPi release (from pip)

pip install nutri

(Note: use pip3 on Linux/macOS)

Update to latest

pip install -U nutri

Subscribe to the preview/beta channel

pip install nutri --pre

Unsubscribe (back to stable)

pip uninstall nutri
pip install nutri

Using the source-code directly

git clone git@github.com:gamesguru/nutri.git
cd nutri
./nutri -h

Downloading Food Data

Linux/macOS Script (curl)

cd ~
curl -L https://api.bitbucket.org/2.0/repositories/dasheenster/nutri-utils/downloads/nutri.zip -o nutri.zip
unzip -o nutri.zip
rm nutri.zip

Windows (web download)

Download nutri.zip:

https://bitbucket.org/dasheenster/nutri-utils/downloads/

Extract the .nutri folder to your home folder.

  • On Windows this is C:\Users\<your_name>

  • On macOS it’s /Users/<your_name>

  • On Linux it’s /home/<your_name>

These can also be downloaded from the Android app, or synced over USB cable.

You can also import your own flat file databases. The full database import process is explained with nutri db --help

Better directions for getting set up (on Windows) will (eventually) be posted on youtube.

Currently Supported Data

USDA Stock database

  • Standard flat file database, 8790 foods

Relative USDA Extensions

  • Flavonoid, Isoflavonoids, and Proanthocyanidins

Extra Fields

  • IF, ORAC, GI, Omega-3, and (anti-nutrients) oxalic acid, mercury, etc

Note: We are trying to start a collection of fields and make our models more general. Please upload and get in touch at gitter.im/nutritracker/nutri … (these can consist in magazine cutouts, NCBI tables, or other sources of nutrient data)

Not Supported Yet

Branded Foods Database

  • (LARGE 100MB+! PC ONLY)

Canadian Nutrient Files

  • Similar to USDAstock, except relational (not flat file)

Usage

Many features will require you to do the editing in notepad or your favorite text editor. Then you can use the analyze command to perform the analyses.

Run the nutri script to output usage.

Usage: nutri <command>

Commands

config                  change name, age, and vitamin targets

db                      import, edit and verify databases

field                   import, pair and manage fields

search                  search databases or recipes

analyze | anl           critique a date (range), meal, recipe, or food

sync                    sync android device

bugreport               upload database info, and version number

--help | -h             show help for a given command

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nutratracker-0.0.0.dev17.tar.gz (5.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page