Skip to main content

config_settings

superduper.base.config_settings

Source code

ConfigError​

ConfigError(self,
/,
*args,
**kwargs)
ParameterDescription
args*args for Exception
kwargs**kwargs for Exception

An exception raised when there is an error in the configuration.

ConfigSettings​

ConfigSettings(self,
cls: Type,
environ: Optional[Dict] = None,
base: Optional[str] = None) -> None
ParameterDescription
clsThe Pydantic class to read.
environThe environment variables to read from.
baseThe base field of a loaded config file to use (e.g. "cluster" loads from r["cluster"])

Helper class to read a configuration from a dataclass.

Reads a dataclass class from a configuration file and environment variables.