Skip to main content

parse_toml

Returns a dict of config keys to values.

It reads configs from toml file and returns None if the file is not a toml file.

def parse_toml(
config_file: string
) - > dict[str, Any] | None

Returns a dict of config keys to values. It reads configs from toml file and returns None if the file is not a toml file.

Parameters

NameTypeDescription
config_filestringThe file path to the TOML configuration file to be parsed.

Returns

TypeDescription
`dict[str, Any]None`