gremlin-python

153 views
Skip to first unread message

Brian Corbin

unread,
Feb 24, 2015, 10:30:35 PM2/24/15
to gremli...@googlegroups.com
Hello, 

We are using many components in the TinkerPop stack along with the titan graph database.  
Most of our team uses Python when working on https://platform.pokitdok.com 
So, there was a desire to continue to use Python syntax when defining graph schema using the management system, performing graph traversals, etc.  
We've open sourced the work we've been doing to help our engineers and data scientists use Python when working with our health graph: 


It's still an early version so you may find some things still not working quite as expected.
We'll continue to send up pull requests as we uncover things. 
Please create issues if you discover things not working or not yet implemented and we'll see if we can help get that fixed up.  
We hope this (small) contribution back to the community can help some folks just like the TinkerPop stack has helped us.  
We also blogged about this release here:  https://blog.pokitdok.com/the-gremlin-python-library/

Thanks again for all of your work to build up a strong open source stack for high performance graph applications!

Brian Corbin
@corbinbs

Stephen Mallette

unread,
Feb 25, 2015, 9:15:37 AM2/25/15
to gremli...@googlegroups.com
HI Brian, The Rexster integration is pretty neat (which i gues is just one aspect of what gremlin-python is) - so is it correct to say that you have a python implementation of the Gremlin ScriptEngine?

--
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-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/6528c9b1-5717-4881-8fcc-3ffc22f9c844%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brian Corbin

unread,
Feb 25, 2015, 3:34:20 PM2/25/15
to gremli...@googlegroups.com
I guess the goal of the project was something close to http://pangloss.github.com/pacer/  
Where they have Ruby language support via JRuby

We wrapped the script engine provided by jython to allow for the use of python syntax in the rexster console.  
I'd like to continue building it up so it could implement everything needed for "Gremlin-Python* (planned)" that's mentioned on http://www.tinkerpopbook.com/ 
I don't have full test coverage for all of the examples on http://gremlindocs.com/ yet, but we're working towards that.  
So you could use it in rexster or build out larger applications that you could run with jython to interact with graphs.  
It's helped some members of our team not have to context switch between so many languages when working on internal projects.  

Thanks,

Brian

Stephen Mallette

unread,
Feb 26, 2015, 9:24:35 AM2/26/15
to gremli...@googlegroups.com
Nice, Brian.  This is a great contribution.  We have many people trying to use TinkerPop via Python and I think they struggle a bit sometimes.  Hopefully, this will be helpful to them.  

I've added your implementation to the Gremlin 2.x wiki page along with the other Gremlin flavors.  Note that we will be constructing a new page of community contributions for TP3 pretty soon.  If you get some time it would be great to know if you could host your scriptengine in Gremlin Server for TP3 so that we could add it there as a Gremlin flavor as well.

Thanks again,

Stephen

Brian Corbin

unread,
Feb 28, 2015, 9:35:12 AM2/28/15
to gremli...@googlegroups.com
Thanks Stephen - It's awesome to see gremlin-python listed on the wiki now!

We do plan to make sure gremlin-python works well for TP3.  At this time, I don't have an exact date for when that will happen but I suspect it will come along naturally with our internal use of new tinkerpop and titan versions.  I'll post back to gremlin-users as I have updates to share on that.   

I'd also like to thank Cody Lee (https://github.com/platinummonkey) for releasing a new version of https://github.com/platinummonkey/rexpro-python

It's now easy to specify python as the script engine that should be used when using rexpro in python applications.

A few gremlin-python examples using rexpro are now documented here http://rexpro-python.readthedocs.org/en/latest/examples/gremlin_python.html

Thanks again Cody for the quick turnaround on that pull request and PyPI release!

Brian
Reply all
Reply to author
Forward
0 new messages