Skip to content
This repository was archived by the owner on Dec 14, 2024. It is now read-only.
/ python-nimsp Public archive

Python client library for interacting with the National Institute on Money in State Politics API

License

Notifications You must be signed in to change notification settings

mikeshultz/python-nimsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-nimsp

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')
>>> print "$%d" % corte.results[0].total_dollars
$287372
>>> print corte.results[0].candidate_status
Won

About

Python client library for interacting with the National Institute on Money in State Politics API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages