config_settings
superduper.base.config_settings
ConfigError
​
ConfigError(self,
/,
*args,
**kwargs)
Parameter | Description |
---|---|
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
Parameter | Description |
---|---|
cls | The Pydantic class to read. |
environ | The environment variables to read from. |
base | The 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.