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

Store compiled Jinja templates in the configured bytecode directory.

Class OrionisBytecodeCache Store compiled Jinja templates in the configured bytecode directory.
Constant _CACHE_TRANSLATION Flatten separators and replace characters forbidden in Windows filenames.
Constant _DIGEST_LENGTH Digest characters appended to distinguish flattened template names.
Constant _TEMPLATE_EXTENSIONS Extensions stripped before building the cache filename.
_CACHE_TRANSLATION = (source)

Flatten separators and replace characters forbidden in Windows filenames.

Value
str.maketrans({**dict.fromkeys(('<>:"|?*' + ''.join(map(chr, range(32)))), '_'), '/': '.', '\\': '.'})
_DIGEST_LENGTH: int = (source)

Digest characters appended to distinguish flattened template names.

Value
8
_TEMPLATE_EXTENSIONS: tuple[str, ...] = (source)

Extensions stripped before building the cache filename.

Value
('.html', '.htm', '.jinja', '.jinja2', '.j2')