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 fromCache Rebuild compiled routes and the fallback handler from a cache dict.
Method toCache Serialise compiled routes and the fallback handler to a cache dict.
def fromCache(self, cached: dict) -> tuple[dict[str, dict], tuple | None]: (source)

Rebuild compiled routes and the fallback handler from a cache dict.

Parameters
cached:dictDict previously produced by toCache.
Returns
tuple[dict[str, dict], tuple | None](routes, fallback) ready to be stored on the loader.
def toCache(self, routes: dict[str, dict], fallback: tuple | None) -> dict: (source)

Serialise compiled routes and the fallback handler to a cache dict.

Parameters
routes:dict[str, dict]Compiled routes mapping produced by RouteCompiler.compile.
fallback:tuple | NoneRaw fallback tuple stored by the loader.
Returns
dictJSON-safe representation suitable for FileBasedCache.save().