Skip to main content

Library for interacting with the National Institute on Money in State Politics API

Project description

A Python library for interacting with the National Institute on Money in State Politics API <http://www.followthemoney.org/services/index.phtml>.

Released under a BSD-style license (see the LICENSE files for details).

python-fiftystates is a project of Sunlight Labs (c) 2010. Written by Michael Stephens <mstephens@sunlightfoundation.com>.

Source: http://github.com/mikejs/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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page