Source code for swh.search.api.client

# Copyright (C) 2019-2022  The Software Heritage developers
# See the AUTHORS file at the top-level directory of this distribution
# License: GNU General Public License version 3, or any later version
# See top-level LICENSE file for more information

from swh.core.api import RPCClient

from .. import exc
from ..interface import SearchInterface


[docs] class RemoteSearch(RPCClient): """Proxy to a remote search API""" backend_class = SearchInterface reraise_exceptions = [getattr(exc, exc_name) for exc_name in exc.__all__]