Skip to main content

config_dicts

superduper.base.config_dicts

Source code

combine_configs​

combine_configs(dicts: Sequence[Dict[str,
object]]) -> Dict[str,
object]
ParameterDescription
dictsThe dictionaries to combine.

Combine a sequence of dictionaries into a single dictionary.

environ_to_config_dict​

environ_to_config_dict(prefix: str,
parent: Dict[str,
str],
environ: Optional[Dict[str,
str]] = None,
err: Optional[TextIO] = <_io.TextIOWrapper name='<stderr>' mode='w' encoding='utf-8'>,
fail: bool = False)
ParameterDescription
prefixThe prefix to use for environment variables.
parentThe parent dictionary to use as a basis.
environThe environment variables to read from.
errThe file to write errors to.
failWhether to raise an exception on error.

Convert environment variables to a configuration dictionary.