skillfed

openbb-government-us

US Government Data Extension for OpenBB

openbb-government-us v1.6.1 77.5K downloads/30d#14,521 on PyPI
AGPL license AGPL-3.0-only Active released

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-us

uv

uv add openbb-government-us

poetry

poetry add openbb-government-us

Installing 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

License :: OSI Approved :: GNU Affero General Public License v3Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Tags

US government data providercommodity and treasury data APIopenbb government extensionUSDA PSD weather datatreasury auction pricesgovernment data integration
government-dataopenbb-extensionfinancial-data

More WWW/HTTP packages