def __setitem__(self, item, value):
        """
        sets an item with the given value while using . formatted keys
        set('a.b.c", value)
        :param item:
        :type item:
        :param value:
        :type value:
        :return:
        """
        keys = None
        if "." in item:
            keys = item.split(".")
            d = self.data
            for i in keys[:-1]:
                d = d[i]
            d[keys[-1]] = value
        else:
            self.data[item] = value
        self.save()
def __setitem__ ( self , item , value ) : keys = None if "." in item : keys = item . split ( "." ) d = self . data for i in keys [ : - 1 ] : d = d [ i ] d [ keys [ - 1 ] ] = value else : self . data [ item ] = value self . save ( )
sets an item with the given value while using . formatted keys
        set('a.b.c", value)
        :param item:
        :type item:
        :param value:
        :type value:
        :return: