python gremlin client for accessing Cosmos DB graph

276 views
Skip to first unread message

Imran

unread,
Aug 21, 2017, 10:19:49 AM8/21/17
to Gremlin-users
Hi,

I'm new to Gremlin, and am trying to setup a graph database on Cosmos DB.
I'm considering using http://gremlinclient.readthedocs.io/en/latest/index.html but I'm not even sure how to run a query, it doesn't seem to be mentioned in the documentation.

Can anyone recommend an easy-to-use Python 3 client for Gremlin?

thanks,
imran

Stephen Mallette

unread,
Aug 22, 2017, 7:28:55 AM8/22/17
to Gremlin-users
 it doesn't seem to be mentioned in the documentation.

i'm not sure what you were looking at, but the very link you sent shows how to submit a string based request of "1 + 1". just change that script to whatever gremlin you intend to send to CosmosDB....there's not much more to it.


While string based submission is fine, we are recommending use of the Traversal API so that you can write Gremlin in python itself and avoid having to embed query strings in your code. You can read more about that here:


I would think that CosmosDB would support that as I thought any TinkerPop-enabled drivers should connect to it's Gremlin Server instance, but I've never tried it myself.



--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/e51b2a2d-9d96-43a2-b034-dc605079dbab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages