swh.graph.http_client module#
- exception swh.graph.http_client.GraphArgumentException(*args, response=None)[source]#
Bases:
Exception
- class swh.graph.http_client.RemoteGraphClient(url, timeout=None)[source]#
Bases:
RPCClient
Client to the Software Heritage Graph.
- raise_for_status(response) None [source]#
check response HTTP status code and raise an exception if it denotes an error; do nothing otherwise
- leaves(src, edges='*', direction='forward', max_edges=0, return_types='*', max_matching_nodes=0)[source]#
- neighbors(src, edges='*', direction='forward', max_edges=0, return_types='*', max_matching_nodes=0)[source]#