This release is a pre-release and may not be stable for production use.
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
Metadata
Release files for us-congress 0.1.2a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| us_congress-0.1.2a2.tar.gz | 8.1 kB | Without provenance | Details for us_congress-0.1.2a2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| us_congress-0.1.2a2-py3-none-any.whl | Python 3 | none | any | Details for us_congress-0.1.2a2-py3-none-any.whl |
Total release size: 19.9 kB
Release files / us_congress-0.1.2a2.tar.gz
| Download URL | us_congress-0.1.2a2.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
471cf0dd86eb2033acd0e959dfbea33fef3872dfcf9c5c399e14ebf26db5cd4b
|
|
BLAKE2b-256 checksum How to use checksums |
e1c2ae9065e58c851e24c79c967b0a69414af1685715d2b215fbba66a229aabe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1036-azure
|
Release files / us_congress-0.1.2a2-py3-none-any.whl
| Download URL | us_congress-0.1.2a2-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
084eb20e3f4114a07c5d26078d25f164a8287605c4e6cf47d631e4bb65d0e75e
|
|
BLAKE2b-256 checksum How to use checksums |
93bcad6e408c5cb41c42ddeb5c242f3e8483e5ba934061e0222cb3ea6012fca9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.9.1 Linux/5.4.0-1036-azure
|
Security for us-congress 0.1.2a2
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.