hpcflow.sdk.config.config.ConfigOptions#
- class hpcflow.sdk.config.config.ConfigOptions(default_directory, directory_env_var, default_config=<factory>, extra_schemas=<factory>, default_known_configs_dir=None)#
Bases:
object
Application-level options for configuration
Methods
Get allowed configurable keys from config schemas.
Validate configuration items of the loaded invocation.
Attributes
Default directory of known configurations.
The default directory.
The environment variable containing the directory name.
The default configuration.
Any extra schemas to apply.
- Parameters:
default_directory (Path | str) –
directory_env_var (str) –
default_config (DefaultConfiguration) –
extra_schemas (Sequence[Schema]) –
default_known_configs_dir (str | None) –
- default_config: DefaultConfiguration#
The default configuration.
- init_schemas()#
Get allowed configurable keys from config schemas.
- validate(data, logger, metadata=None, raise_with_metadata=True)#
Validate configuration items of the loaded invocation.
- Parameters:
data (T) –
logger (logging.Logger) –
metadata (ConfigMetadata | None) –
raise_with_metadata (bool) –
- Return type:
T