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

Method __init__ Initialize Command instance with signature, concrete class, and method.
Method arguments Set CLI arguments for the command.
Method description Set description for the command.
Method get Retrieve configured Command entity.
Method timestamp Configure timestamp display for command output.
Instance Variable __arguments Undocumented
Instance Variable __concrete Undocumented
Instance Variable __description Undocumented
Instance Variable __method Undocumented
Instance Variable __signature Undocumented
Instance Variable __timestamp Undocumented
def __init__(self, signature: str, concrete: Callable[..., Any], method: str = 'handle'): (source)

Initialize Command instance with signature, concrete class, and method.

Validate input parameters and set up internal state for command execution.

Parameters
signature:strCommand signature for CLI invocation.
concrete:Callable[..., Any]Class implementing command logic.
method:str, default 'handle'Method name to execute in concrete class.
Returns
NoneThis constructor does not return a value.
Raises
TypeErrorIf concrete is not a class or method is not a string.
AttributeErrorIf method does not exist or is not callable in concrete class.
def arguments(self, args: list[Argument]) -> Self: (source)

Set CLI arguments for the command.

Configure accepted command-line arguments.

Parameters
args:listList of Argument instances.
Returns
CommandReturns self for method chaining.
Raises
TypeErrorIf args is not a list or contains non-Argument elements.
def description(self, desc: str) -> Self: (source)

Set description for the command.

Assign a descriptive text for help and documentation.

Parameters
desc:strDescription text for the command.
Returns
CommandReturns self for method chaining.
Raises
TypeErrorIf desc is not a string.
def get(self) -> tuple[str, CommandEntity]: (source)

Retrieve configured Command entity.

Construct and return CommandEntity with all configuration.

Returns
tuple of (str, CommandEntity)Command signature and CommandEntity instance.
def timestamp(self, *, enabled: bool = True) -> Self: (source)

Configure timestamp display for command output.

Enable or disable timestamps in command results.

Parameters
enabled:bool, default TrueEnable or disable timestamp display.
Returns
CommandReturns self for method chaining.
Raises
TypeErrorIf enabled is not a boolean.
__arguments = (source)

Undocumented

__concrete = (source)

Undocumented

__description = (source)

Undocumented

__method = (source)

Undocumented

__signature = (source)

Undocumented

__timestamp = (source)

Undocumented