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

Deferred facade call, awaitable and usable as an async context manager.

Building this object never touches the container; the underlying service is only resolved once the caller either awaits the instance directly (await Facade.method(...)) or enters it with async with Facade.method(...) as value:.

Async Method __aenter__ Resolve the call and enter the resulting async context manager.
Async Method __aexit__ Exit the async context manager entered by __aenter__.
Method __await__ Drive the deferred call to completion when awaited directly.
Async Method __awaitImpl Resolve the call and transparently await an awaitable result.
Method __init__ Store the pending call until it is awaited or entered.
Async Method __resolve Resolve the service and evaluate the requested attribute.
Class Variable __slots__ Declare the instance attribute slots reserved by this class.
Instance Variable _args Positional arguments to forward to the resolved attribute.
Instance Variable _cls Facade class the attribute was requested on.
Instance Variable _context Runtime context made available to the operation and its callbacks.
Instance Variable _kwargs Keyword arguments to forward to the resolved attribute.
Instance Variable _name Name of the attribute requested on the resolved service.
async def __aenter__(self) -> object: (source)

Resolve the call and enter the resulting async context manager.

Returns
objectThe value yielded by the resolved context manager.
async def __aexit__(self, exc_type: type[BaseException] | None, exc: BaseException | None, traceback: TracebackType | None) -> bool | None: (source)

Exit the async context manager entered by __aenter__.

Parameters
exc_type:type[BaseException] or NoneThe exception type raised inside the block, if any.
exc:BaseException or NoneThe exception instance raised inside the block, if any.
traceback:types.TracebackType or NoneThe traceback for the raised exception, if any.
Returns
bool or NoneWhatever the resolved context manager returns from its own __aexit__.
def __await__(self) -> Generator[object, None, object]: (source)

Drive the deferred call to completion when awaited directly.

Returns
collections.abc.GeneratorIterator driving the underlying resolution coroutine.
async def __awaitImpl(self) -> object: (source)

Resolve the call and transparently await an awaitable result.

Returns
objectThe awaited value for async results, the direct value for sync results, or the raw attribute value.
def __init__(self, cls: type, name: str, args: tuple[object, ...], kwargs: dict[str, object]): (source)

Store the pending call until it is awaited or entered.

Parameters
cls:typeFacade class the attribute was requested on.
name:strName of the attribute requested on the resolved service.
args:tuple of objectPositional arguments to forward to the resolved attribute.
kwargs:dict of str to objectKeyword arguments to forward to the resolved attribute.
Returns
NoneThis method does not return a value.
async def __resolve(self) -> object: (source)

Resolve the service and evaluate the requested attribute.

Returns
objectThe call result when the attribute is callable, otherwise the plain attribute value.
__slots__: tuple[str, ...] = (source)

Declare the instance attribute slots reserved by this class.

Positional arguments to forward to the resolved attribute.

Facade class the attribute was requested on.

Runtime context made available to the operation and its callbacks.

Keyword arguments to forward to the resolved attribute.

Name of the attribute requested on the resolved service.