def _add_attribute(self, attrname, value):
        attrname = tempname = _convert_to_valid_identifier(attrname)
        counter = 1
        while tempname in self.attributes:
            tempname = attrname + str(counter)
            counter += 1

        self.attributes[tempname] = value
        return tempname
dataset/ETHPy150Open ksindi/sqlacodegen/sqlacodegen/codegen.py/ModelClass._add_attribute/original