ORIONIS API REFERENCE

THE ORIONIS API

Build with clarity.

Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.

module documentation

Define types for localization.

Type Alias LocaleCache In-memory cache mapping each locale code to its translation map.
Type Alias MissingKeyHandler Handler invoked when a translation key is missing; receives the key and the locale, and may return a replacement line or None.
Type Alias TranslationMap Flat mapping of translation key to translated text for a single locale.

In-memory cache mapping each locale code to its translation map.

Value
dict[str, TranslationMap]
MissingKeyHandler: typing.TypeAlias = (source)

Handler invoked when a translation key is missing; receives the key and the locale, and may return a replacement line or None.

Value
Callable[[str, str], str | None]

Flat mapping of translation key to translated text for a single locale.

Value
dict[str, str]