MCPcopy Create free account
hub / github.com/alibaba/graph-learn / install

Function install

dynamic_graph_service/python/install_query.py:21–28  ·  view source on GitHub ↗
(dgs_host, json_file)

Source from the content-addressed store, hash-verified

19
20
21def install(dgs_host, json_file):
22 url = dgs_host + "/admin/init"
23
24 with open(json_file, 'r') as f:
25 install_query_req = json.loads(f.read())
26 content_data = json.dumps(install_query_req)
27
28 os.system("curl -X POST -H \"Content-Type: text/plain\" -d \'" + content_data + "\' " + url)
29
30
31if __name__ == '__main__':

Callers 1

install_query.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected