Repository navigation
okf-parser 0.47.0
okf-parser 0.47.0
Bundles load through the native binary and are typed records
Phase 2 of RFC 0024, now revised as
Rust core, Python shell: the native binary is the product, and the Python
package is a thin shell over it, the way ruff and uv ship.
Breaking:
load_bundlealways calls the native binary installed with the package. The
pure-Python ingestion path andload_bundle(engine=...)are removed; a
missing binary raisesNativeBinaryMissingError.Bundle.concepts,.linksand.reservedare tuples ofConceptRecord,
LinkRecordandReservedRecordinstead of ibis tables. There is no
.execute()shim: read the records directly, or query them as SQL through
attach_okf.- Frontmatter with a YAML tag that has no JSON representation (
!!binary,
!!set,!!omap, application tags such as!thing) no longer drops the
concept. The value keeps its written spelling or structure, and a new
OKF102warning names the tags, so the bundle stays conformant. The
Python engine used to reject these documents withOKF001. Writes that still
parse in Python (apply,edit) reject such a document until they move to
the binary.
The binary's answers now carry a protocol version, validated by the shell, and
include the graph summary, so Bundle.graph().summary() no longer computes
anything in Python. Loading a bundle no longer builds ibis tables, which makes
the test suite about 40% faster.