https://github.com/mikeshultz/python-nimsp
Python client library for interacting with the National Institute on Money in State Politics API
https://github.com/mikeshultz/python-nimsp
Last synced: 10 months ago
JSON representation
Python client library for interacting with the National Institute on Money in State Politics API
- Host: GitHub
- URL: https://github.com/mikeshultz/python-nimsp
- Owner: mikeshultz
- License: other
- Created: 2013-02-22T22:19:02.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2016-04-18T22:30:52.000Z (about 10 years ago)
- Last Synced: 2024-11-09T08:47:23.647Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
============
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 .
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