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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nimsp-0.3.1.tar.gz
(3.6 kB
view details)
File details
Details for the file nimsp-0.3.1.tar.gz
.
File metadata
- Download URL: nimsp-0.3.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87a21795d3d5f971d9cd7ff84f5bafa7b907d936aeabf7bd5e9a618a88ac7449 |
|
MD5 | 4b1e8c8ca88f7b70d26c5eff23615d0b |
|
BLAKE2b-256 | 88bad374a5b5f40dd99b7f30e53cc3c7ea4d691d6264853360b517c5236385a0 |