corvix.config._utils

Shared YAML parsing helpers.

Functions

_ensure_map(→ dict[str, object])

_ensure_list(→ list[object])

_as_bool(→ bool)

_as_int(→ int)

_as_float(→ float)

_as_str(→ str)

_get_str(→ str)

_get_optional_str(→ str | None)

_get_bool(→ bool)

_get_optional_bool(→ bool | None)

_get_int(→ int)

_get_float(→ float)

_get_optional_float(→ float | None)

_to_str_list(→ list[str])

_to_float_map(→ dict[str, float])

Module Contents

corvix.config._utils._ensure_map(value: object, section: str) dict[str, object][source][source]
corvix.config._utils._ensure_list(value: object, section: str) list[object][source][source]
corvix.config._utils._as_bool(value: object, field: str) bool[source][source]
corvix.config._utils._as_int(value: object, field: str) int[source][source]
corvix.config._utils._as_float(value: object, field: str) float[source][source]
corvix.config._utils._as_str(value: object, field: str) str[source][source]
corvix.config._utils._get_str(config: dict[str, object], key: str, default: str, field: str) str[source][source]
corvix.config._utils._get_optional_str(config: dict[str, object], key: str, field: str) str | None[source][source]
corvix.config._utils._get_bool(config: dict[str, object], key: str, default: bool, field: str) bool[source][source]
corvix.config._utils._get_optional_bool(config: dict[str, object], key: str, field: str) bool | None[source][source]
corvix.config._utils._get_int(config: dict[str, object], key: str, default: int, field: str) int[source][source]
corvix.config._utils._get_float(config: dict[str, object], key: str, default: float, field: str) float[source][source]
corvix.config._utils._get_optional_float(config: dict[str, object], key: str, field: str) float | None[source][source]
corvix.config._utils._to_str_list(value: object) list[str][source][source]
corvix.config._utils._to_float_map(value: object, section: str) dict[str, float][source][source]