Skip to main content

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

Metadata

Release files for nimsp 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nimsp 0.3.4
File Size Uploaded
nimsp-0.3.4.tar.gz 3.9 kB Details

Release files / nimsp-0.3.4.tar.gz

Download URL nimsp-0.3.4.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
785d18ad6ef95c0fd5392788d869b8dcc3df5290a40e36821fed7454e3cb18e1
BLAKE2b-256 checksum
How to use checksums
ae10405cf16fa9f37e403c95a49b2b53bb08b47190ccf21bf6c486521e47d578
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.4 This release

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3

1 release file

0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page