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

Undocumented

Class RouteCompiler No class docstring; 2/2 methods, 5/5 static methods documented
Function _action_name Return an importable handler name for boot-time dispatch and caching.
Function _register_name Require one unambiguous URL template per route name.
Function _validate_literal Reject unmatched braces and malformed parameter declarations.
Constant _NAMED_GROUP_RE Undocumented
Constant _PARAM_RE Undocumented
def _action_name(handler: Callable | type) -> str: (source)

Return an importable handler name for boot-time dispatch and caching.

Parameters
handler:Callable | typeValue supplied for handler.
Returns
strAn importable handler name for boot-time dispatch and caching.
Raises
ValueErrorIf the handler is local to a function and cannot be imported at boot.
def _register_name(names: dict[str, str], route: dict): (source)

Require one unambiguous URL template per route name.

Parameters
names:dict[str, str]Value supplied for names.
route:dictValue supplied for route.
Returns
NoneComplete the documented operation without returning a value.
Raises
ValueErrorIf the same name refers to different path templates.
def _validate_literal(fragment: str, path: str): (source)

Reject unmatched braces and malformed parameter declarations.

Parameters
fragment:strValue supplied for fragment.
path:strValue supplied for path.
Returns
NoneComplete the documented operation without returning a value.
Raises
ValueErrorIf a literal fragment contains a parameter delimiter.
_NAMED_GROUP_RE: re.Pattern = (source)

Undocumented

Value
re.compile(r'\(\?P<\w+>')

Undocumented

Value
re.compile(r'\{(\w+)(?::(\w+))?\}')