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. |
Create or retrieve the singleton instance through an awaitable API.
| Parameters | |
cls:type | Class whose singleton instance is requested. |
*args:object | Positional arguments passed to the class constructor on creation. |
**kwargs:object | Keyword arguments passed to the class constructor on creation. |
| Returns | |
object | The existing or newly created singleton instance. |
Create or retrieve the thread-safe singleton instance.
| Parameters | |
cls:type | Class whose singleton instance is requested. |
*args:object | Positional arguments passed to the class constructor on creation. |
**kwargs:object | Keyword arguments passed to the class constructor on creation. |
| Returns | |
object | The existing or newly created singleton instance. |
Initialize per-class singleton state with a sentinel and lock.
| Parameters | |
cls:type | Class whose singleton state is initialized. |
name:str | Name 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 | |
None | Complete the documented operation without returning a value. |