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.5.tar.gz (24.9 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.5-py2.py3-none-any.whl (49.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: gremlinpython-3.3.5.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.4.3

File hashes

Hashes for gremlinpython-3.3.5.tar.gz
Algorithm Hash digest
SHA256 646f92eb153bf362b12a468e3be3ed40942176684efe7575770572f0c379a230
MD5 4e7ac0c20b47cbdc1d24bd198afd5184
BLAKE2b-256 6ec095b8b8ca0cfeb0764277eddf09583f8716de8a91a58a15adba0b4b5e92d5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gremlinpython-3.3.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 49.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.4.3

File hashes

Hashes for gremlinpython-3.3.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 75ee1b1f44b4ac00d0ce13a593f980a1957a25eaf4b38cb70df4d49ec67c421a
MD5 88cb89294535a5bc8ba6fba389909d9a
BLAKE2b-256 1fa2ecbed79a5576303fc9bf8750c50f1d9a51a1822a63aa7dbf92733ea86857

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