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


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

gremlinpython-3.4.0rc1.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gremlinpython-3.4.0rc1-py2.py3-none-any.whl (44.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file gremlinpython-3.4.0rc1.tar.gz.

File metadata

File hashes

Hashes for gremlinpython-3.4.0rc1.tar.gz
Algorithm Hash digest
SHA256 8b9876e2cd6ecb4e84646754ead790cad650bc5d5831b166398ad0c74fe4b42f
MD5 a2c260258200ce034ed8dc8a1ea9e5ca
BLAKE2b-256 22a86f64d2832ec7a22a211745a44a09c9f28808fcd54d40088651b7aeac0eed

See more details on using hashes here.

File details

Details for the file gremlinpython-3.4.0rc1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for gremlinpython-3.4.0rc1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 396ffadbbc8de951736437e25f97e8f884b96dd20f746d8d4f1ac3d2e5fbe9ea
MD5 3efd7bee95da3cd4ffc62f84b141762b
BLAKE2b-256 972e55a0be3f24690d0c497cbbdec19154aaf8c8828cd190aae8a2627bdeef2a

See more details on using hashes here.

Supported by

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