OpenBB US Government Provider Extensions
This package integrates US Government data sources into the OpenBB Platform, organized as one provider per federal agency. A single install:
pip install openbb-government-us
registers three providers - congress_gov, us_treasury, and usda - plus two API routers, obb.uscongress and obb.ustreasury. Every endpoint uses public, keyless data; no API keys or registration are required anywhere.
Congress
Provider: congress_gov - Router: obb.uscongress
Legislative data for the U.S. Congress, sourced from GovInfo bulk data, the GovInfo link service, the unitedstates dataset, and Voteview.
Coverage:
- Bills: lists, metadata, summaries, and full text (
obb.uscongress.bills,bill_info,bill_text) - Enacted laws, public and private (
obb.uscongress.laws) - Amendments: lists, details, and text (
obb.uscongress.amendments,amendment_info,amendment_text) - House and Senate calendars (
obb.uscongress.calendars) - Congressionally mandated reports (
obb.uscongress.mandated_reports) - Committees and committee documents (
obb.uscongress.committee_info,committee_documents) - Members, their sponsored legislation, and roll-call votes (
obb.uscongress.members,member_legislation,member_votes) - Full-text search across legislative documents (
obb.uscongress.search) - Document download URLs for bills, laws, amendments, calendars, reports, and committee documents (the
*_urlsendpoints)
Treasury
Provider: us_treasury - Router: obb.ustreasury
Data from the U.S. Department of the Treasury via TreasuryDirect, FedInvest, and the FiscalData API.
TreasuryDirect and FedInvest, served through the standard fixed income router:
- Auction search - announcements and results of marketable securities (
obb.fixedincome.government.treasury_auctions) - End-of-day prices for marketable Treasury securities (
obb.fixedincome.government.treasury_prices)
FiscalData API datasets, served through obb.ustreasury:
- Debt to the penny - total public debt outstanding for each business day (
obb.ustreasury.debt_to_penny) - Daily Treasury Statement - all 9 tables of cash and debt operations (
obb.ustreasury.daily_statement) - Marketable securities scheduled for announcement or auction in the coming week (
obb.ustreasury.upcoming_auctions) - Historical auction announcements and results back to 1979 (
obb.ustreasury.auction_results) - Treasury Bulletin PDO-1 - regular weekly bill offering results (
obb.ustreasury.weekly_bill_offerings)
USDA
Provider: usda
Data from the U.S. Department of Agriculture, served through the standard commodity router.
- Foreign Agricultural Service PSD Online - Production, Supply and Distribution reports and time series (
obb.commodity.psd_report,obb.commodity.psd_data) - Weekly Weather and Crop Bulletin - publication listings and PDF downloads from ESMIS (
obb.commodity.weather_bulletins,obb.commodity.weather_bulletins_download)
Usage
from openbb import obb
bills = obb.uscongress.bills(congress=118, bill_type="s", provider="congress_gov")
debt = obb.ustreasury.debt_to_penny(start_date="2025-01-01", end_date="2025-06-30")
auctions = obb.ustreasury.auction_results(security_type="bond", start_date="2020-01-01")
corn = obb.commodity.psd_data(commodity="corn", provider="usda")
See the OpenBB documentation and reference for breakdowns of each endpoint.
Metadata
Release files for openbb-government-us 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| openbb_government_us-2.0.0.tar.gz | 422.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| openbb_government_us-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.0 MB
Release files / openbb_government_us-2.0.0.tar.gz
| Download URL | openbb_government_us-2.0.0.tar.gz |
|---|---|
| Size | 422.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
507ec6e2df8e664af3a08559044f67de891e0a39af123fb1e7616a298bf8201d
|
|
BLAKE2b-256 checksum How to use checksums |
01c553f1b908adebc557a502dc625e648d6314bd4bb3778e0f55a3710036a0dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / openbb_government_us-2.0.0-py3-none-any.whl
| Download URL | openbb_government_us-2.0.0-py3-none-any.whl |
|---|---|
| Size | 615.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e15f47186e07e0e68f27addc75460835490c7c90c0170a1a857b922932bd7990
|
|
BLAKE2b-256 checksum How to use checksums |
70d342ac6a9b1a7bcdab2414e534a58174effbb06ae3a63675f97ebb6d4a6ab9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency log