Container
hexa.container
Summary
Container to build a wired hexa pipeline from annotations.
build recursively instantiates the port tree implied by a root class's
annotations, injecting provided runtime instances and config values by name.
Notes
- Runtime instances and config values are applied by name across the whole tree.
Functions
build
Recursively instantiate the port tree from annotations.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
cls |
type[T]
|
The root class to build (e.g. |
required |
instances |
dict[str, Any] | None
|
|
None
|
config |
dict[str, Any] | None
|
|
None
|
Returns:
| Name | Type | Description |
|---|---|---|
T |
T
|
A fully wired instance of |