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

Create one instance per class with synchronous and asynchronous access.

Async Method __acall__ Create or retrieve the singleton instance through an awaitable API.
Method __call__ Create or retrieve the thread-safe singleton instance.
Method __init__ Initialize per-class singleton state with a sentinel and lock.
async def __acall__(cls, *args: object, **kwargs: object) -> object: (source)

Create or retrieve the singleton instance through an awaitable API.

Parameters
cls:typeClass whose singleton instance is requested.
*args:objectPositional arguments passed to the class constructor on creation.
**kwargs:objectKeyword arguments passed to the class constructor on creation.
Returns
objectThe existing or newly created singleton instance.
def __call__(cls, *args: object, **kwargs: object) -> object: (source)

Create or retrieve the thread-safe singleton instance.

Parameters
cls:typeClass whose singleton instance is requested.
*args:objectPositional arguments passed to the class constructor on creation.
**kwargs:objectKeyword arguments passed to the class constructor on creation.
Returns
objectThe existing or newly created singleton instance.
def __init__(cls, name: str, bases: tuple[type, ...], namespace: dict[str, object]): (source)

Initialize per-class singleton state with a sentinel and lock.

Parameters
cls:typeClass whose singleton state is initialized.
name:strName of the class being initialized.
bases:tuple[type, ...]Base classes of the class being initialized.
namespace:dict[str, object]Attributes defined in the class body.
Returns
NoneComplete the documented operation without returning a value.