Kida API Reference

Browse Python API documentation by package.

Packages

Modules

__main__

``python -m kida`` → CLI.

_types

Core types for Kida template engine.

babel

Babel extraction plugin for Kida templates. Usage in ``babel.cfg``:: [kida: templates/**.html] encoding =...

bytecode_cache

Template Bytecode Cache. Persists compiled template code objects to disk for near-instant cold-start loading.

cli

Command-line interface for Kida (``kida check``, future subcommands).

composition

Public composition API for template structure and block validation. Provides validation helpers for frameworks like...

coverage

Template coverage collection and reporting for Kida.

exceptions

Exceptions for Kida template system.

extensions

Extension/plugin architecture for Kida template engine.

formatter

Opinionated template formatter for Kida. Auto-formats Kida templates with consistent whitespace, indentation, and...

kida

Kida — Next-generation template engine for free-threaded Python (3.14t+). A pure-Python template engine optimized...

lexer

Kida lexer — tokenizes template source code into a token stream. The lexer scans template source and produces Token...

markdown

Kida markdown components.

render_accumulator

Kida RenderAccumulator — opt-in profiling for template rendering.

render_capture

Kida RenderCapture — opt-in content capture during template rendering. This module provides render-time data...

render_context

Kida RenderContext — per-render state isolated from user context.

render_manifest

Kida RenderManifest — batch capture accumulation, search indexing, and diffing.

sandbox

Sandboxed template execution — defense-in-depth for risky templates. ``SandboxedEnvironment`` restricts attribute...

tstring

Kida Template String support (PEP 750).