@staticmethod
    def loadAndSubmit(filePath, host=None, port=None):
        with open(filePath, 'r') as f:
            jsonRepr = f.read()
        if host is None:
            host = os.getenv('PULIHOST', 'puliserver')
        if port is None:
            port = int(os.getenv('PULIPORT', 8004))

        conn = httplib.HTTPConnection(host, port)
        conn.request(
            'POST', '/graphs/', jsonRepr, {'Content-Length': len(jsonRepr)})
        response = conn.getresponse()
        if response.status in (200, 201):
            return response.getheader('Location'), response.read()
        else:
            raise GraphSubmissionError((response.status, response.reason))
Loads a JSON file and submits it to a sever. You can use save() to              generate such a JSON file
dataset/ETHPy150Open mikrosimage/OpenRenderManagement/src/puliclient/__init__.py/Graph.loadAndSubmit