Skip to content

okf-parser 0.47.0

Choose a tag to compare

@github-actions github-actions released this 26 Sep 13:15
· 23 commits to main since this release
b56917a

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_bundle always calls the native binary installed with the package. The
    pure-Python ingestion path and load_bundle(engine=...) are removed; a
    missing binary raises NativeBinaryMissingError.
  • Bundle.concepts, .links and .reserved are tuples of ConceptRecord,
    LinkRecord and ReservedRecord instead 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
    OKF102 warning names the tags, so the bundle stays conformant. The
    Python engine used to reject these documents with OKF001. 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.