def as_dict(config):
    settings = defaultdict(lambda: {})
    for section in config.sections():
        for key, val in config.items(section):
            settings[section][key] = val
    return settings
Converts a ConfigParser object into a dictionary.
dataset/ETHPy150Open GaretJax/lancet/lancet/settings.py/as_dict