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

Open scopes on the supplied container; never create a parallel application.

Method __init__ Reuse native service bindings and one compiled server.
Async Method request Collect a finite exchange; use stream() for subscriptions.
Async Method stream Keep the existing application's scope alive through the entire stream.
Async Method tool Invoke a tool through JSON-RPC input and output bytes.
Class Variable __slots__ Undocumented
Instance Variable app Undocumented
Instance Variable dispatcher Undocumented
def __init__(self, app: IContainer, server: type[Server] | CompiledMcpServer, config: McpConfig | None = None): (source)

Reuse native service bindings and one compiled server.

Parameters
app:IContainerApplication container supplying configuration and dependencies.
server:type[Server] | CompiledMcpServerValue supplied for server.
config:McpConfig | NoneValidated configuration controlling this component.
Returns
NoneComplete the documented operation without returning a value.
async def request(self, method: str, params: dict[str, object] | None = None, *, meta: dict[str, object] | None = None, request_id: str | int = 1) -> McpTestResponse: (source)

Collect a finite exchange; use stream() for subscriptions.

Parameters
method:strValue supplied for method.
params:dict[str, object] | NoneParameters decoded for the requested operation.
meta:dict[str, object] | NoneValue supplied for meta.
request_id:str | intValue supplied for request_id.
Returns
McpTestResponseResult of the operation described above.
async def stream(self, method: str, params: dict[str, object] | None = None, *, meta: dict[str, object] | None = None, request_id: str | int = 1) -> AsyncIterator[dict[str, object]]: (source)

Keep the existing application's scope alive through the entire stream.

Parameters
method:strValue supplied for method.
params:dict[str, object] | NoneParameters decoded for the requested operation.
meta:dict[str, object] | NoneValue supplied for meta.
request_id:str | intValue supplied for request_id.
Returns
AsyncIterator[dict[str, object]]Undocumented
Yields
dict[str, object]Each item produced by the documented iteration.
async def tool(self, name: str, arguments: dict[str, object] | None = None) -> McpTestResponse: (source)

Invoke a tool through JSON-RPC input and output bytes.

Parameters
name:strValue supplied for name.
arguments:dict[str, object] | NoneArguments supplied for this operation.
Returns
McpTestResponseResult of the operation described above.
__slots__: tuple[str, ...] = (source)

Undocumented

Undocumented

dispatcher = (source)

Undocumented