Skip to main content

pyopenstates

A Python client for the Open States API v3.

Source: https://github.com/openstates/pyopenstates/

Documentation: https://openstates.github.io/pyopenstates/

Issues: https://github.com/openstates/pyopenstates/issues

Note: This library was recently updated to support Open States API v3, documentation & coverage is a bit behind, but we wanted to get a release out. Feel free to contribute issues and/or fixes.

PyPI badge Test Python

Features

  • Compatible with Python 3.7+
  • Automatic conversion of string dates and timestamps to datetime objects.
  • Tested releases.
  • Set API Key via environment variable or in code.

API Keys

To use the Open States API you must obtain an API Key.

Once you have your key you can use it with this library by setting the OPENSTATES_API_KEY environment variable or calling pyopenstates.set_api_key.

About Open States

Open States strives to improve civic engagement at the state level by providing data and tools regarding state legislatures. We aim to serve members of the public, activist groups, journalists, and researchers with better data on what is happening in their state capital, and to provide tools to reduce barriers to participation and increase engagement.

Open States aggregates legislative information from all 50 states, Washington, D.C., and Puerto Rico. This information is then standardized, cleaned, and published to the public via OpenStates.org, a powerful API, and bulk downloads. OpenStates.org enables individuals to find out who represents them, look up information on an important bill that’s been in the news, discover how their representatives are voting, or just stay current with what is happening in their state. Additionally, our API and bulk downloads see millions of hits every month from advocacy organizations, journalists, researchers, and many others.

Legislative data is collected from official sources, linked at the bottom of relevant pages. In general bill & vote data is collected multiple times a day via our scrapers while legislator data is curated by our team & volunteers like you.

Release files for pyopenstates 2.3.1

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

Source distribution (sdist)

Source distribution for pyopenstates 2.3.1
File Size Uploaded
pyopenstates-2.3.1.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyopenstates 2.3.1
File Interpreter ABI Platform
pyopenstates-2.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.3 kB

Release files / pyopenstates-2.3.1.tar.gz

Download URL pyopenstates-2.3.1.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
232ef78d63961d94c24febdc2d18e74f5b7d17190ac271db5021b57c4d992454
BLAKE2b-256 checksum
How to use checksums
ca7e96bcccc934ab6cb52ac7622893e880819fdba19dbbbeb4dd87e8441ae0dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.7 Darwin/20.6.0

Release files / pyopenstates-2.3.1-py3-none-any.whl

Download URL pyopenstates-2.3.1-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ce0f16e81021de1527cdbde10981a8e95ff8b9a0aaa24f601e2ed51ee3c5743
BLAKE2b-256 checksum
How to use checksums
f3cda7816e5abeebdabeb07de7a71cb1c6d7ac0079282b90717554cb072f76fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.11 CPython/3.9.7 Darwin/20.6.0

Release history Release notifications | RSS feed

This release

2.3.1 This release

2 release files

2.3.0

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.2.0

1 release file

1.1.1

1 release file

1.1.0

2 release files

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

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