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
class InMemoryMcpEventBus(IMcpEventBus): (source)
Constructor: InMemoryMcpEventBus(buffer_size, max_listeners)
Coalesce duplicate changes and close overloaded listeners gracefully.
| Method | __init__ |
Set finite listener and per-listener buffer budgets. |
| Method | listen |
Register synchronously so publication cannot race acknowledgment. |
| Async Method | publish |
Publish without awaiting a slow client or creating producer tasks. |
| Method | remove |
Release an iterator even if it was closed before its first read. |
| Async Method | shutdown |
Stop admission and wake all consumers to send graceful completion. |
| Class Variable | __slots__ |
Declare the instance attribute slots reserved by this class. |
| Instance Variable | _closed |
Whether this resource has completed its close lifecycle. |
| Instance Variable | _listeners |
Listeners produced by set. |
| Instance Variable | _max |
Value supplied for max_listeners. |
| Instance Variable | _size |
Value supplied for buffer_size. |
| Property | listener |
Expose aggregate lifecycle diagnostics, without subscriber identity. |
Register synchronously so publication cannot race acknowledgment.
| Parameters | |
server:type | Value supplied for server. |
filters:orionis.mcp.protocol.requests.SubscriptionFilter | Value supplied for filters. |
| Returns | |
collections.abc.AsyncIterator[orionis.mcp.subscriptions.event_bus.Change] | Result of the operation described above. |
Release an iterator even if it was closed before its first read.
| Parameters | |
listener:orionis.mcp.subscriptions.event_bus._Listener | Value supplied for listener. |
| Returns | |
None | Complete the documented operation without returning a value. |
Stop admission and wake all consumers to send graceful completion.
| Returns | |
None | Complete the documented operation without returning a value. |