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

Function protocol_stdio Route MCP bootstrap, command, and shutdown diagnostics to STDERR.
Function protocol_stdout Return the original protocol writer while diagnostic stdout is redirected.
Constant _PROTOCOL_STDOUT Undocumented
def protocol_stdio(arguments: Sequence[str] | None) -> Generator[None]: (source)

Route MCP bootstrap, command, and shutdown diagnostics to STDERR.

Nested application entry points retain the first binary protocol writer. Ordinary Reactor commands keep their existing output behavior.

Parameters
arguments:Sequence[str] | NoneArguments supplied for this operation.
Returns
Generator[None]Undocumented
Yields
NoneYield control to the caller with the appropriate stdout routing.
def protocol_stdout() -> BinaryIO | None: (source)

Return the original protocol writer while diagnostic stdout is redirected.

Returns
BinaryIO | NoneThe original protocol writer while diagnostic stdout is redirected.
_PROTOCOL_STDOUT: ContextVar[BinaryIO | None] = (source)

Undocumented

Value
ContextVar('orionis_protocol_stdout',
           default=None)