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


import os
import re
from fame.core.module import ProcessingModule, ModuleInitializationError
from ..docker_utils import temp_volume, HAVE_DOCKER, docker_client
# coding: utf-8




def atoi(text):
    return int(text) if text.isdigit() else text


# Correctly sort pages
def natural_keys(text):
    return [atoi(c) for c in re.split('(\d+)', text)]


class DocumentPreview(ProcessingModule):

    name = 'document_preview'

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


# Path: processing/document_preview/document_preview.py
import os
import re
from fame.core.module import ProcessingModule, ModuleInitializationError
from ..docker_utils import temp_volume, HAVE_DOCKER, docker_client

# coding: utf-8




def atoi(text):
    return int(text) if text.isdigit() else text


# Correctly sort pages
def natural_keys(text):
    return [atoi(c) for c in re.split('(\d+)', text)]


class DocumentPreview(ProcessingModule):

    name = 'document_preview'

    description = 'Display pages of pdf and office files'