triplets package¶
- triplets.clear_caches() None[source]
Drop all in-memory engine state (see module docstring).
- triplets.cache_scope()[source]
Bound engine-state lifetime to a block: entries created inside are dropped on exit; entries that existed before the block are kept.
- triplets.engines() dict[str, dict][source]
What each subsystem’s “auto” resolves to, plus the available alternatives.
Returns {kind: {engine, source, policy, auto_order, available, unavailable, aliases}}.
policy="input"subsystems (tools, exporter_csv) follow the input object’s flavor per call, so they reportengine: Noneandsource: "input"— there is no global pick to show.
- triplets.set_engine(**engines_by_kind) None[source]
Global engine override per subsystem, e.g.
set_engine(parser_cimxml="python_lxml_arrow", sparql="rdflib").Noneor"auto"restores auto-selection.Per-call
engine=still wins over this. Process-global and intended for startup configuration; loads the engine eagerly so a bad name or missing dependency fails here, not at first use. Note per-call capability constraints still apply (e.g. cimxmldatatypes=Truerequires the python_lxml engine regardless of the override).