title: How to connect to AWS Neptune (graph database) with Python?
body: <p>I'm following this tutorial:</p>
  
  <p><a href="https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-python.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/neptune/latest/userguide/access-graph-gremlin-python.html</a></p>
  
  <p>How can I add a node and then retrieve the same node?</p>
  
  <pre class="lang-py prettyprint-override"><code>from __future__  import print_function  # Python 2/3 compatibility
  
  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()
  
  remoteConn = DriverRemoteConnection('wss://your-neptune-endpoint:8182/gremlin','g')
  g = graph.traversal().withRemote(remoteConn)
  
  print(g.V().limit(2).toList())
  remoteConn.close()
  </code></pre>
  
  <p>All the above right now is doing is retrieving 2 nodes right?</p>