MCPcopy Create free account
hub / github.com/Pometry/Raphtory / get_client

Method get_client

raphtory-graphql/src/python/server/running_server.rs:69–76  ·  view source on GitHub ↗

Get the client for the server. Returns: RaphtoryClient: the client.

(&self)

Source from the content-addressed store, hash-verified

67 /// Returns:
68 /// RaphtoryClient: the client.
69 pub(crate) fn get_client(&self) -> PyResult<PyRaphtoryClient> {
70 // TODO: return an authenticated server with rw access to everything?
71 self.apply_if_alive(|handler| {
72 let port = handler.port;
73 let url = format!("http://localhost:{port}");
74 Ok(PyRaphtoryClient::new(url, None)?)
75 })
76 }
77
78 /// Get the port the server is listening on
79 pub fn port(&self) -> PyResult<u16> {

Callers 15

run_graphql_testFunction · 0.80
run_group_graphql_testFunction · 0.80
run_graphql_error_testFunction · 0.80
run_graphql_compare_testFunction · 0.80
test_new_graphFunction · 0.80
test_upload_graphFunction · 0.80
test_include_graphFunction · 0.80
test_version_queryFunction · 0.80

Calls 1

apply_if_aliveMethod · 0.80