(cValues)
return data
convert coma separate keypairs into a dic. EX "test=5,house=8,market=2" wil return "{'test': '5', 'casa': '8', 'mercado': '2'}"
convert coma separate keypairs into a dic. EX "test=5,house=8,market=2" wil return "{'test': '5', 'casa': '8', 'mercado': '2'}"
convert coma separate keypairs into a dic . EX test = 5 house = 8 market = 2 wil return { test : 5 casa : 8 mercado : 2 }
def parse_dic(cValues):
    """convert coma separate keypairs into a dic. EX "test=5,house=8,market=2" wil return "{'test': '5', 'casa': '8', 'mercado': '2'}" """
    data={}
    try :
        for kv in cValues.split(","):
            k,v = kv.strip().split("=")
            data[k.strip()]=v.strip()
    except Exception as e :
        print(f"Warning, error parsing keypairs values: {e}")
    return data
def parse_dic ( cValues ) : data = { } try : for kv in cValues . split ( "," ) : k , v = kv . strip ( ) . split ( "=" ) data [ k . strip ( ) ] = v . strip ( ) except Exception as e : print ( f"Warning, error parsing keypairs values: {e}" ) return data