def get_key_pair(self, name):
        qkey = [k for k in self.list_key_pairs() if k.name == name][0]
        data = self.connection.request('/v2/account/keys/%s' %
                                       qkey.extra['id']).object['ssh_key']
        return self._to_key_pair(data=data)
Configure events to display
dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/digitalocean.py/DigitalOcean_v2_NodeDriver.get_key_pair--crossover with--dataset/ETHPy150Open tuturto/pyherc/src/herculeum/ui/gui/eventdisplay.py/EventMessageWidget.__set_events_to_display