def __init__(self, host, auth):
        """ Initialize the Coredata client. """
        # TODO: Parse the url rather than checking here.
        if 'http' not in host:
            raise ValueError('Missing scheme from host.')
        self.auth = auth
        self.host = urljoin(host, '/api/v2/')
        self.headers = {'content-type': 'application/json'}
def __init__ ( self , host , auth ) : if 'http' not in host : raise ValueError ( 'Missing scheme from host.' ) self . auth = auth self . host = urljoin ( host , '/api/v2/' ) self . headers = { 'content-type' : 'application/json' }
Initialize the Coredata client.