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 Lifetime(Enum): (source)
Define lifecycle types for dependency injection.
This enumeration specifies how and when dependency instances are created and shared.
| Returns | |
Lifetime | An enumeration member representing the selected lifecycle type. |
| Constant | SCOPED |
Create and share an instance within a defined scope. |
| Constant | SINGLETON |
Create a single shared instance for the application's lifetime. |
| Constant | TRANSIENT |
Create a new instance every time the dependency is requested. |