A fork of pygov focused on USDA nutritional database API
Project description
# python-usda
[![License](https://img.shields.io/pypi/l/python-usda.svg)](https://pypi.org/project/python-usda/) [![Python Package Format](https://img.shields.io/pypi/format/python-usda.svg)](https://pypi.org/project/python-usda/) [![Supported Python versions](https://img.shields.io/pypi/pyversions/python-usda.svg)](https://pypi.org/project/python-usda/) [![Package status](https://img.shields.io/pypi/status/python-usda.svg)](https://pypi.org/project/python-usda/) [![Requirements Status](https://requires.io/github/Lucidiot/python-usda/requirements.svg?branch=master)](https://requires.io/github/Lucidiot/python-usda/requirements/?branch=master) [![Maintainability](https://api.codeclimate.com/v1/badges/9a969172a5d47456376e/maintainability)](https://codeclimate.com/github/Lucidiot/python-usda/maintainability) [![Code Health](https://landscape.io/github/Lucidiot/python-usda/master/landscape.svg?style=flat)](https://landscape.io/github/Lucidiot/python-usda/master) [![Build Status](https://travis-ci.org/Lucidiot/python-usda.svg?branch=master)](https://travis-ci.org/Lucidiot/python-usda) [![Coverage Status](https://coveralls.io/repos/github/Lucidiot/python-usda/badge.svg?branch=master)](https://coveralls.io/github/Lucidiot/python-usda?branch=master) ![GitHub last commit](https://img.shields.io/github/last-commit/Lucidiot/PseudoScience.svg) [![Gitter](https://img.shields.io/gitter/room/PseudoScience/Lobby.svg?logo=gitter-white)](https://gitter.im/BrainshitPseudoScience/Lobby) ![Badge count](https://img.shields.io/badge/badge%20count-12-brightgreen.svg)
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/).
## 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)
```
[![License](https://img.shields.io/pypi/l/python-usda.svg)](https://pypi.org/project/python-usda/) [![Python Package Format](https://img.shields.io/pypi/format/python-usda.svg)](https://pypi.org/project/python-usda/) [![Supported Python versions](https://img.shields.io/pypi/pyversions/python-usda.svg)](https://pypi.org/project/python-usda/) [![Package status](https://img.shields.io/pypi/status/python-usda.svg)](https://pypi.org/project/python-usda/) [![Requirements Status](https://requires.io/github/Lucidiot/python-usda/requirements.svg?branch=master)](https://requires.io/github/Lucidiot/python-usda/requirements/?branch=master) [![Maintainability](https://api.codeclimate.com/v1/badges/9a969172a5d47456376e/maintainability)](https://codeclimate.com/github/Lucidiot/python-usda/maintainability) [![Code Health](https://landscape.io/github/Lucidiot/python-usda/master/landscape.svg?style=flat)](https://landscape.io/github/Lucidiot/python-usda/master) [![Build Status](https://travis-ci.org/Lucidiot/python-usda.svg?branch=master)](https://travis-ci.org/Lucidiot/python-usda) [![Coverage Status](https://coveralls.io/repos/github/Lucidiot/python-usda/badge.svg?branch=master)](https://coveralls.io/github/Lucidiot/python-usda?branch=master) ![GitHub last commit](https://img.shields.io/github/last-commit/Lucidiot/PseudoScience.svg) [![Gitter](https://img.shields.io/gitter/room/PseudoScience/Lobby.svg?logo=gitter-white)](https://gitter.im/BrainshitPseudoScience/Lobby) ![Badge count](https://img.shields.io/badge/badge%20count-12-brightgreen.svg)
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/).
## 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)
```
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.2.tar.gz
(5.6 kB
view hashes)
Built Distribution
Close
Hashes for python_usda-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9016be54315f19123aebadb088019986d1feca181a76afe31976d50c3fb6456a |
|
MD5 | 59d1a9990b4723ccbce4c90f28165b96 |
|
BLAKE2b-256 | 53b01955899cfffa3ac58728f1cd439cbb72385d3b2678e526ab070af3e8b1ad |