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

An explicitly closable iterator, including before first iteration.

Method __aiter__ Return the subscription iterator.
Async Method __anext__ Wait without losing wakeups; propagate cancellation after cleanup.
Method __init__ Own exactly one listener registration.
Async Method aclose Release request-owned resources immediately.
Class Variable __slots__ Declare the instance attribute slots reserved by this class.
Instance Variable _bus Value supplied for bus.
Instance Variable _listener Value supplied for listener.
def __aiter__(self) -> AsyncIterator[Change]: (source)

Return the subscription iterator.

Returns
collections.abc.AsyncIterator[orionis.mcp.subscriptions.event_bus.Change]The subscription iterator.
async def __anext__(self) -> Change: (source)

Wait without losing wakeups; propagate cancellation after cleanup.

Returns
orionis.mcp.subscriptions.event_bus.ChangeResult of the operation described above.
def __init__(self, bus: InMemoryMcpEventBus, listener: _Listener): (source)

Own exactly one listener registration.

Parameters
bus:orionis.mcp.subscriptions.event_bus.InMemoryMcpEventBusValue supplied for bus.
listener:orionis.mcp.subscriptions.event_bus._ListenerValue supplied for listener.
Returns
NoneComplete the documented operation without returning a value.
async def aclose(self): (source)

Release request-owned resources immediately.

Returns
NoneComplete the documented operation without returning a value.
__slots__: tuple[str, ...] = (source)

Declare the instance attribute slots reserved by this class.

Value supplied for bus.

_listener = (source)

Value supplied for listener.