Skip to main content

Client to work with US Congress data

Project description

Imports: isort pre-commit

Release CI

US Congress

Client for getting information on the US Congress.

Requirements

For this package to work, you must get an API key from ProPublica, whose API this uses, and set the following the environment variable PROPUBLICA_CONG_KEY to whatever that key is, either with

export PROPUBLICA_CONG_KEY=<your key>

or in a .env file:

PROPUBLICA_CONG_KEY=<your key>

Getting started

To install with pip, simply run

pip install us_congress
>>> from us_congress import Congress
>>> cong = Congress(116)
>>> cong
<Congress 116>

This will return a client for querying data on a particular congress (in the above example, the 116th Congress).

Right now, this enables only getting lists of Representatives and Senators:

cong.getRepresentatives() # DataFrame with all representatives
cong.getSenators()        # DataFrame with all senators

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

us_congress-0.1.2a2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

us_congress-0.1.2a2-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file us_congress-0.1.2a2.tar.gz.

File metadata

  • Download URL: us_congress-0.1.2a2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1036-azure

File hashes

Hashes for us_congress-0.1.2a2.tar.gz
Algorithm Hash digest
SHA256 471cf0dd86eb2033acd0e959dfbea33fef3872dfcf9c5c399e14ebf26db5cd4b
MD5 d03115570de374f9a9ab2d0fae3f9fb0
BLAKE2b-256 e1c2ae9065e58c851e24c79c967b0a69414af1685715d2b215fbba66a229aabe

See more details on using hashes here.

File details

Details for the file us_congress-0.1.2a2-py3-none-any.whl.

File metadata

  • Download URL: us_congress-0.1.2a2-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1036-azure

File hashes

Hashes for us_congress-0.1.2a2-py3-none-any.whl
Algorithm Hash digest
SHA256 084eb20e3f4114a07c5d26078d25f164a8287605c4e6cf47d631e4bb65d0e75e
MD5 5206fcdb2c574876ea830f560a4a0408
BLAKE2b-256 93bcad6e408c5cb41c42ddeb5c242f3e8483e5ba934061e0222cb3ea6012fca9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page