Say I have a yaml config file such as:
test1: minVolt: -1 maxVolt: 1 test2: curr: 5 volt: 5
I can read the file into python
See Munch, Load YAML as nested objects instead of dictionary in Python
import yaml from munch import munchify c = munchify(f)yaml.safe_load(…)) print(c.test1.minVolt) # -1 # Or f = open(…) c = Munch.fromYAML(f)