swh.graph package

Submodules

swh.graph.cli module

swh.graph.client module

exception swh.graph.client.GraphAPIError[source]

Bases: Exception

Graph API Error

__str__()[source]

Return str(self).

__module__ = 'swh.graph.client'
__weakref__

list of weak references to the object (if defined)

class swh.graph.client.RemoteGraphClient(url, timeout=None)[source]

Bases: swh.core.api.RPCClient

Client to the Software Heritage Graph.

__init__(url, timeout=None)[source]

Initialize self. See help(type(self)) for accurate signature.

leaves(src, edges='*', direction='forward')[source]
neighbors(src, edges='*', direction='forward')[source]
stats()[source]
visit_nodes(src, edges='*', direction='forward')[source]
visit_paths(src, edges='*', direction='forward')[source]
walk(src, dst, edges='*', traversal='dfs', direction='forward')[source]
__module__ = 'swh.graph.client'

Module contents