Browse documentation
Documentation
The API is build to be easily navigatable from a top level import
Lokit is split into modules for parsing, writing, streaming and databse. Each module has its own set of functions parsers, exporters and transformers.
Choose your path
01
I want the overview
Learn the model, streaming architecture, native cores, and regeneration workflow.
Understand Lokit02I want to try Lokit
Install the package and convert a TMX file to XLIFF.
Open quickstart03I have a file
Start from format-specific behavior and available APIs.
Browse formats04I need an API
Look up parse, stream, export, regeneration, query, database, and types.
Browse modules60 seconds
The entire basic workflow
The package name and import name differ. After installation, one import exposes the canonical parser and writer namespaces.
Explain each linequickstart.py
import lokit# Convert in one line without loading the file into memory:lokit.stream.tmx( "memory.tmx", target_language="fr",).export.xliff("memory.xliff")
# Materialize into the unified data structure:base = lokit.parse.tmx("memory.tmx", target_language="fr")targets = [unit.target for unit in base.data.values()] # Example of data structure usageGrouped
File formats
.lokitLokit's sparse, lossless native interchange format.TMXMaterialized, parallel, streaming, and async TMX.XLIFFXLIFF 1.2 and 2.x parsing, writing, and regeneration.PO & POTGettext catalogs, plurals, and target merging.CSV & XLSXColumn mapping and multilingual tables.JSON & HTMLNested i18n JSON and translatable HTML content.DOCX & PPTXWord and PowerPoint extraction and reinsertion.IDMLAdobe InDesign story extraction and regeneration.
Data integrity
API modules
lokit.parseMaterialize supported inputs into one typed model.lokit.stream & asyncBounded iteration for large files and event loops.lokit.export & document.exportWrite the common model to every supported output format.lokit.write & convertUnderstand writer aliases and direct path conversions.document.regenCreate localized files shaped like their originals.lokit.LokitNavigation, filtering, fuzzy search, and matching.lokit.typesStable typed structures, enums, and inline content.
Database