Skip to content

A Python client for TP3 Gremlin Server for Tornado, Trollius, or Asyncio

License

Notifications You must be signed in to change notification settings

vivekr20/gremlinclient

 
 

Repository files navigation

gremlinclient

Build Status Coverage Status

Multi-platform Python client for the TinkerPop 3 Gremlin Server - Tornado, Asyncio, Trollius

Submit a script to the Gremlin Server with Python 2.7 or 3.3+ using Tornado

>>> from tornado import gen
>>> from tornado.ioloop import IOLoop
>>> from gremlinclient.tornado_client import submit


>>> loop = IOLoop.current()


>>> @gen.coroutine
... def go():
...     resp = yield submit("ws://localhost:8182/", "1 + 1")
...     while True:
...         msg = yield resp.read()
...         if msg is None:
...             break
...         print(msg)
>>> loop.run_sync(go)

Message(status_code=200, data=[2], message=u'', metadata={})

About

A Python client for TP3 Gremlin Server for Tornado, Trollius, or Asyncio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%