import omegaconf config = omegaconf.OmegaConf.load("config.yaml") print(config.some_setting)
import omegaconf config = omegaconf.OmegaConf.create() config.some_setting = 123 config.another_setting = {'key': 'value'} print(config)Here, OmegaConf is used to create a configuration object and set some values programmatically using dot notation. The resulting configuration object is then printed to the console. The package library for OmegaConf is omegaconf.