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-fiftystates

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.2.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file nimsp-0.2.tar.gz.

File metadata

  • Download URL: nimsp-0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for nimsp-0.2.tar.gz
Algorithm Hash digest
SHA256 f9bd8056fdfc481742a5ab2757e38ca1e1c4baa1c093fc08f238b8d6c39ad6c1
MD5 6743c86212bcd89cc13b0e3bc4a96c8c
BLAKE2b-256 2a2e0611a25c5e413f8bacc462a91220272b790a0e61e7c9eeff13cb75785cca

See more details on using hashes here.

Supported by

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