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 Binding(BaseEntity): (source)
Represent a binding between a contract and its implementation.
| Parameters | |
| contract | Contract of the concrete class to inject. |
| concrete | Concrete class implementing the contract. |
| instance | Concrete instance of the class, if provided. |
| lifetime | Lifetime of the instance. |
| alias | Alias for resolving the dependency from the container. |
| Returns | |
None | This class does not return a value upon instantiation. |
| Method | __post |
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 | _cached |
Retrieve field definitions and normalized types cached by class. |
| Method | get |
Describe field names, normalized types, defaults, and metadata. |
| Method | to |
Convert the dataclass instance to a recursively copied dictionary. |
| Class Variable | __slots__ |
Undocumented |