def export_key(keyids=None, secret=False, user=None, gnupghome=None):
 gpg = _create_gpg(user, gnupghome)
 if isinstance(keyids, six.string_types):
  keyids = keyids.split(',')
 return gpg.export_keys(keyids, secret)

def export_key ( keyids = None , secret = False , user = None , gnupghome = None ) : gpg = _create_gpg ( user , gnupghome ) if isinstance ( keyids , six . string_types ) : keyids = keyids . split ( ',' ) return gpg . export_keys ( keyids , secret )
export a key from the gpg keychain keyids the key id(s) of the key(s) to be exported .