RaphtoryClient#
- class RaphtoryClient(url, token=None)#
Bases:
object
A client for handling GraphQL operations in the context of Raphtory.
- Parameters:
url (str) – the URL of the Raphtory GraphQL server
Methods:
copy_graph
(path, new_path)Copy graph from a path path on the server to a new_path on the server
delete_graph
(path)Delete graph from a path path on the server
Check if the server is online.
move_graph
(path, new_path)Move graph from a path path on the server to a new_path on the server
new_graph
(path, graph_type)Create a new empty Graph on the server at path
query
(query[, variables])Make a GraphQL query against the server.
receive_graph
(path)Receive graph from a path path on the server
remote_graph
(path)Get a RemoteGraph reference to a graph on the server at path
send_graph
(path, graph[, overwrite])Send a graph to the server
upload_graph
(path, file_path[, overwrite])Upload graph file from a path file_path on the client
- copy_graph(path, new_path)#
Copy graph from a path path on the server to a new_path on the server
- delete_graph(path)#
Delete graph from a path path on the server
- is_server_online()#
Check if the server is online.
- Returns:
Returns true if server is online otherwise false.
- Return type:
- move_graph(path, new_path)#
Move graph from a path path on the server to a new_path on the server
- new_graph(path, graph_type)#
Create a new empty Graph on the server at path
- query(query, variables=None)#
Make a GraphQL query against the server.
- receive_graph(path)#
Receive graph from a path path on the server
Note
This downloads a copy of the graph. Modifications are not persistet to the server.
- Parameters:
path (str) – the path of the graph to be received
- Returns:
A copy of the graph
- Return type:
- remote_graph(path)#
Get a RemoteGraph reference to a graph on the server at path
- Parameters:
path (str) – the path of the graph to be created
- Returns:
the remote graph reference
- Return type:
- send_graph(path, graph, overwrite=False)#
Send a graph to the server
- upload_graph(path, file_path, overwrite=False)#
Upload graph file from a path file_path on the client