Gremlin-Python for Apache TinkerPop
Project description
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[2], v[4]] >>> g.V().both()[1].toList() [v[2]] >>> 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gremlinpython-3.2.4.dev1478023292.tar.gz
.
File metadata
- Download URL: gremlinpython-3.2.4.dev1478023292.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8291fbb08de5f6f7f42e57ed2411ad4ba542ba3556f10f4d55ab5d7f57a61504 |
|
MD5 | 99db1169471de598daecfb09dd20416b |
|
BLAKE2b-256 | 2c0017f4bbabbcbe812179ea821ee33ae5f56e14e9c5ee622816dff2301683d3 |
File details
Details for the file gremlinpython-3.2.4.dev1478023292-py2.py3-none-any.whl
.
File metadata
- Download URL: gremlinpython-3.2.4.dev1478023292-py2.py3-none-any.whl
- Upload date:
- Size: 32.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82518742720f32c3683218ac0154382707de77170980504ac153649ef0e55e92 |
|
MD5 | 8a06b49e06a0bd4734ac531f0d0a299e |
|
BLAKE2b-256 | c8bd18f1f26e1e2908362ad27923137685ca2c5b3b14ba0f18cfb43e7fab68b6 |