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
Manage group membership owned by the current Hub connection.
| Method | __init__ |
Bind membership operations to one owned connection. |
| Async Method | join |
Join a group without consuming another slot for existing membership. |
| Async Method | leave |
Remove the current connection from one group idempotently. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _connection |
Undocumented |
| Instance Variable | _manager |
Undocumented |
Bind membership operations to one owned connection.
| Parameters | |
manager:IConnectionManager | Registry owning this connection and its Hub namespace. |
connectionstr | Current connection identifier. |
| Returns | |
None | Store the registry and connection identifier for membership changes. |
Join a group without consuming another slot for existing membership.
| Parameters | |
group:str | Hub-local group name, at most 256 characters. |
| Returns | |
None | Add the current connection, subject to its configured group limit. |
| Raises | |
ValueError | If the group name is invalid. |
ConnectionError | If the connection is absent or closing. |
RuntimeError | If another membership would exceed the configured group limit. |
Remove the current connection from one group idempotently.
| Parameters | |
group:str | Hub-local group name. |
| Returns | |
None | Remove membership and discard groups with no remaining members. |
| Raises | |
ValueError | If the group name is invalid. |