documentation
Attributes¶
Classes¶
AuthorModel
¶
Bases: BaseModel
Details about an author of a resource.
Source code in src/kiara/models/documentation.py
27 28 29 30 31 32 33 34 35 |
|
Attributes¶
model_config = ConfigDict(title='Author')
class-attribute
instance-attribute
¶
name: str = Field(description='The full name of the author.')
class-attribute
instance-attribute
¶
email: Union[EmailStr, None] = Field(description='The email address of the author', default=None)
class-attribute
instance-attribute
¶
LinkModel
¶
Bases: BaseModel
A description and url for a reference of any kind.
Source code in src/kiara/models/documentation.py
38 39 40 41 42 43 44 45 46 47 48 |
|
Attributes¶
model_config = ConfigDict(title='Link')
class-attribute
instance-attribute
¶
url: str = Field(description='The url.')
class-attribute
instance-attribute
¶
desc: Union[str, None] = Field(description='A short description of the link content.', default=DEFAULT_NO_DESC_VALUE)
class-attribute
instance-attribute
¶
AuthorsMetadataModel
¶
Bases: KiaraModel
Information about all authors of a resource.
Source code in src/kiara/models/documentation.py
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 |
|
Attributes¶
model_config = ConfigDict(extra='ignore', title='Authors')
class-attribute
instance-attribute
¶
authors: List[AuthorModel] = Field(description='The authors/creators of this item.', default_factory=list)
class-attribute
instance-attribute
¶
Functions¶
from_class(item_cls: Type) -> AuthorsMetadataModel
classmethod
¶
Source code in src/kiara/models/documentation.py
59 60 61 62 63 |
|
create_renderable(**config: Any) -> RenderableType
¶
Source code in src/kiara/models/documentation.py
69 70 71 72 73 74 75 76 77 78 79 80 81 |
|
ContextMetadataModel
¶
Bases: KiaraModel
Information about the context of a resource.
Source code in src/kiara/models/documentation.py
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 |
|
Attributes¶
model_config = ConfigDict(extra='ignore', title='Context')
class-attribute
instance-attribute
¶
references: Dict[str, LinkModel] = Field(description='References for the item.', default_factory=dict)
class-attribute
instance-attribute
¶
tags: List[str] = Field(description='A list of tags for the item.', default_factory=list)
class-attribute
instance-attribute
¶
labels: Dict[str, str] = Field(description='A list of labels for the item.', default_factory=dict)
class-attribute
instance-attribute
¶
Functions¶
from_class(item_cls: Type)
classmethod
¶
Source code in src/kiara/models/documentation.py
90 91 92 93 94 |
|
create_renderable(**config: Any) -> RenderableType
¶
Source code in src/kiara/models/documentation.py
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
|
add_reference(ref_type: str, url: str, desc: Union[str, None] = None, force: bool = False)
¶
Source code in src/kiara/models/documentation.py
130 131 132 133 134 135 136 137 138 139 140 |
|
get_url_for_reference(ref: str) -> Union[str, None]
¶
Source code in src/kiara/models/documentation.py
142 143 144 145 146 147 |
|
DocumentationMetadataModel
¶
Bases: KiaraModel
Documentation about a resource.
Source code in src/kiara/models/documentation.py
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 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 |
|
Attributes¶
model_config = ConfigDict(title='Documentation')
class-attribute
instance-attribute
¶
description: str = Field(description='Short description of the item.', default=DEFAULT_NO_DESC_VALUE)
class-attribute
instance-attribute
¶
doc: Union[str, None] = Field(description='Detailed documentation of the item (in markdown).', default=None)
class-attribute
instance-attribute
¶
is_set: bool
property
¶
full_doc
property
¶
Functions¶
from_class_doc(item_cls: Type) -> DocumentationMetadataModel
classmethod
¶
Source code in src/kiara/models/documentation.py
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 |
|
from_function(func: Callable) -> DocumentationMetadataModel
classmethod
¶
Source code in src/kiara/models/documentation.py
182 183 184 185 186 187 188 189 190 |
|
from_string(doc: Union[str, None]) -> DocumentationMetadataModel
classmethod
¶
Source code in src/kiara/models/documentation.py
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
|
from_dict(data: Mapping) -> DocumentationMetadataModel
classmethod
¶
Source code in src/kiara/models/documentation.py
208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 |
|
create(item: Union[Any, None] = None) -> DocumentationMetadataModel
classmethod
¶
Source code in src/kiara/models/documentation.py
224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
|
create_renderable(**config: Any) -> RenderableType
¶
Source code in src/kiara/models/documentation.py
263 264 |
|