Skip to main content

Home and office nutrient tracking software

Project description

https://api.travis-ci.com/nutratech/cli.svg?branch=master https://pepy.tech/badge/nutra/month https://img.shields.io/pypi/pyversions/nutra.svg

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

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

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

nutra subcommands:
valid subcommands

{search,sort,anl,day,nt}
                        additional help
    search              use to search foods and recipes
    sort                use to sort foods by nutrient ID
    anl                 use to analyze foods, recipes, logs
    day                 use to sort foods by nutrient ID
    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.0.38.tar.gz (13.9 kB view details)

Uploaded Source

File details

Details for the file nutra-0.0.38.tar.gz.

File metadata

  • Download URL: nutra-0.0.38.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for nutra-0.0.38.tar.gz
Algorithm Hash digest
SHA256 e3aa5354cc377aed12a847073d5526dc9bd5680c1c3db0388db8ec26a6859952
MD5 7db4e28fa53b6be2aecb991e5bfcd9ec
BLAKE2b-256 835c04b9208336d748a500f58d2032cd825d4defc281e0f9637fb10c3cb6037b

See more details on using hashes here.

Supported by

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