# Path: mimicus/config.py
# def _mkdir_p(path):
# def parse_config():


import json
import subprocess
import sys
from mimicus import config
Created on Mar 11, 2013
'''



class PdfrateProxyError(IOError):
    '''
    A class representing an exception when communicating with PDFrate.
    '''
    
    def __init__(self, message, *args, **kwargs):
        self.message = message
        IOError.__init__(self, *args, **kwargs)
    
    def __str__(self):
        return self.message

class PdfrateProxy(object):
    '''
    A class representing a local proxy object for PDFrate. Submit your 
    PDFrate queries to this class and it will run them against PDFrate. 
    It's not designed be used directly, but by a query scheduler. For 
    batch or manual submissions, use the PdfrateQueryHandler class. 
    '''

    def __init__(self):
        '''
        Constructor. 
        '''
        self.submit_url = config.get('pdfrateproxy', 'submit_url')

# Path: mimicus/config.py
# def _mkdir_p(path):
# def parse_config():


# Path: mimicus/tools/pdfrateproxy.py
import json
import subprocess
import sys
from mimicus import config

Created on Mar 11, 2013
'''



class PdfrateProxyError(IOError):
    '''
    A class representing an exception when communicating with PDFrate.
    '''
    
    def __init__(self, message, *args, **kwargs):
        self.message = message
        IOError.__init__(self, *args, **kwargs)
    
    def __str__(self):
        return self.message

class PdfrateProxy(object):
    '''
    A class representing a local proxy object for PDFrate. Submit your 
    PDFrate queries to this class and it will run them against PDFrate. 
    It's not designed be used directly, but by a query scheduler. For 
    batch or manual submissions, use the PdfrateQueryHandler class. 
    '''

    def __init__(self):
        '''
        Constructor. 
        '''
        self.submit_url = config.get('pdfrateproxy', 'submit_url')

        self.report_url = config.get('pdfrateproxy', 'report_url')