Skip to main content

Python NytCongress

A Python client for the New York Times [Congress API](http://developer.nytimes.com/docs/congress_api)

Install

$ pip install python-nytcongress

Or download and run

$ python setup.py install

Usage

>>> from nytcongress import NytCongress
>>> congress = NytCongress(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

Metadata

Release files for python-nytcongress 0.1.0

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

Source distributions (sdists)

Source distribution for python-nytcongress 0.1.0
File Size Uploaded Provenance Actions
python-nytcongress-0.1.0.zip 5.0 kB Without provenance Details for python-nytcongress-0.1.0.zip
python-nytcongress-0.1.0.tar.gz 3.8 kB Without provenance Details for python-nytcongress-0.1.0.tar.gz

Release files / python-nytcongress-0.1.0.zip

Download URL python-nytcongress-0.1.0.zip
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
53c24e02e228614a030708c874ced71d2b9e136f1b97d6cc924a437db41b5a79
BLAKE2b-256 checksum
How to use checksums
40fd98c9ce022a3c5d67af4a4d4730276ac1b641de84121584de7748aa3aacbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / python-nytcongress-0.1.0.tar.gz

Download URL python-nytcongress-0.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4fc3d1ce4911ca1943df3d6bdf9e834ecc1203df920712e5003d0e5d8668cabb
BLAKE2b-256 checksum
How to use checksums
ca6a1384f6bb678df00a01461dec55f4b42f0847505032422bde3a4a0ba55136
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for python-nytcongress 0.1.0

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.1.0 This release

2 release files 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