Skip to main content

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


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)

Uploaded Source

Built Distribution

pyUsda-1.0.3-py3-none-any.whl (27.5 kB view hashes)

Uploaded Python 3

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