Metadata-Version: 2.1
Name: python-usda
Version: 0.4.4
Summary: A fork of pygov focused on USDA nutritional database API
Home-page: https://gitlab.com/Lucidiot/python-usda
Author: Lucidiot
License: GNU General Public License 3
Project-URL: Source Code, https://gitlab.com/Lucidiot/python-usda
Project-URL: GitHub Mirror, https://github.com/Lucidiot/python-usda
Project-URL: Gitter Chat, https://gitter.im/BrainshitPseudoScience/Lobby
Keywords: api usda nutrition food
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Natural Language :: English
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3.4
Description-Content-Type: text/markdown
Requires-Dist: requests (>=2.16.0)
Provides-Extra: dev
Requires-Dist: pytest ; extra == 'dev'
Requires-Dist: pytest-cov ; extra == 'dev'
Requires-Dist: httmock ; extra == 'dev'
Requires-Dist: flake8 (>=3.5) ; extra == 'dev'
Requires-Dist: codecov ; extra == 'dev'
Requires-Dist: Sphinx (>=1.8.1) ; extra == 'dev'

# python-usda

python-usda is a fork of [pygov](https://pypi.org/project/pygov/) focused on [USDA's Food Composition Database API](http://ndb.nal.usda.gov/ndb/doc/). Browse full documentation on [Read the Docs](https://python-usda.readthedocs.io/en/latest)

## Installation

```
pip install python-usda
```

## Usage

``` 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)
```


