Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

gremlinclient

Build Status Coverage Status

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

Official Documentation

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

Releases

No releases published

Languages

You can’t perform that action at this time.