peal.global_utils.get_config_model¶
- peal.global_utils.get_config_model(config_data)[source]¶
Find the pydantic config class that a raw config dict describes.
Two conventions are supported. If the dict has a
config_namekey, that name is looked up among allBaseModelsubclasses found underpeal. Otherwise the class name is built as<category>_type+"Config"(for examplecategory: explainerandexplainer_type: SCEgiveSCEConfig), and the search is narrowed to the subclasses of the*Configbase class defined inpeal/<category>s/interfaces.py.