def load_user()

in mapillary_tools/config.py [0:0]


def load_user(user_name: str, config_path: str = None) -> T.Optional[types.UserItem]:
    if config_path is None:
        config_path = MAPILLARY_CONFIG_PATH
    config = _load_config(config_path)
    if not config.has_section(user_name):
        return None
    user_items = dict(config.items(user_name))
    return T.cast(types.UserItem, user_items)