Skip to main content

A fork of pygov focused on USDA nutritional database API

Project description

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)

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

python-usda-0.4.3.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

python_usda-0.4.3-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file python-usda-0.4.3.tar.gz.

File metadata

  • Download URL: python-usda-0.4.3.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for python-usda-0.4.3.tar.gz
Algorithm Hash digest
SHA256 8f0631dace85147cf3307f83b1fd04f53ec98fbc867694cbc96b3001794515c2
MD5 98848dc41aeeea05f7076f1ebeef8ada
BLAKE2b-256 9c5b6a6123052fdcb230259938b0d30928a9183f0105723029a72249a02e5bc0

See more details on using hashes here.

File details

Details for the file python_usda-0.4.3-py3-none-any.whl.

File metadata

  • Download URL: python_usda-0.4.3-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for python_usda-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eab5cfad44b81316e39047aa36ef1cd61ae0430270d8d0abad92035351dacf07
MD5 ef734adf6d2c2e98937bde1ba3f00a2f
BLAKE2b-256 a622958a87388add73175d6908ae04395629f6b78e172c91b00a32d34d96feb1

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