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.2.4.tar.gz (19.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.2.4-py2.py3-none-any.whl (30.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for gremlinpython-3.2.4.tar.gz
Algorithm Hash digest
SHA256 861cd659f52d00fd9aed23525227d1d2bab4cc998e9810d4c59414daf10cf690
MD5 b9870c812eaae3aa491b8ba43a354dfb
BLAKE2b-256 b72b550b09ccb568964a893924680cee5327a236cc42a9334dc717cf292dbfc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gremlinpython-3.2.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a6326838ad84d634d95c693268dbca75c5d7fb76c7c5d3380fcb651b779fff92
MD5 b8e80ccf801b3138db70db49d4caa9e8
BLAKE2b-256 6798564187d5c6cf1917758331533ffa292d253adfafae61a4153db8ddcb69cb

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