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

Undocumented

Async Method call Execute a registered command by its signature.
Method command Register a fluent command with the given signature and handler.
Async Method hasCommand Check whether a command signature is registered.
Async Method info Return registered commands metadata.
async def call(self, signature: str, args: list[str] | None = None) -> int: (source)

Execute a registered command by its signature.

Parameters
signature:strCommand signature to execute.
args:list of str or None, optionalArguments to pass to the command.
Returns
intThe output produced by the command execution.
Raises
ValueErrorIf the command is not found.
ExceptionIf command execution fails.
def command(self, signature: str, handler: list[type[Any] | str | None] | str) -> ICommand: (source)

Register a fluent command with the given signature and handler.

Parameters
signature:strCommand signature to register.
handler:list[type[Any] | str | None] | strHandler class and optional method name.
Returns
ICommandThe registered command instance.
async def hasCommand(self, signature: str) -> bool: (source)

Check whether a command signature is registered.

Parameters
signature:strCommand signature to look up.
Returns
boolWhether the signature identifies a registered command.
async def info(self) -> list[dict]: (source)

Return registered commands metadata.

Retrieve all loaded commands from the internal registry, skipping internal commands (those with double underscores). Each command is represented as a dictionary containing its signature and description.

Returns
list of dictList of dictionaries with 'signature' and 'description' for each command.