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
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
python-usda-0.4.4.tar.gz
(9.2 kB
view details)
Built Distribution
File details
Details for the file python-usda-0.4.4.tar.gz
.
File metadata
- Download URL: python-usda-0.4.4.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/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
4e31d48c2e6d917f3d53af914620ad6329b1ee19cd621f446e7750bcf480a323
|
|
MD5 |
7e3143ec5ab916d5581bfbafb5724046
|
|
BLAKE2b-256 |
64aeb1b9c480f0ba25bd48740fa7f06b18d696cca60b7cfb5dc10a3bee63ef0d
|
File details
Details for the file python_usda-0.4.4-py3-none-any.whl
.
File metadata
- Download URL: python_usda-0.4.4-py3-none-any.whl
- Upload date:
- Size: 23.5 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/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9b7cd8de03fc184ae22e8cb8e1589a15f338bcec59e9186dc047a794d9c351e2
|
|
MD5 |
29ad30f1a7ee78c500d4dc95c8900536
|
|
BLAKE2b-256 |
00972aa75a2b4e9135067a6ac5ee299029d775a15f01eefd20209bd8db9a30b4
|