code: def getKeyConfig(self, keyID=None):
          
          k = keyID if keyID is not None else self._keyID
          if not k or k not in self._data['keys']:
              raise ConfigException('request key does not exist: %s' % k)
          return self._data['keys'][k]
docs: Get key configuration specified by `keyID`, or current keyID.
  
          :param str keyID: optional keyID to retrieve, or current if not passed
          :return: a dict of the request (or current) key config