The ODPC source repository includes Python tools for validating catalogs, generating derived artifacts, searching catalog object records, explaining catalog files, and checking agent-friendly artifacts.
These tools are useful when you want to work with ODPC as machine-readable metadata, not only as documentation.
The tools live in the official ODPC repository:
https://github.com/Open-Data-Product-Initiative/odpc-v1.0/tree/main/scripts
From a local clone of the ODPC repository:
python -m pip install -r scripts/requirements-agent.txtUse validate_catalog.py to validate an ODPC YAML or JSON catalog against the ODPC schema.
python scripts/validate_catalog.py source/catalog/examples/full.yamlThe script reports whether the file is a valid ODPC catalog and prints schema validation errors when it is not.
Use explain_catalog.py to produce a compact summary of a catalog file.
python scripts/explain_catalog.py source/catalog/examples/full.yamlThe output includes the catalog ID, name, status, object counts, graph reference, object IDs, and hints such as missing product references or missing graph references.
Use search_objects.py to search the agent-friendly ODPC object records in source/catalog/objects.jsonl.
python scripts/search_objects.py demand
python scripts/search_objects.py --id ProductReference
python scripts/search_objects.py signal --jsonThis helps humans and AI agents find the right ODPC object, required fields, use guidance, and example files.
Use generate_catalog_artifacts.py to generate derived artifacts from canonical ODPC sources.
python scripts/generate_catalog_artifacts.py
python scripts/generate_catalog_artifacts.py --checkThe --check option is useful in CI because it fails when generated artifacts are out of date.
Use check_agent_artifacts.py to verify the consistency of agent-facing ODPC artifacts, examples, schema files, object records, and llms.txt references.
python scripts/check_agent_artifacts.pyUse the ODPC Python tools when you need to validate catalog files, keep generated schema artifacts in sync, search object guidance, or prepare ODPC metadata for AI-assisted catalog and portfolio workflows.