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:IContainer | Application container supplying configuration and dependencies. |
server:type[Server] | CompiledMcpServer | Value supplied for server. |
config:McpConfig | None | Validated configuration controlling this component. |
| Returns | |
None | Complete 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:str | Value supplied for method. |
params:dict[str, object] | None | Parameters decoded for the requested operation. |
meta:dict[str, object] | None | Value supplied for meta. |
requeststr | int | Value supplied for request_id. |
| Returns | |
McpTestResponse | Result 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:str | Value supplied for method. |
params:dict[str, object] | None | Parameters decoded for the requested operation. |
meta:dict[str, object] | None | Value supplied for meta. |
requeststr | int | Value supplied for request_id. |
| Returns | |
AsyncIterator[ | 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:str | Value supplied for name. |
arguments:dict[str, object] | None | Arguments supplied for this operation. |
| Returns | |
McpTestResponse | Result of the operation described above. |