Open Data Products Python SDK
open-data-products is a Python SDK and CLI for the
OpenDataProducts.org standards family:
ODPS, ODPC, ODPG, ODPV, and ODPR.
Use it to validate data product documents, build catalogs and graphs, inspect portfolio source intake, run LLM-assisted generation workflows, expose a local MCP server, and give AI agents a consistent standards-aware API.
Install
pip install open-data-products
Optional extras:
# Outlook .msg intake support
pip install "open-data-products[email]"
# Data Contract CLI integration
pip install "open-data-products[contracts]"
# Embedded llama.cpp generation support
pip install "open-data-products[llama-cpp]"
# Development tools
pip install "open-data-products[dev]"
Python 3.8.1 or newer is required.
The experimental OpenMetadata integration supports product discovery, ODPS export, reviewed creation and updates, domain management, and contract attachment. It was tested against one OpenMetadata 2.1.0 deployment. Other versions and their export behavior require verification.
What It Provides
| Area | Capabilities |
|---|---|
| Cross-spec API | Detect, load, validate, explain, summarize, and resolve references across ODPS, ODPC, ODPG, and ODPV documents |
| CLI | Run validation, generation, catalog, graph, vocabulary, portfolio, OKF, contract, resource, manifest, and MCP workflows through open-data-products |
| Portfolio workflows | Build, refresh, sync, render, localize, explain, and inspect portfolio workspaces from objectives, use cases, signals, and product source lanes |
| Document intake | Read Markdown, text, YAML, JSON, EML, MSG with the email extra, DOCX, PPTX, PDF, CSV, and XLSX source files for portfolio workflows |
| Agent surfaces | Run a safe-class stdio MCP server and generate an ARWS-compatible agent manifest |
| LLM generation | Generate ODPC fragments, ODPG graphs, and ODPS product YAML from source notes using local or hosted providers |
| OpenMetadata | Connect, review and create products, manage domains, compare retrieved metadata, and attach ODCS contracts |
| Data Contracts | Wrap ODCS 3.0/3.1/3.2 contracts into conservative ODPS 4.2 drafts, resolve ODPS contract references, validate external contracts through optional datacontract-cli, extract schemas, check alignment, and generate reports |
| DCAT Catalog Intelligence | Inspect supplied DCAT RDF with evidence-bounded findings, render an offline report, and convert explicitly selected resources to private ODPS 4.2 drafts |
| DPROD interoperability | Validate explicit OMG DPROD 1.0 Beta 2 products offline, create ODPS 4.2 drafts, and export deterministic DPROD RDF with loss reports |
Quick CLI Examples
Most commands print human-readable output by default. Add --json for CI,
scripts, MCP clients, and agents.
Run the SDK through Python:
# Validate and inspect standards documents
python3 -m open_data_products.cli validate examples/product.yaml
python3 -m open_data_products.cli explain examples/product.yaml --json
python3 -m open_data_products.cli refs examples/product.yaml --json
python3 -m open_data_products.cli summary examples/product.yaml
# Discover bundled schemas, prompts, vocabulary records, and guidance
python3 -m open_data_products.cli resources --json
python3 -m open_data_products.cli resources --id generation.prompt.system --json
# Agent surfaces
python3 -m open_data_products.cli manifest --json
python3 -m open_data_products.cli serve
After installation, the console script provides the same commands:
open-data-products validate examples/product.yaml
open-data-products explain examples/product.yaml --json
Create OpenMetadata products from reviewed ODPS 4.1 documents:
# Copy the bundled example into your project, then edit its endpoint.
open-data-products config integrations --copy-to connections.yaml
# Set OPENMETADATA_TOKEN in the environment, then select the connection.
open-data-products connect openmetadata --config connections.yaml
# Create new 4.1 drafts from business documents using a configured provider.
open-data-products generate --input business-brief.md --kind odps-product \
--odps-version 4.1 --output products/
# Review the folder and confirm creation in OpenMetadata.
open-data-products openmetadata products create ./products --domain "Retail Banking"
open-data-products openmetadata products list
open-data-products openmetadata products search "campaign"
open-data-products openmetadata products export --output catalog.yaml
# Review changes to an existing product by UUID.
open-data-products openmetadata products update --id PRODUCT_UUID \
--input product.yaml
The connection file references an environment variable, like OPENAI_API_KEY;
the SDK does not automatically load .env. The platform command requires a
write-enabled profile and appropriate platform permissions. It checks for
possible duplicates and reports fields that might not be imported; generated
metadata is not evidence of approval. See the integration guide
for setup, comparison, update and deletion, contract limitations, and JSON
automation.
Replace Retail Banking with the domain's exact OpenMetadata fully qualified
name (FQN); quote values with spaces. The FQN may differ from the display name.
For updates, the input product ID must match the OpenMetadata product name.
The review shows which source fields are applied; currently the file supplies
the title and description, while other ODPS fields are not applied.
OpenMetadata list, search and catalog export produce validated ODPC 1.0
catalogs. The catalog's productVersion records the OpenMetadata metadata
revision and labels its origin; it is not an independently verified product
release version.
Wrap an ODCS contract without changing its source:
open-data-products product wrap-contract --input contracts/orders.yaml \
--output products/orders.yaml --json
The resulting ODPS document is a private draft with reported defaults and
missing business evidence. It uses the original contract as an external
reference unless --inline-contract is selected.
Choose the draft depth with optional enrichment:
# Minimal technical wrapper
open-data-products product wrap-contract --input contracts/orders.yaml --output products/orders.yaml
# Business description and discovery tags
open-data-products product wrap-contract --input contracts/orders.yaml --output products/orders.yaml --enrich
# Rich ODPS draft
open-data-products product wrap-contract --input contracts/orders.yaml --output products/orders.yaml --enrich --full-draft
See Data Contract workflows for the generated fields and provider configuration.
Inspect a DCAT catalog, then convert only a selected resource:
open-data-products portfolio discover-dcat ./catalogs --output catalog-intelligence.html
open-data-products product wrap-dcat --input catalog.ttl \
--resource https://catalog.example/datasets/air-quality --output air-quality.yaml
See DCAT Catalog Intelligence for format support, evidence boundaries, conversion mapping, and optional AI proposals.
Validate an explicit DPROD Beta 2 product, create an ODPS draft, or export an ODPS definition as DPROD Turtle and JSON-LD:
open-data-products dprod-validate product.ttl --json
open-data-products product wrap-dprod --input product.ttl --resource https://example.test/products/air --output air.yaml
open-data-products product export-dprod --input air.yaml --output air
See DPROD interoperability for the normative namespace, offline SHACL profile, mapping constraints, and loss boundaries.
Discover technical portfolio evidence from a contract repository without declaring any contract to be an approved data product:
open-data-products portfolio discover-contracts contracts/ \
--output portfolio-discovery/ --json
The command writes a normalized contract inventory, a source-linked Data Contract Intelligence artifact, review-only typed opportunities, and a static HTML report. The report separates standalone product candidates, multi-contract boundary proposals, and rationalisation opportunities; it also lists contracts without a current opportunity signal. Duplicate and schema-overlap findings are technical evidence, not approved product boundaries.
Without --json, the command prints the same inventory, interface analysis,
priority evidence, typed opportunities, and no-current-signal contracts as the
HTML report. Use --json for the same information in structured form.
Portfolio source intake can be inspected without calling an LLM:
python3 -m open_data_products.cli portfolio intake \
--objectives sources/objectives/ \
--use-cases sources/use-cases/ \
--signals sources/signals/ \
--products sources/products/ \
--config generation.config.yaml \
--json
Portfolio build uses the same source lanes and prompt budget controls:
python3 -m open_data_products.cli portfolio build \
--objectives sources/objectives/ \
--use-cases sources/use-cases/ \
--signals sources/signals/ \
--products sources/products/ \
--output generated/portfolio/
LLM Generation
Generation defaults to local Ollama-compatible settings, and can also use
embedded llama.cpp, OpenAI-compatible local servers, NVIDIA NIM, Claude, and
hosted providers configured in generation.config.yaml.
open-data-products config generation --copy-to generation.config.yaml
open-data-products config generation --config generation.config.yaml --check
open-data-products generate \
--config generation.config.yaml \
--input source_docs/products/ \
--kind product-reference \
--output generated/
Documentation
The full SDK guide that used to live in this README is now here:
Focused user guides:
- Command guide
- Portfolio intake guide
- LLM generation
- Agent surface
- Recipe workflows
- Data Contract workflows
- DCAT Catalog Intelligence
- API reference
Project references:
Development
git clone https://github.com/Open-Data-Product-Initiative/odps-python
cd odps-python
pip install -e ".[dev]"
pytest -q
Before publishing a package, verify the PyPI description renders:
python3 -m build
python3 -m twine check dist/*
Acknowledgments
Thanks to the Open Data Product Initiative community, Chris Howard / Kitard for
the original odps-python foundation, devlouie for the MCP layer and agent
surface, the OpenMetadata platform, and the Data Contract CLI project for the
optional contract execution engine.
License
Apache License 2.0. See LICENSE for details.
Metadata
Release files for open-data-products 0.8.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 | Provenance | Actions |
|---|---|---|---|---|
| open_data_products-0.8.0.tar.gz | 3.4 MB | With provenance | Details for open_data_products-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| open_data_products-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for open_data_products-0.8.0-py3-none-any.whl |
Total release size: 4.0 MB
Release files / open_data_products-0.8.0.tar.gz
| Download URL | open_data_products-0.8.0.tar.gz |
|---|---|
| Size | 3.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10f5e62331f64c2a55111fabf70ac397e33160cd1c59a3a1b6e4c9615af14fef
|
|
BLAKE2b-256 checksum How to use checksums |
5c6607b8b9f911696a359722f3de5138b7d6c536733a2b49c82c9621f4ce7a6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 25, 2026.
Transparency logRelease files / open_data_products-0.8.0-py3-none-any.whl
| Download URL | open_data_products-0.8.0-py3-none-any.whl |
|---|---|
| Size | 632.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8255503e0a58f26447a826bf90912b453e3850aa2bfe527d6390fb32a5f34af
|
|
BLAKE2b-256 checksum How to use checksums |
7cbee5f7d331d67f67084b9411517138ab073d247058fa6117767b007bfc270c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 25, 2026.
Transparency logSecurity for open-data-products 0.8.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for open_data_products-0.8.0.tar.gz
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 Nov 25, 2026.
Transparency logA 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.