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.

module documentation

Undocumented

Class ClientTarget Send to a Hub-local selection or invoke one explicitly selected client.
Function _validate_call Validate a public client target and its argument count.
Function validate_group Validate a bounded, nonempty group name.
Function validate_identifier Validate a bounded, nonempty connection or public method identifier.
Constant _MAX_ARGUMENTS Undocumented
Constant _MAX_GROUP Undocumented
Constant _MAX_IDENTIFIER Undocumented
def _validate_call(target: str, args: tuple[object, ...]): (source)

Validate a public client target and its argument count.

Parameters
target:strRemote client method or event name.
args:tuple[object, ...]Positional values to serialize.
Returns
NoneAccept the public target and up to 64 positional arguments.
Raises
ValueErrorIf a target is private, qualified, oversized or has too many arguments.
def validate_group(group: str): (source)

Validate a bounded, nonempty group name.

Parameters
group:strHub-local group name supplied by application code.
Returns
NoneAccept the group name without modifying it.
Raises
ValueErrorIf the name is missing, non-string or longer than 256 characters.
def validate_identifier(value: str, label: str = 'Identifier'): (source)

Validate a bounded, nonempty connection or public method identifier.

Parameters
value:strIdentifier supplied by application code.
label:str, optionalDescription included in a validation error.
Returns
NoneAccept the identifier without modifying it.
Raises
ValueErrorIf the identifier is missing, non-string or longer than 128 characters.
_MAX_ARGUMENTS: int = (source)

Undocumented

Value
64
_MAX_GROUP: int = (source)

Undocumented

Value
256
_MAX_IDENTIFIER: int = (source)

Undocumented

Value
128