Gremlin-Python for Apache TinkerPop
Apache TinkerPop™ is a graph computing framework for both graph databases (OLTP) and graph analytic systems (OLAP). Gremlin is the graph traversal language of TinkerPop. It can be described as a functional, data-flow language that enables users to succinctly express complex traversals on (or queries of) their application’s property graph.
Gremlin-Python implements Gremlin within the Python language and can be used on any Python virtual machine including the popular CPython machine. Python’s syntax has the same constructs as Java including “dot notation” for function chaining (a.b.c), round bracket function arguments (a(b,c))`, and support for global namespaces (a(b()) vs a(__.b()))`. As such, anyone familiar with Gremlin-Java will immediately be able to work with Gremlin-Python. Moreover, there are a few added constructs to Gremlin-Python that make traversals a bit more succinct.
>>> g.V().both()[1:3].toList() [v, v] >>> g.V().both().toList() [v] >>> g.V().both().name.toList() [lop, vadas, josh, marko, marko, josh, peter, ripple, lop, marko, josh, lop]
Please see the reference documentation at Apache TinkerPop for more information on usage.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, Size & Hash SHA256 Hash Help||File Type||Python Version||Upload Date|
(46.0 kB) Copy SHA256 Hash SHA256
|Wheel||py2.py3||Dec 20, 2017|
(24.3 kB) Copy SHA256 Hash SHA256
|Source||None||Dec 20, 2017|