No project description provided
Project description
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
This will install all the dependencies listed in the setup.py
file. Once done
you can use the library wherever you want.
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.
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 Distribution
Built Distribution
Hashes for united-states-congress-python-api-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1528dcd9dbe40234d874fb84ffe1d5768c6a641c10f980de79115756e11d8c6f |
|
MD5 | 306056a8783755aaeae53affecc74a03 |
|
BLAKE2b-256 | a15c99d03f1bdc8f51a136610a59728013f247ba85a06f2822074be6c3916bb8 |
Hashes for united_states_congress_python_api-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa50bb3936cee5583460211d706fff484b29fb47fae419faebb4fc3d2b1248a5 |
|
MD5 | 3532cea34d5368e7dafc0d1378c51b4f |
|
BLAKE2b-256 | 4e36bd41664a7b54ed727f855822c98f957921d71d69ea14c61cfecbc88f7d6d |