code: def export_public_keys(env=None, sp=subprocess):
      
      args = gpg_command(['--export'])
      result = check_output(args=args, env=env, sp=sp)
      if not result:
          raise KeyError('No GPG public keys found at env: {!r}'.format(env))
      return result
docs: Export all GPG public keys.