nimsp 0.3.4
Library for interacting with the National Institute on Money in State Politics API
A Python library for interacting with the National Institute on Money in State Politics API.
Released under a BSD-style license (see the LICENSE files for details).
python-nimsp is a project of Sunlight Labs (c) 2011. Written by Michael Stephens <mstephens@sunlightfoundation.com>.
Source: http://github.com/sunlightlabs/python-nimsp
Installation
To install from PyPI run
pip install nimsp
or
easy_install nimsp
To install from a source package run
python setup.py install
Example Usage
>>> from nimsp import nimsp >>> nimsp.apikey = 'YOUR_API_KEY' >>> corte = nimsp.candidates.list(state='tx', year=2008, candidate_name='Corte Jr, Frank')[0] >>> print "$%d" % corte.total_dollars $287372 >>> print corte.candidate_status Won
| File | Type | Py Version | Uploaded on | Size | # downloads |
|---|---|---|---|---|---|
| nimsp-0.3.4.tar.gz (md5) | Source | 2011-03-15 | 3KB | 322 | |
- Author: Michael Stephens
- Home Page: http://github.com/sunlightlabs/python-nimsp
- License: BSD
- Platform: any
- Categories
- Package Index Owner: mikejs
- Package Index Maintainer: jamesturk
- DOAP record: nimsp-0.3.4.xml
