weaver.wps_restapi.providers.utils

Module Contents

weaver.wps_restapi.providers.utils.LOGGER[source]
weaver.wps_restapi.providers.utils.get_provider_services(container: weaver.typedefs.AnySettingsContainer, check: bool = True, ignore: bool = True)List[weaver.datatype.Service][source]

Obtain the list of remote provider services.

Parameters
  • container – definition to retrieve settings and database connection.

  • check – request that all provider services are remotely accessible to fetch metadata from them.

  • ignore – given that any provider service is not accessible, ignore it or raise the error.

weaver.wps_restapi.providers.utils.forbid_local_only(container: weaver.typedefs.AnySettingsContainer)Any[source]

Raises an HTTP exception forbidding to resume the operation if invalid configuration is detected.

weaver.wps_restapi.providers.utils.check_provider_requirements(func: Callable[[weaver.typedefs.AnySettingsContainer], Any])Callable[[weaver.typedefs.AnySettingsContainer], Any][source]

Decorator to validate if Provider operations are applicable for the current Weaver instance.

weaver.wps_restapi.providers.utils.get_service(request)[source]

Get the request service using provider_id from the service store.