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.3.0.tar.gz (23.6 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.3.0-py2.py3-none-any.whl (44.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file gremlinpython-3.3.0.tar.gz.

File metadata

  • Download URL: gremlinpython-3.3.0.tar.gz
  • Upload date:
  • Size: 23.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gremlinpython-3.3.0.tar.gz
Algorithm Hash digest
SHA256 c55d9f77bcea6980d526a1239e3ed34db94be65070e78986ef896d89d8bedddb
MD5 2d23d66fb2f5acef2d755a3f26a1969f
BLAKE2b-256 46e1b4bafa9e1cea1e6e2f2e64d42096a62fc54dad20bcf84169cd6d3e57a0ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gremlinpython-3.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8e62de77717220adb8b4e081a5fc97842e0dcf414ce6e9b64d9376cf59b44127
MD5 2b01c95bc044fb49aea04b7e78baf319
BLAKE2b-256 d9fe056aac4c5ffa04f38dfca340b4e6554ea4428c2716601591acd12c89ea7c

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