# # -*- coding: utf-8 -*-
# import abc
# import logging
#
# from .view_utils import handle_exception
#
#
# class UnaryToStreamView:
#     logger = logging.getLogger(__name__)
#
#     def __init__(self, context, request):
#         self._context = context
#         self._request = request
#
#     def handle_unary_to_stream(self):
#         try:
#             yield from self._handle_request()
#         except Exception as err:
#             handle_exception(logger=self.logger, context=self._context, err=err)
#
#     @abc.abstractmethod
#     def _handle_request(self):
#         raise NotImplementedError()
