Skip to content

Dag

Utilities related to DAGs and creating DAGs.

Config

Bases: BaseModel

Default config definition.

Attributes:

Name Type Description
version int

(int) version of the parser

description str | None

(str) short description of the configs (for humans)

from_json classmethod

from_json(file: Path) -> T

Load from JSON file to Config object.

Parameters:

Name Type Description Default

file

Path

path to toml files.

required

from_toml classmethod

from_toml(file: Path) -> T

Load from TOML file to Config object.

Parameters:

Name Type Description Default

file

Path

path to toml files.

required

parse_config_file

parse_config_file(resource_paths: Iterable[Path], parser: Callable[..., T]) -> list[T]

Parse config files.

Parameters:

Name Type Description Default

resource_paths

Iterable[Path]

file paths

required

parser

Callable

parsing logic

required