MCPcopy Create free account
hub / github.com/alibaba/GraphScope / create_interactive_instance

Method create_interactive_instance

python/graphscope/client/rpc.py:216–228  ·  view source on GitHub ↗
(self, object_id, schema_path, params, with_cypher)

Source from the content-addressed store, hash-verified

214 return json.loads(response.engine_config), response.host_names
215
216 def create_interactive_instance(self, object_id, schema_path, params, with_cypher):
217 request = message_pb2.CreateInteractiveInstanceRequest(
218 session_id=self._session_id,
219 object_id=object_id,
220 schema_path=schema_path,
221 with_cypher=with_cypher,
222 )
223 if params is not None:
224 for k, v in params.items():
225 request.params[str(k)] = str(v)
226
227 response = self._stub.CreateInteractiveInstance(request)
228 return response.gremlin_endpoint, response.cypher_endpoint
229
230 def create_learning_instance(self, object_id, handle, config, learning_backend):
231 request = message_pb2.CreateLearningInstanceRequest(session_id=self._session_id)

Callers 1

interactiveMethod · 0.45

Calls 2

itemsMethod · 0.80

Tested by

no test coverage detected