Settings
sereto.models.settings
¶
ConvertRecipe
¶
Bases: RenderRecipe
Recipe for converting between file formats using RenderTool
s.
Attributes:
Name | Type | Description |
---|---|---|
name |
name of the recipe |
|
input_format |
FileFormat
|
input file format |
tools |
FileFormat
|
list of |
Source code in sereto/models/settings.py
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 |
|
Plugins
¶
Bases: SeretoBaseModel
Plugins settings.
Attributes:
Name | Type | Description |
---|---|---|
enabled |
bool
|
whether plugins are enabled |
directory |
str
|
path to the directory containing plugins ( |
Source code in sereto/models/settings.py
274 275 276 277 278 279 280 281 282 283 |
|
RenderRecipe
¶
Bases: SeretoBaseModel
Recipe for rendering and converting files using RenderTool
s.
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
name of the recipe |
tools |
Annotated[list[str], MinLen(1)]
|
list of |
Source code in sereto/models/settings.py
87 88 89 90 91 92 93 94 95 96 |
|
RenderTool
¶
Bases: SeretoBaseModel
Commands used in recipes.
Attributes:
Name | Type | Description |
---|---|---|
name |
str
|
name of the tool |
command |
str
|
command to run |
args |
list[str]
|
list of arguments to pass to the command |
Source code in sereto/models/settings.py
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 |
|
Settings
¶
Bases: SeretoBaseSettings
Global settings:
Attributes:
Name | Type | Description |
---|---|---|
projects_path |
DirectoryPath
|
path to the directory containing all projects |
templates_path |
DirectoryPath
|
path to the directory containing templates |
render |
Render
|
rendering settings |
categories |
TypeCategories
|
supported categories - list of strings (2-20 lower-alpha characters; also dash and underscore is possible in all positions except the first and last one) |
Raises:
Type | Description |
---|---|
SeretoPathError
|
If the file is not found or permission is denied. |
SeretoValueError
|
If the JSON file is invalid. |
Source code in sereto/models/settings.py
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 |
|