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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file pyUsda-1.0.3.tar.gz.

File metadata

  • Download URL: pyUsda-1.0.3.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.4

File hashes

Hashes for pyUsda-1.0.3.tar.gz
Algorithm Hash digest
SHA256 88778b99b34b730e9b35aec3224ac62df4934e24644dc1bf48253252c48319b1
MD5 05f758231c24c41ce5a80f74f2466d81
BLAKE2b-256 6399a3450a5f28311da28f8f21786ecf3b2549ede1ea28d6aad30ace8ca2c681

See more details on using hashes here.

File details

Details for the file pyUsda-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyUsda-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.4

File hashes

Hashes for pyUsda-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 aa8eeeb7beaac1107fcbc5327070f0fc0995da22a0466f4b63f5dcc823a26341
MD5 e9f242e71aea8a9907b0230bc1b58378
BLAKE2b-256 8b7e3ea0f4e7664208e5ea2a305f380a33a41db6550303f570f29b3e41e8aca8

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