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)
Store the active dependency-injection scope in a context variable.
| Class Method | get |
Retrieve the current active scope. |
| Class Method | reset |
Reset the active scope to a previous state. |
| Class Method | set |
Set the current active scope. |
| Class Variable | _active |
Define a context variable to hold the active scope. The default value is None, indicating no active scope. |
Reset the active scope to a previous state.
| Parameters | |
token:contextvars.Token | The token representing the previous state to restore. |
| Returns | |
None | This method does not return a value. |
Set the current active scope.
| Parameters | |
scope:object | The scope object to set as the current active scope. |
| Returns | |
contextvars.Token | A token representing the previous state of the context variable. |