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 Provenance Actions
python-congress-0.3.5.tar.gz 8.0 kB Without provenance Details for python-congress-0.3.5.tar.gz

Built distribution (wheel)

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

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

Security for python-congress 0.3.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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