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.

class documentation

Undocumented

Method load Return all compiled routes, loading them first if necessary.
Property fallback Return the registered fallback handler, if any.
def load(self) -> dict[str, dict]: (source)

Return all compiled routes, loading them first if necessary.

Returns
dict[str, dict]Mapping of HTTP method to a dict with keys 'static' ({path: CompiledRoute}) and 'dynamic' ([CompiledRoute, ...]).

Return the registered fallback handler, if any.

The fallback is used when no route matches the incoming request. Accessing this property triggers route loading if it has not already occurred.

Returns
tuple | None(class, method_name) for controller-based fallbacks, (None, callable) for callable-based fallbacks, or None if no fallback has been registered, whether routes are compiled on demand or restored from cache.