def get_set_value(set_data, match_key):

    for val in set_data:

        try:
            key, value = val.split('=', 1)
        except ValueError:
            continue

        if key == match_key:
            return value

    return None
Extract value from SET output
dataset/ETHPy150Open jakev/dtf/src/dtf/core/cmds/init.py/get_set_value