openbb-government-us
US Government Data Extension for OpenBB
What it is and what it does
This package is an extension for the OpenBB Platform that adds access to US Government data sources. It bridges OpenBB's unified API layer to commodity data (USDA PSD reports and weather bulletins) and fixed-income data (Treasury auctions and prices) from data.gov, all without requiring registration.
The extension works by registering six new endpoints within the OpenBB namespace, allowing developers to fetch government datasets through the same interface they use for other OpenBB providers. It depends on openbb-core for the platform framework and random-user-agent to handle HTTP requests to government sources.
Use it for:
- Fetch USDA commodity production and supply data for agricultural market analysis
- Retrieve weather bulletins for crop forecasting and commodity trading
- Access Treasury auction results and historical pricing for fixed-income analysis
- Build a unified financial data pipeline that combines government and commercial sources via OpenBB
- Backtest trading strategies using government commodity and treasury data
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates US Government data sources (commodity reports, weather, treasury data) into the OpenBB Platform via a provider extension.
Yes, if you are already using OpenBB and need US Government commodity or Treasury data. The low install friction, active maintenance, and zero known vulnerabilities make it a safe addition. AGPL-3.0 licensing requires that any derivative work be open-source; if your project is proprietary, verify licensing compatibility first.
Install
openbb-government-us on PyPI
pip
pip install openbb-government-usuv
uv add openbb-government-uspoetry
poetry add openbb-government-usInstalling openbb-government-us
Before you install
Low install friction with a pure-Python wheel. Actively maintained as of 80 days ago. Depends on openbb-core and random-user-agent, both standard runtime dependencies.
License in practice
Licensed under AGPL-3.0-only. Any derivative work or modification must be distributed under the same license; proprietary use requires explicit permission or a separate commercial license.
Quickstart
pip install openbb-government-us
from openbb import obb
# Access commodity PSD data
data = obb.commodity.psd_data()
# Access treasury auction data
auctions = obb.fixed_income.government.treasury_auctions()
Requires Python 3.10 or later; openbb-core must be installed and configured first.
Verify before relying
- Whether openbb-core is freely available or requires registration/API keys for the government endpoints
- Data freshness and update frequency for commodity and treasury endpoints
- Whether all six covered endpoints are fully functional in version 1.6.1
Package facts
| License | AGPL-3.0-only (agpl) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — openbb-core, random-user-agent |
| Maintenance | actively maintained — 80 days since the last release |
| First released | |
| Downloads | 77,450/month — #14,521 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: openbb_government_us-1.6.1-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
openbb-fixedincomeProvides fixed income market data—government…
agpl · top 15,000 on PyPI
openbb-econdbIntegrates EconDB economic data into the OpenBB…
agpl · top 15,000 on PyPI
openbb-oecdIntegrates OECD statistical data into the…
agpl · top 15,000 on PyPI
openbb-tradingeconomicsIntegrates Trading Economics data into the…
agpl · top 15,000 on PyPI
openbb-benzingaIntegrates Benzinga financial data into the…
agpl · top 15,000 on PyPI
openbb-congress-govProvides access to U.S. legislative data from…
unclear · top 15,000 on PyPI
openbb-tiingoIntegrates Tiingo financial data into the…
agpl · top 15,000 on PyPI
openbb-commodityProvides commodity-related data commands as an…
agpl · top 15,000 on PyPI
openbb-fredIntegrates FRED (Federal Reserve Economic Data)…
agpl · top 15,000 on PyPI
openbb-blsIntegrates the U.S. Bureau of Labor Statistics…
agpl · top 15,000 on PyPI