Skip to main content

A fork of pygov focused on USDA nutritional database API

Project description


⚠️ Since October 1, 2019, the APIs this package relies on have been deprecated. python-usda 1.x will remove those APIs and rely on the new Food Data Central_ APIs.

python-usda is a fork of pygov_ focused on USDA's Food Composition Database API <usda>. Have a look at the documentation!



pip install python-usda


.. code:: python

from usda.client import UsdaClient

client = UsdaClient("YOUR_API_KEY") foods = client.list_foods(5)

for food in foods: print(


Abiyuch, raw Acerola juice, raw Acerola, (west indian cherry), raw Acorn stew (Apache) Agave, cooked (Southwest)

.. _Food Data Central: .. _pygov: .. _usda: .. _documentation:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-usda, version 0.4.5
Filename, size File type Python version Upload date Hashes
Filename, size python_usda-0.4.5-py3-none-any.whl (23.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size python-usda-0.4.5.tar.gz (9.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page