A fork of pygov focused on USDA nutritional database API
Project description
python-usda
⚠️ 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
!
Setup
::
pip install python-usda
Usage
.. code:: python
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)
.. _Food Data Central: https://fdc.nal.usda.gov/api-guide.html .. _pygov: https://pypi.org/project/pygov/ .. _usda: http://ndb.nal.usda.gov/ndb/doc/ .. _documentation: https://lucidiot.gitlab.io/python-usda/
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
Built Distribution
Hashes for python_usda-0.4.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bca3bb1fbdebdad273fa0f8e2f3d28d103db062643a0c4ebbb4b515d653b35bc |
|
MD5 | fbfd223a7b5728396638bcc5349e5503 |
|
BLAKE2b-256 | 7250a7c4f111feed1a5452d3ded98332f448d80c28693acd8f0e39ce61d5c795 |