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 ScopedFacade(Facade): (source)
Known subclasses: orionis.support.facades.Session
Expose a service already bound to the caller's active scope.
Scoped services never enter the process-wide facade cache. Closing a scope also prevents access from child tasks that inherited that scope.
| Async Class Method | pin |
Validate scope availability without retaining the service globally. |
| Async Class Method | resolve |
Resolve the current instance without constructing a global service. |
| Class Method | scoped |
Return the service bound to the active scope. |
| Class Method | unpin |
Leave lifetime management to the owning scope. |
Inherited from Facade:
| Class Method | get |
Return the container accessor key for this facade. |
| Class Variable | _application |
Undocumented |
| Class Variable | _pinned |
Undocumented |
overrides
orionis.container.facades.Facade.pinValidate scope availability without retaining the service globally.
| Returns | |
None | Scoped attribute access is already direct. |
Return the service bound to the active scope.
| Returns | |
object | Request-local service instance. |
| Raises | |
RuntimeError | If no active scope contains the service. |
overrides
orionis.container.facades.Facade.unpinLeave lifetime management to the owning scope.
| Returns | |
None | No global instance exists to clear. |