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

class IFacade(ABC): (source)

View In Hierarchy

Undocumented

Class Method getFacadeAccessor Return the container accessor key for this facade.
Async Class Method pin Pin the resolved instance on this facade class.
Async Class Method resolve Resolve the service instance bound to this facade.
Class Method unpin Clear the pinned instance from this facade class.
@classmethod
@abstractmethod
def getFacadeAccessor(cls) -> str | type: (source)

Return the container accessor key for this facade.

Returns
str | typeThe alias or contract class used to resolve the container binding.
Raises
NotImplementedErrorRaised when the subclass does not implement this method.
@classmethod
@abstractmethod
async def pin(cls): (source)

Pin the resolved instance on this facade class.

Returns
NoneReturns None after storing the currently resolved instance.
@classmethod
@abstractmethod
async def resolve(cls, *args: object, **kwargs: object) -> object: (source)

Resolve the service instance bound to this facade.

Parameters
*args:objectPositional arguments forwarded to the container make call.
**kwargs:objectKeyword arguments forwarded to the container make call.
Returns
objectThe resolved service instance from the application container.
Raises
RuntimeErrorRaised when the application has not been booted.
@classmethod
@abstractmethod
def unpin(cls): (source)

Clear the pinned instance from this facade class.

Returns
NoneReturns None after clearing the cached pinned instance.