Skip to main content
Version: 2.3

Python API

OmegaConf's public API centers on the OmegaConf class. Start with an operation below, then follow the link to its generated signature, parameters, and return value.

I want to…Start with
Create a config from Python data or YAMLOmegaConf.create()
Combine configs, with later values taking precedenceOmegaConf.merge()
Read a nested value by pathOmegaConf.select()
Write a nested value by pathOmegaConf.update()
Convert a config to a Python containerOmegaConf.to_container()
Save a config as YAMLOmegaConf.to_yaml()
Resolve interpolations in placeOmegaConf.resolve()

Helpers​

Use MISSING for a mandatory value, II and SI for interpolations, and open_dict, read_write, or flag_override for temporary flag changes.

Browse every public symbol →