A fork of pygov, refreshed and focused only on USDA NDB API
This repository has been archived on 2022-08-04. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Shane 730f129133 Removing unnecessary 'PopulationReport' class
Removing unnecessary 'PopulationReport' class
2015-05-18 21:52:32 -04:00
dist Preparing for distribution, restructuring files 2015-05-17 12:59:55 -04:00
pygov Removing unnecessary 'PopulationReport' class 2015-05-18 21:52:32 -04:00
.gitattributes 🎪 Added .gitattributes 2015-02-04 21:26:28 -06:00
license.txt Preparing for distribution, restructuring files 2015-05-17 12:59:55 -04:00
MANIFEST Preparing for distribution, restructuring files 2015-05-17 12:59:55 -04:00
MANIFEST.in Preparing for distribution, restructuring files 2015-05-17 12:59:55 -04:00
README.rst Expanding "README" and changing dev version number 2015-05-17 22:55:06 -04:00
setup.py Expanding "README" and changing dev version number 2015-05-17 22:55:06 -04:00

pygov

pygov is a Python library that enables easy access to the US Government's data APIs. Read more about the available APIs here.

Currently the only (partially) supported API is for the USDA data (specifically the Nutrient Database). Read more about the USDA NDB API.

The Cesus API is brand new. The goal is to eventually support all of the available APIs to the fullest extent possible.

installation

pygov is registered with the Python Package Index so it can be installed with pip:

pip install pygov

usage

from pygov.usda.client import UsdaClient

client = UsdaClient("DEMO_KEY") foods = client.list_foods(5)

for food in foods:

print food.name

... Abiyuch, raw Acerola juice, raw Acerola, (west indian cherry), raw Acorn stew (Apache) Agave, cooked (Southwest)