8abbea8160 | ||
---|---|---|
docs | ||
usda | ||
.codeclimate.yml | ||
.gitignore | ||
.gitlab-ci.yml | ||
LICENSE | ||
README.md | ||
VERSION | ||
requirements-dev.txt | ||
requirements.txt | ||
setup.cfg | ||
setup.py |
README.md
python-usda
python-usda is a fork of pygov focused on USDA's Food Composition Database API. Browse full documentation on Read the Docs
Installation
pip install python-usda
Usage
from usda.client import UsdaClient
client = UsdaClient("YOUR_API_KEY")
foods = client.list_foods(5)
for food in foods:
print(food.name)
Result:
Abiyuch, raw
Acerola juice, raw
Acerola, (west indian cherry), raw
Acorn stew (Apache)
Agave, cooked (Southwest)