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__ |
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. |
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 | None:
(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:types.TracebackType or None | The traceback for the raised exception, if any. |
| Returns | |
bool or None | Whatever the resolved context manager returns from its own __aexit__. |
Drive the deferred call to completion when awaited directly.
| Returns | |
collections.abc.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. |