lineage
Classes¶
LineageHtmlInputs
¶
Bases: RenderInputsSchema
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
Attributes¶
render_style: str = Field(description='The style to use for rendering the lineage graph.', default='default')
class-attribute
instance-attribute
¶
config: Dict[str, Any] = Field(description='Additional, optional configuration for the renderer.', default_factory=dict)
class-attribute
instance-attribute
¶
Functions¶
validate_linage_inputs(values)
¶
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
33 34 35 36 37 38 39 40 41 42 43 |
|
LineageHtmlRendererConfig
¶
Bases: KiaraRendererConfig
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
46 47 |
|
LineageTransformer
¶
Bases: SourceTransformer
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
|
Functions¶
retrieve_supported_python_classes() -> Iterable[Type]
¶
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
97 98 99 |
|
retrieve_supported_inputs_descs() -> Union[str, Iterable[str]]
¶
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
101 102 103 104 105 106 107 |
|
validate_and_transform(source: Any) -> Union[ValueLineage, None]
¶
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
109 110 111 112 113 |
|
LineageRendererHtml
¶
Bases: KiaraRenderer[ValueLineage, LineageHtmlInputs, str, LineageHtmlRendererConfig]
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
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 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 |
|
Functions¶
retrieve_doc() -> Union[str, None]
¶
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
124 125 126 |
|
retrieve_source_transformers() -> Iterable[SourceTransformer]
¶
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
128 129 |
|
retrieve_supported_render_sources() -> str
¶
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
131 132 |
|
retrieve_supported_render_targets() -> Union[Iterable[str], str]
¶
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
134 135 |
|
render__default(lineage: ValueLineage, **config: ValueLineage) -> str
¶
Renders a html tree view using ul/li elements in a recursive helper function.
There's a lot more we can do here, like replacing the value ids with aliases (if the values have one), or have a preview of the value whe hovering over it. This is really just the bare minimum.
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
|
render__image(lineage: ValueLineage, **config: ValueLineage) -> str
¶
Renders the lineage as a graph image.
I wrote this to show how we can include Javascript in the resulting html page. Being able to include the image bytes directly is also neat I think.
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
|
render__tree(lineage: ValueLineage, **config: ValueLineage) -> str
¶
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
209 210 211 212 213 214 215 216 |
|
Functions¶
fill_html_lineage_tree(kiara: Kiara, pedigree: ValuePedigree, node: Union[Airium, None] = None, include_ids: bool = False, level: int = 0) -> Airium
¶
Recursive helper method to get a tree structure from a root value ppedigree.
Source code in /opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/kiara_plugin/html/renderers/lineage.py
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 |
|