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 ScopedContext: (source)

View In Hierarchy

Undocumented

Class Method getCurrentScope Retrieve the current active scope.
Class Method reset Reset the active scope to a previous state.
Class Method setCurrentScope Set the current active scope.
Class Variable _active_scope Undocumented
def getCurrentScope(cls) -> object | None: (source)

Retrieve the current active scope.

Returns
object or NoneThe current scope object if set, otherwise None.

Reset the active scope to a previous state.

Parameters
token:contextvars.TokenThe token representing the previous state to restore.
Returns
NoneThis method does not return a value.
def setCurrentScope(cls, scope: object) -> contextvars.Token: (source)

Set the current active scope.

Parameters
scope:objectThe scope object to set as the current active scope.
Returns
contextvars.TokenA token representing the previous state of the context variable.

Undocumented