Last active
March 29, 2016 22:27
-
-
Save ruimaranhao/0fb1ebff4aaff790bfc2b2cc30b797a3 to your computer and use it in GitHub Desktop.
Gremlin query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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