def construct_update_sql(**parameters):
    query_args = []
    update_field_template = "{}=? "
    updated_fields = ''
    for index, (field, value) in enumerate(parameters.items()):
        updated_fields += update_field_template.format(field)

        if index < len(parameters) - 1:
            updated_fields += " ,"

        query_args.append(value)
    sql = SQL_USER_UPDATE.format(updated_fields)
    return sql, query_args
Create update SQL query for SQLite based on the data, provided by
dataset/ETHPy150Open Relrin/aiorest-ws/aiorest_ws/auth/user/utils.py/construct_update_sql