Python United Congress API Client
Table of Contents
Overview
This is a python API client library that is used to collect data from the United States Congress and a few other departments inside the US Government. This library will make filtering the requests easier, and give you a nice easy to use tool to grab vital civic data to be used in a wide range of analysis.
Setup
To install the library, run the following command from the terminal.
pip install united-states-congress-python-api
To upgrade the library, run the following command from the terminal.
pip install --upgrade united-states-congress-python-api
Usage
Here is a simple example of using the congress library to pull the bulk data
sources and grabbing a speicifc year of bulk data for the Privacy Act Issuances.
from pprint import pprint
from congress.client import Congress
# Initialize the Congress Client.
congress_client = Congress()
# Grab the data sources.
data_sources = congress_client.data_sources()
pprint(data_sources)
# Grab the different resources from the Privacy Act Issuance.
pia_2017 = congress_client.privacy_act_issuances(file='2017')
pprint(pia_2017)
Support These Projects
Patreon: Help support this project and future projects by donating to my Patreon Page. I'm always looking to add more content for individuals like yourself, unfortuantely some of the APIs I would require me to pay monthly fees.
YouTube: If you'd like to watch more of my content, feel free to visit my YouTube channel Sigma Coding.
Metadata
Release files for united-states-congress-python-api 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| united-states-congress-python-api-0.0.2.tar.gz | 5.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| united_states_congress_python_api-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / united-states-congress-python-api-0.0.2.tar.gz
| Download URL | united-states-congress-python-api-0.0.2.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de347f78312f313e13e7d2b075b565c18243a1a1e43a63bbb74915435488cbcc
|
|
BLAKE2b-256 checksum How to use checksums |
17d10d631786ddd8fae109dc16b05fc384ee630785a966e51fe29a44017a5c0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4
|
Release files / united_states_congress_python_api-0.0.2-py3-none-any.whl
| Download URL | united_states_congress_python_api-0.0.2-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68c2dbd1a189cb7139c42952094f56c549a8c5fb07cb2222f22af239ddd5ddca
|
|
BLAKE2b-256 checksum How to use checksums |
7ff03c4637b8f9d80100ee8346a1ccc0967b42fcf7f7db81c23b9c995f7ecc7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4
|