nutratracker
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 init
or,
git clone git@github.com:nutratech/cli.git
cd nutra
pip install .
nutra init
When building the PyPi release use the commands:
python3 setup.py sdist
twine upload dist/nutra-X.X.X.tar.gz
Argcomplete (tab completion on Linux/macOS)
After installing nutra, argcomplete package should also be installed,
Simply run:
activate-global-python-argcomplete
Then you can press tab to fill in or list subcommands and argument flags.
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 download initial data.
Run the nutra script to output usage.
Usage: nutra <command>
Commands
usage: nutra [-h] [-v] [--debug] {init,nt,search,sort,anl,day,recipe,bio} ...
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
--debug enable detailed error messages
nutra subcommands:
{init,nt,search,sort,anl,day,recipe,bio}
init setup profiles, USDA and NT database
nt list out nutrients and their info
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
Metadata
Release files for nutra 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nutra-0.2.1.tar.gz | 53.7 kB | Without provenance | Details for nutra-0.2.1.tar.gz |
Release files / nutra-0.2.1.tar.gz
| Download URL | nutra-0.2.1.tar.gz |
|---|---|
| Size | 53.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d3d28de4d8ef55610dc0059924105b7eb5fb99891432a70383b8814498679be1
|
|
BLAKE2b-256 checksum How to use checksums |
4ab2f11b4e8b5e399134d7a5ac9ec639326a088d252a6f0fc24ceea22c4e25f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
|
Security for nutra 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.