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 _FacadeDispatch: (source)
Constructor: _FacadeDispatch(cls, name, args, kwargs)
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 | __await |
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__ |
Undocumented |
| Instance Variable | _args |
Undocumented |
| Instance Variable | _cls |
Undocumented |
| Instance Variable | _context |
Undocumented |
| Instance Variable | _kwargs |
Undocumented |
| Instance Variable | _name |
Undocumented |
Resolve the call and enter the resulting async context manager.
| Returns | |
object | The value yielded by the resolved context manager. |
type[ BaseException] | None, exc: BaseException | None, traceback: TracebackType | None) -> bool:
(source)
¶
Exit the async context manager entered by __aenter__.
| Parameters | |
exctype[BaseException] or None | The exception type raised inside the block, if any. |
exc:BaseException or None | The exception instance raised inside the block, if any. |
traceback:TracebackType or None | The traceback for the raised exception, if any. |
| Returns | |
bool | Whatever the resolved context manager returns from its own __aexit__. |
Drive the deferred call to completion when awaited directly.
| Returns | |
Generator | Iterator driving the underlying resolution coroutine. |
Resolve the call and transparently await an awaitable result.
| Returns | |
object | The awaited value for async results, the direct value for sync results, or the raw attribute value. |
type, name: str, args: tuple[ object, ...], kwargs: dict[ str, object]):
(source)
¶
Store the pending call until it is awaited or entered.
| Parameters | |
cls:type | Facade class the attribute was requested on. |
name:str | Name of the attribute requested on the resolved service. |
args:tuple of object | Positional arguments to forward to the resolved attribute. |
kwargs:dict of str to object | Keyword arguments to forward to the resolved attribute. |
| Returns | |
None | This method does not return a value. |
Resolve the service and evaluate the requested attribute.
| Returns | |
object | The call result when the attribute is callable, otherwise the plain attribute value. |