Source code for pyobs.interfaces.IData

from abc import ABCMeta, abstractmethod
from typing import Any

from .interface import Interface

class IData(Interface, metaclass=ABCMeta):
    """The module can grab and return an image from whatever device."""

    __module__ = "pyobs.interfaces"

[docs] @abstractmethod async def grab_data(self, broadcast: bool = True, **kwargs: Any) -> str: """Grabs an image and returns reference. Args: broadcast: Broadcast existence of image. Returns: Name of image that was taken. Raises: GrabImageError: If there was a problem grabbing the image. """ ...
__all__ = ["IData"]