# Path: processing/docker_utils.py
#     HAVE_DOCKER = True
#     HAVE_DOCKER = False
# def temp_volume(target):


from fame.core.module import ProcessingModule, ModuleInitializationError
from ..docker_utils import HAVE_DOCKER, docker_client, docker

            "description": "List of properties to exclude from results (one per line)."
        }
    ]

    def initialize(self):
        # Make sure docker is available
        if not HAVE_DOCKER:
            raise ModuleInitializationError(self, "Missing dependency: docker")

        # Properly format exclusion list
        attributes = self.exclude.splitlines()
        self.exclude = []

        for attribute in attributes:
            self.exclude.append(attribute.strip())

        return True

    def exiftool(self, target):
        try:
            self.parse_output(docker_client.containers.run(
                'fame/exiftool',
                'target.file',
                volumes={target: {'bind': '/data/target.file', 'mode': 'ro'}},
                stderr=True,
                remove=True))
        except docker.errors.ContainerError as e:
            self.parse_output(e.stderr)


# Path: processing/docker_utils.py
#     HAVE_DOCKER = True
#     HAVE_DOCKER = False
# def temp_volume(target):


# Path: processing/exiftool/exiftool.py
from fame.core.module import ProcessingModule, ModuleInitializationError
from ..docker_utils import HAVE_DOCKER, docker_client, docker


            "description": "List of properties to exclude from results (one per line)."
        }
    ]

    def initialize(self):
        # Make sure docker is available
        if not HAVE_DOCKER:
            raise ModuleInitializationError(self, "Missing dependency: docker")

        # Properly format exclusion list
        attributes = self.exclude.splitlines()
        self.exclude = []

        for attribute in attributes:
            self.exclude.append(attribute.strip())

        return True

    def exiftool(self, target):
        try:
            self.parse_output(docker_client.containers.run(
                'fame/exiftool',
                'target.file',
                volumes={target: {'bind': '/data/target.file', 'mode': 'ro'}},
                stderr=True,
                remove=True))
        except docker.errors.ContainerError as e:
            self.parse_output(e.stderr)


    def parse_output(self, out):