Skip to main content

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/

Metadata

Release files for python-usda 0.4.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-usda 0.4.6
File Size Uploaded
python-usda-0.4.6.tar.gz 10.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-usda 0.4.6
File Interpreter ABI Platform
python_usda-0.4.6-py3-none-any.whl Python 3 none any Details

Total release size: 34.3 kB

Release files / python-usda-0.4.6.tar.gz

Download URL python-usda-0.4.6.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
12e13e98683fef130bf63f3d6504c2630dbf99645244dfe657ea0f5827d5a7f4
BLAKE2b-256 checksum
How to use checksums
aa753ed7d6cd441231e0b8f32b67c65bd0c579b8f8ebb013c57de5ac9d000f3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

Release files / python_usda-0.4.6-py3-none-any.whl

Download URL python_usda-0.4.6-py3-none-any.whl
Size 24.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2945d455631b047584e17e7ce2b5e4a9406b6efe21df1ce09c2ea6f68a39bc31
BLAKE2b-256 checksum
How to use checksums
142c60c0d274f24fd1cce89c71cf319271ed9565e8e69dabf3fc323b47df68cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.5

Release history Release notifications | RSS feed

This release

0.4.6 This release

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page