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.

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

python-nimsp is a project of Sunlight Labs (c) 2010. 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')[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.3.tar.gz (3.6 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for nimsp-0.3.3.tar.gz
Algorithm Hash digest
SHA256 020be079fc70cf529d6f921425c0fb3e97c95c0c2738cdcb24357c650cb16802
MD5 36513e213d1a4cda877b2ad6c9966144
BLAKE2b-256 7491ac13045446cb11fd9cf23879183ec07eb4868ee550a7afa33c031591646e

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