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 <firstname.lastname@example.org>.
To install from PyPI run
pip install nimsp
To install from a source package run
python setup.py install
>>> from nimsp import nimsp >>> nimsp.apikey = 'YOUR_API_KEY' >>> corte = nimsp.candidates.list(state='tx', year=2008, candidate_name='Corte Jr, Frank') >>> print "$%d" % corte.total_dollars $287372 >>> print corte.candidate_status Won