Skip to content

Instantly share code, notes, and snippets.

@ruimaranhao
Last active March 29, 2016 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruimaranhao/0fb1ebff4aaff790bfc2b2cc30b797a3 to your computer and use it in GitHub Desktop.
Save ruimaranhao/0fb1ebff4aaff790bfc2b2cc30b797a3 to your computer and use it in GitHub Desktop.
Gremlin query
import asyncio
from aiogremlin import GremlinClient
QUERY="1+1"
loop = asyncio.get_event_loop()
gc = GremlinClient(loop=loop)
execute = gc.execute(QUERY)
result = loop.run_until_complete(execute)
print("result: ", result)
loop.run_until_complete(gc.close())
loop.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment