Skip to main content

Python client for Congress.gov's API

Project description

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

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

pycongress-0.0.1.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file pycongress-0.0.1.tar.gz.

File metadata

  • Download URL: pycongress-0.0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for pycongress-0.0.1.tar.gz
Algorithm Hash digest
SHA256 213d541d843c3a9fddae68e034ac52f247ce8ed3cece8cd892506f8a2af330cc
MD5 b586e11a19f7c0c0d369628bb3a86ffa
BLAKE2b-256 9ae68654e8d4572c0e411e995e408b70cf9b1e159c27710a3ab8c9e5bda04941

See more details on using hashes here.

Supported by

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