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

60 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 line
quickstart.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 usage

Grouped