python-congress 0.3.0
pip install python-congress==0.3.0
Released:
A Python client for the ProPublica Congress API
Navigation
Unverified details
These details have not been verified by PyPIMeta
- License: BSD License
- Author: Chris Amico
Classifiers
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
Project description
A Python client for the ProPublica [Congress API](https://propublica.github.io/congress-api-docs/)
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
Project details
Unverified details
These details have not been verified by PyPIMeta
- License: BSD License
- Author: Chris Amico
Classifiers
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Topic
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
File details
Details for the file python-congress-0.3.0.tar.gz
.
File metadata
- Download URL: python-congress-0.3.0.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
ab16d13bd179a927985bd8bca44268f04103e882d970be37658c12abfcecfffe
|
|
MD5 |
18c0806a0857d0ad6e15f44c4c2010cc
|
|
BLAKE2b-256 |
98a2e86056b5aaf8e8268aabf3a341e2d89146119720b90bfec3d260d303eb37
|