Skip to main content

Home and office nutrient tracking software

Project description

Latest version Build status unknown| Monthly downloads unknown| Python3 (3.6 - 3.9)| Code style: black| License GPL-3

Extensible command-line tools for nutrient analysis.

Requires:

  • Python 3.6.5 or later

  • Package manager (pip3)

  • Internet connection

See database: https://github.com/gamesguru/ntdb

See server: https://github.com/gamesguru/nutra-server

Notes

On macOS and Linux, you may need to add the following line to your .profile file:

export $PATH=$PATH:/usr/local/bin

On Windows you should check the box during the Python installer to include Scripts directory in your PATH. This can be done manually after installation too.

Install PyPi release (from pip)

pip install nutra

(Note: use pip3 on Linux/macOS)

Update to latest

pip install -U nutra

Subscribe to the development release

pip install --pre -U nutra

Using the source-code directly

git clone git@github.com:nutratech/cli.git
cd nutra
pip3 install -r requirements.txt
./nutra -h

When building the PyPi release use the commands:

python3 setup.py sdist
twine upload dist/nutra-X.X.X.tar.gz

Currently Supported Data

USDA Stock database

  • Standard reference database (SR28) [7794 foods]

Relative USDA Extensions

  • Flavonoid, Isoflavonoids, and Proanthocyanidins [1352 foods]

Usage

Requires internet connection to remote server, or a locally running server (set env: NUTRA_OVERRIDE_LOCAL_SERVER_HOST).

Run the nutra script to output usage.

Usage: nutra <command>

Commands

usage: nutra [-h] [-v] {init,search,sort,anl,day,recipe,bio,nt} ...

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit

nutra subcommands:
  {init,search,sort,anl,day,recipe,bio,nt}
    init                setup profiles, USDA and NT database
    search              search foods by name, list overview info
    sort                sort foods by nutrient ID
    anl                 analyze food(s)
    day                 analyze a DAY.csv file, RDAs optional
    recipe              list and analyze recipes
    bio                 view, add, remove biometric logs
    nt                  list out nutrients and their info

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

nutra-0.2.0.tar.gz (41.8 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