Base_binder
This module contains functionality related to the the base_binder
module for common.bootstrap
.
Base_binder
BaseBinder
Bases: ABC
Base class for binders.
Attributes: |
|
---|
Source code in src/common/bootstrap/base_binder.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
|
__init__(configuration, binder)
Initialize the BaseBinder.
Parameters: |
|
---|
Source code in src/common/bootstrap/base_binder.py
28 29 30 31 32 33 34 35 36 |
|
_get_bind(key)
Get the bind function for the given key.
Parameters: |
|
---|
Returns: |
|
---|
Source code in src/common/bootstrap/base_binder.py
43 44 45 46 47 48 49 50 51 52 |
|
_pydantic_config_is_equal(a, b)
Check if two Pydantic configuration objects are equal.
Parameters: |
|
---|
Returns: |
|
---|
Source code in src/common/bootstrap/base_binder.py
54 55 56 57 58 59 60 61 62 63 |
|
bind()
abstractmethod
Bind components to the injector based on the configuration.
Source code in src/common/bootstrap/base_binder.py
38 39 40 41 |
|
BaseBoundKey
Bases: ABC
Base class for bound keys. Used to bind and extract instances from the injector.
Source code in src/common/bootstrap/base_binder.py
11 12 13 14 15 16 17 |
|
_()
abstractmethod
Empty function to avoid unintended initialization.
Source code in src/common/bootstrap/base_binder.py
14 15 16 17 |
|