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

Represent a binding between a contract and its implementation.

Parameters
contractContract of the concrete class to inject.
concreteConcrete class implementing the contract.
instanceConcrete instance of the class, if provided.
lifetimeLifetime of the instance.
aliasAlias for resolving the dependency from the container.
Returns
NoneThis class does not return a value upon instantiation.
Method __post_init__ Validate the type of the 'lifetime' attribute after initialization.
Class Variable alias Undocumented
Class Variable concrete Undocumented
Class Variable contract Undocumented
Class Variable instance Undocumented
Class Variable lifetime Undocumented

Inherited from BaseEntity:

Class Method _cachedFieldMetadata Retrieve field definitions and normalized types cached by class.
Method getFields Describe field names, normalized types, defaults, and metadata.
Method toDict Convert the dataclass instance to a recursively copied dictionary.
Class Variable __slots__ Undocumented
def __post_init__(self): (source)

Validate the type of the 'lifetime' attribute after initialization.

Ensures that the 'lifetime' attribute is an instance of Lifetime.

Parameters
self:BindingThe instance of the Binding class.
Returns
NoneThis method does not return a value.
alias: str | None = (source)

Undocumented

concrete: type | None = (source)

Undocumented

contract: type | None = (source)

Undocumented

instance: object | None = (source)

Undocumented

Undocumented