"""ows-notifications connector.""" from typing import TYPE_CHECKING from owsrequest import request as ows_request import config if TYPE_CHECKING: import requests __all__ = ['send_request'] SERVICE_NAME = 'ows-notifications' def send_request(method: str, path: str, **kwargs) -> 'requests.Response': """Send a request to the ows-notification Service. Args: method (str): The HTTP method to use. path (str): The URL to send the request to. kwargs (dict): Additional arguments to pass to the request. Returns: requests.Response: The response from the request. """ response = ows_request.process(config.APPLICATION_NAME, config.ENVIRONMENT, method, SERVICE_NAME, path, **kwargs) response.raise_for_status() return response