A client for the Open States API
Project description
A Python client for the Open States API.
The Open States project provides data on legislators, bills, committees, and districts in legislatures of all 50 US states, plus D.C. and Puerto Rico. This data is gathered directly from the legislatures, and converted to a common format for interested developers, through a JSON API and data dumps. The project was originally created by the Sunlight Foundation as a part of Sunlight Labs. The Sunlight Foundation has since shut down Sunlight Labs, and Open States is now an independent project.
This module is intended to be a replacement for the openstates methods provided by the origional sunlight package. However, it is not a drop-in replacement; the methods are slightly different, and some features have been added.
Please consider donating or volunteering to support the Open States project. The data provided to the public by various legislatures can frequently change format. Without regularly-maintained scrapers and server infrastructure, this consistent and free API would not be possible.
Features
Compatible with Python 2.7-3+
Full Unicode support
Supports all methods, options, and data types provided by the API
Methods for downloading data dumps
Automatic conversion of string dates and timestamps to datetime objects
Tested releases
Installation
pyopenstates can be installed using pip. Installation in a vertualenv is recommended.
To install the latest release, run:
$ pip install -U pyopenstates
Or, install the latest commit from git, run:
$ pip install -U git+https://github.com/openstates/pyopenstates
Documentation
Documentation is provided in detailed docstrings, and in HTML format at
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file pyopenstates-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: pyopenstates-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d01967d8096013964cd1cb2227f849a4df449efd3fca3b8ef70b26cc742997cf |
|
MD5 | f2ba967fc29253c4e2e8d1e1fab54058 |
|
BLAKE2b-256 | ec1927e80f9d8dd3679f41c13eb09fee0ed9c05335c8b6f08628e30c916a7734 |