Browse documentation
DocsAPI module
lokit.Lokit
A convenience facade for auto-detection, navigation, filtering, and in-memory matching.
01
Create an engine
Lokit.parse(path) auto-detects a file and wraps the materialized model. Lokit.from_document() wraps an existing BaseStructure; Lokit.parse_bytes() loads the supported binary payload form.
engine.py
import lokit
engine = lokit.Lokit.parse("messages.xliff")print(engine.ids())print(engine.unit("home.title"))print(engine.target("home.title", "fr-FR"))03
Match in memory
fuzzy_find() searches source strings and returns MatchResult objects. match() scores one source against a known unit and can require adjacent context or a compatible tag signature. Use lokit.database for persistent translation-memory workloads.