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

View In Hierarchy

Define lifecycle types for dependency injection.

This enumeration specifies how and when dependency instances are created and shared.

Returns
LifetimeAn 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.

Create and share an instance within a defined scope.

Value
auto()

Create a single shared instance for the application's lifetime.

Value
auto()

Create a new instance every time the dependency is requested.

Value
auto()