def get(self, key, index=None):
        """Retrieves a value associated with a key from the database

        Args:
            key (str): The key to retrieve
        """
        records = self.get_multi([key], index=index)

        try:
            return records[0][1]  # return the value from the key/value tuple
        except IndexError:
            return None
def get ( self , key , index = None ) : records = self . get_multi ( [ key ] , index = index ) try : return records [ 0 ] [ 1 ] except IndexError : return None
Retrieves a value associated with a key from the database

        Args:
            key (str): The key to retrieve