Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gremlinpython-3.2.4.dev1486055820.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

gremlinpython-3.2.4.dev1486055820-py2.py3-none-any.whl (31.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file gremlinpython-3.2.4.dev1486055820.tar.gz.

File metadata

File hashes

Hashes for gremlinpython-3.2.4.dev1486055820.tar.gz
Algorithm Hash digest
SHA256 d303d7189c77a32ffa5d2cc047da4eb091c6725f66110d9c58259d07163c4510
MD5 b5958edfc06a3d17ffcc8e604ef9bf09
BLAKE2b-256 7236230aee3966a9457ee3f1faf7649771eb334a4a9fdfe8b5c94b8741dec8ae

See more details on using hashes here.

File details

Details for the file gremlinpython-3.2.4.dev1486055820-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for gremlinpython-3.2.4.dev1486055820-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 04321decbcd47c413ece73cb52fa10423a9c11900ae728a85bbcea5e1200bd7a
MD5 d60a4e402094e0c4c8de6dc9f5f8b438
BLAKE2b-256 322a136949a1674b4d4b5e99c06760d66eeee3ec7ea3128b1a46d3e0982a5f7e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page