weaver.wps_restapi.providers.utils ================================== .. py:module:: weaver.wps_restapi.providers.utils Module Contents --------------- .. py:data:: LOGGER .. py:function:: get_provider_services(container: weaver.typedefs.AnySettingsContainer, check: bool = True, ignore: bool = True) -> List[weaver.datatype.Service] Obtain the list of remote provider services. :param container: definition to retrieve settings and database connection. :param check: request that all provider services are remotely accessible to fetch metadata from them. :param ignore: given that any provider service is not accessible, ignore it or raise the error. .. py:function:: forbid_local_only(container: weaver.typedefs.AnySettingsContainer) -> Any Raises an HTTP exception forbidding to resume the operation if invalid configuration is detected. .. py:function:: check_provider_requirements(func: Callable[[weaver.typedefs.AnySettingsContainer], Any]) -> Callable[[weaver.typedefs.AnySettingsContainer], Any] Decorator to validate if :term:`Provider` operations are applicable for the current `Weaver` instance. .. py:function:: get_service(request: weaver.typedefs.AnyRequestType, provider_id: Optional[str] = None) -> weaver.datatype.Service Get the request service using provider_id from the service store.