Skip to main content

Python Congress

A Python client for the ProPublica Congress API

Install

From PyPI:

pip install python-congress

Download and run the install script:

git clone https://github.com/eyeseast/propublica-congress && cd propublica-congress
python setup.py install

Usage

>>> from congress import Congress
>>> congress = Congress(API_KEY)

# get member by bioguide ID
>>> pelosi = congress.members.get('P000197')
>>> pelosi['twitter_id']
'NancyPelosi'

# get recent House bills
# recent bills come in two types: 'introduced' and 'updated'
>>> introd = congress.bills.recent(chamber='house', congress=111, type='introduced')
>>> len(introd['bills'])
20
>>> introd['chamber']
'House'

# or use a convenience function
>>> introd = congress.bills.introduced('house')
>>> introd['chamber']
'House'
>>> len(introd['bills'])
20

Metadata

Release files for python-congress 0.3.5

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

Source distribution (sdist)

Source distribution for python-congress 0.3.5
File Size Uploaded
python-congress-0.3.5.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for python-congress 0.3.5
File Interpreter ABI Platform
python_congress-0.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 17.5 kB

Release files / python-congress-0.3.5.tar.gz

Download URL python-congress-0.3.5.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
35a6b010801704470fb316a3ad180887857eec75ea84f9310f2e814d306aeaa3
BLAKE2b-256 checksum
How to use checksums
91983621dfd2bc2969e4348df7b66feb5a3619edb38608287a54725c9838a095
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python_congress-0.3.5-py3-none-any.whl

Download URL python_congress-0.3.5-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62d839dd8cb7f332b7a6b9487179e52c45c779d65d4f1f179690f278f81e476e
BLAKE2b-256 checksum
How to use checksums
207161ff8b47f85db8fcf7fd8d7c5782e5d2bee5e3c5b3b771f5b62c853292bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.5 This release

2 release files

0.3.4

1 release file

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.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