Kida API Reference

Browse Python API documentation by package.

Packages

Modules

__main__

``python -m kida`` → CLI.

_check

Private diagnostic collection for ``kida check``.

_diagnostic_adapters

Private adapters from existing producer records to canonical diagnostics.

_diagnostic_renderers

Private text, JSON, and SARIF renderers for ``kida check`` results.

_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

Public command-line entry point for Kida. Command parsing and implementations live in the private `kida._cli` package.

composition

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

coverage

Template coverage collection and reporting for Kida.

diagnostics

Public, surface-neutral diagnostics for Kida tooling. The functions in this module expose the same immutable facts...

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).