fastflowtransform.config.sources¶
FreshnessWindow ¶
Bases: BaseModel
Time window: e.g. {count: 12, period: 'hour'}.
Source code in src/fastflowtransform/config/sources.py
133 134 135 136 137 138 139 140 141 142 143 144 145 146 | |
SourceFreshnessConfig ¶
Bases: BaseModel
Freshness configuration for a source or table.
freshness: loaded_at_field: my_ts_col warn_after: {count: 12, period: hour} error_after: {count: 24, period: hour}
Source code in src/fastflowtransform/config/sources.py
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 | |
merged_with ¶
merged_with(other)
Return a new config where self overrides 'other'. Useful for table-level override over source-level defaults.
Source code in src/fastflowtransform/config/sources.py
165 166 167 168 169 170 171 172 173 174 175 176 | |
SourceTableConfig ¶
Bases: BaseModel
Schema for an individual table entry under a source group.
We allow extra keys so that future metadata (e.g. owner) doesn't break users, but we only use the known ones below when normalizing.
Source code in src/fastflowtransform/config/sources.py
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 | |
SourceGroupConfig ¶
Bases: BaseModel
Schema for each entry under top-level sources: in sources.yml.
Source code in src/fastflowtransform/config/sources.py
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 | |
SourcesFileConfig ¶
Bases: BaseModel
Strict representation of sources.yml (version 2).
Source code in src/fastflowtransform/config/sources.py
301 302 303 304 305 306 307 308 309 | |
load_sources_config ¶
load_sources_config(project_dir)
Read sources.yml under project_dir, validate it with Pydantic, and
return the normalized dict that Registry expects.
This function is the direct analogue of parse_project_yaml_config.
Source code in src/fastflowtransform/config/sources.py
420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 | |
resolve_source_entry ¶
resolve_source_entry(entry, engine, *, default_identifier=None)
Apply engine overrides to a normalized entry ("base" + "overrides").
This is unchanged from your current implementation.
Source code in src/fastflowtransform/config/sources.py
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 | |