Skip to content

Instantly share code, notes, and snippets.

@benoitguigal
Last active July 20, 2018 08:25
Show Gist options
  • Save benoitguigal/6899ba58210bbd3e7b63e9d3ebb305c9 to your computer and use it in GitHub Desktop.
Save benoitguigal/6899ba58210bbd3e7b63e9d3ebb305c9 to your computer and use it in GitHub Desktop.
Gremlin Python Language Variant
>>> from gremlin_python import statics
>>> from gremlin_python.structure.graph import Graph
>>> from gremlin_python.process.graph_traversal import __
>>> from gremlin_python.process.strategies import *
>>> from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection
>>> graph = Graph()
>>> g = graph.traversal().withRemote(DriverRemoteConnection('ws://localhost:8182/gremlin','g'))
>>> g.V().has('name', 'saturn').next()
v[4240]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment