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

Provide console operations.

Includes bootstrap_recovery, recovering_route, bootstrap_recovery_active.

Function bootstrap_recovery Enable missing route recovery only for an exact bootstrap invocation.
Function bootstrap_recovery_active Return whether transient recovery configuration must bypass caches.
Function recovering_route Return whether this particular context is being explicitly repaired.
Constant _COMMANDS Commands used by bootstrap.
Constant _CONTEXTS Contexts used by bootstrap.
Constant _RECOVERING Context-local recovering isolated between asynchronous tasks.
def bootstrap_recovery(arguments: Sequence[str] | None) -> Generator[None]: (source)

Enable missing route recovery only for an exact bootstrap invocation.

Parameters
arguments:collections.abc.Sequence[str] | NoneCLI arguments, optionally preceded by the Reactor executable.
Returns
NoneRestore the previous recovery context when the generator completes.
Yields
NoneRun application initialization and command execution in this context.
def bootstrap_recovery_active() -> bool: (source)

Return whether transient recovery configuration must bypass caches.

Returns
boolWhether a native route bootstrap command is currently initializing.
def recovering_route(context: str) -> bool: (source)

Return whether this particular context is being explicitly repaired.

Parameters
context:strRouting context whose missing files would otherwise prevent startup.
Returns
boolWhether startup may retain missing paths for this context alone.
_COMMANDS = (source)

Commands used by bootstrap.

Value
_CONTEXTS | set(['config', 'lifespan'])
_CONTEXTS = (source)

Contexts used by bootstrap.

Value
frozenset(set(['api', 'ai', 'console', 'web', 'websocket']))

Context-local recovering isolated between asynchronous tasks.

Value
ContextVar('orionis_bootstrap_route',
           default=None)