def _initialize_id ( self ) : self . id = str ( self . db . incr ( self . _key [ 'id' ] ) )
python how to create an object with an id that incrments everytime it is created
Initializes the id of the instance .
def _initialize_id(self):
        """Initializes the id of the instance."""
        self.id = str(self.db.incr(self._key['id']))