destiny
Attributes¶
Classes¶
Destiny
¶
Bases: Manifest
A destiny is basically a link to a potential future transformation result involving one or several values as input.
It is immutable, once executed, each of the input values can only have one destiny with a specific alias. This is similar to what is usually called a 'future' in programming languages, but more deterministic, sorta.
Source code in kiara/models/module/destiny.py
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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
|
Attributes¶
destiny_id: uuid.UUID = Field(description='The id of this destiny.')
class-attribute
¶
destiny_alias: str = Field(description='The path to (the) destiny.')
class-attribute
¶
module_details: KiaraModuleInstance = Field(description='The class of the underlying module.')
class-attribute
¶
fixed_inputs: Dict[str, uuid.UUID] = Field(description='Inputs that are known in advance.')
class-attribute
¶
inputs_schema: Dict[str, ValueSchema] = Field(description='The schemas of all deferred input fields.')
class-attribute
¶
deferred_inputs: Dict[str, Union[uuid.UUID, None]] = Field(description='Potentially required external inputs that are needed for this destiny to materialize.')
class-attribute
¶
result_field_name: str = Field(description='The name of the result field.')
class-attribute
¶
result_schema: ValueSchema = Field(description='The value schema of the result.')
class-attribute
¶
result_value_id: Union[uuid.UUID, None] = Field(description='The value id of the result.')
class-attribute
¶
merged_inputs: Mapping[str, uuid.UUID]
property
¶
module: KiaraModule
property
¶
Functions¶
create_from_values(kiara: Kiara, destiny_alias: str, values: Mapping[str, uuid.UUID], manifest: Manifest, result_field_name: Union[str, None] = None)
classmethod
¶
Source code in kiara/models/module/destiny.py
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 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
|