You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
344 B

  1. from abc import abstractproperty
  2. class BaseParser(object):
  3. def __init__(self, fh):
  4. self._fh = fh
  5. self.camera_metadata = None
  6. self.metadata = None
  7. @abstractproperty
  8. def driver(self):
  9. """
  10. Must return an object that can look up and read images.
  11. """
  12. raise NotImplementedError