OECD provider extension for OpenBB Platform.
Actively maintained. Last release 2 months ago, commits in 12 of the last 26 weeks. A safe choice.
pip install openbb-oecdOpenBB OECD Provider Extension
This package adds the openbb-oecd provider extension to the Open Data Platform by OpenBB.
It provides everything you need — endpoints, tools, and metadata — to access and explore the entirety of https://data-explorer.oecd.org, without any previous experience working with it.
Installation
Install from PyPI with:
pip install openbb-oecd
Then build the Python static assets by running:
openbb-build
Quick Start
The fastest way to get started is by connecting to the OpenBB Workspace as a custom backend.
Start Server
openbb-api
This starts the FastAPI server over localhost on port 6900.
Add to Workspace
See the documentation here for more details.
Click to Open App
Once added, click on the app to open the dashboard.
The dashboard contains widgets with metadata and information, as well as ones for exploring and retrieving the data.
Implementation Details
OECD publishes data through a SDMX v2 REST API, and organizes everything into "dataflows". You can think of these as databases, each with its own dimension definitions, codelists, and observation attributes. Some definitions are shared across dataflows, others are domain-specific.
The extension ships with a bundled metadata cache that covers all OECD dataflows. It contains dimension definitions, codelist mappings, content constraints, and the full topic taxonomy. When anything is missing from the bundled cache, it is fetched on first use and added to a user-writable cache file that persists across sessions.
Input is validated against the dataflow's content constraints. Codes are resolved to human-readable labels in the output, and dataset and series metadata are returned alongside the observations.
Indicators
In this library, we use the term "indicator" to refer to indicator-like dimensions within individual dataflows.
These are dimensions that represent what is being measured, such as MEASURE, SUBJECT, TRANSACTION, or
ACTIVITY. The specific dimension varies by dataflow.
The OECD codes for these values — B1GQ, CPI, LI, etc. — are used to construct ticker-like symbols.