Interface for accessing USDA's FDC API
Project description
pyUsda
pyUsda provides an interface for interacting with USDA's Food Data Central API .
Installation
pip install pyUsda
Usage
from pyUsda.client import UsdaClient
client = UsdaClient("YOUR_API_KEY")
foods = client.list_foods(page_size=5)
for food in foods:
print(food)
Result:
Abiyuch, raw
Acerola juice, raw
Acerola, (west indian cherry), raw
Acorn stew (Apache)
Agave, cooked (Southwest)
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
pyUsda-1.0.3.tar.gz
(26.7 kB
view hashes)
Built Distribution
pyUsda-1.0.3-py3-none-any.whl
(27.5 kB
view hashes)