Skip to main content

PyCongress

Python client for Congress.gov's API.

Setup

Sign up for an API Key from Congress.Gov prior to using the library.

Store your key as an environment variable named CONGRESS_API_KEY and it will automatically be passed through the client for authentication.

You may also manually declare your key:

congress = Congress(api_key="Insert key here")

Misc.

pycongress currently only supports the bill, member, and congress endpoints. Support for more endpoints is planned in the future.

This project was inspired by propublica-congress.

The Congress.Gov API is currently in beta. Visit the Library of Congress blog or GitHub page for more information.

License

MIT

Metadata

Release files for pycongress 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycongress 0.0.1
File Size Uploaded Provenance Actions
pycongress-0.0.1.tar.gz 4.2 kB Without provenance Details for pycongress-0.0.1.tar.gz

Release files / pycongress-0.0.1.tar.gz

Download URL pycongress-0.0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
213d541d843c3a9fddae68e034ac52f247ce8ed3cece8cd892506f8a2af330cc
BLAKE2b-256 checksum
How to use checksums
9ae68654e8d4572c0e411e995e408b70cf9b1e159c27710a3ab8c9e5bda04941
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.7

Security for pycongress 0.0.1

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page