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.

NOTE that versions suffixed with “rc” are considered release candidates (i.e. pre-alpha, alpha, beta, etc.) and thus for early testing purposes only.

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.3.tar.gz (27.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.4.3-py2.py3-none-any.whl (52.6 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: gremlinpython-3.4.3.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.5.2

File hashes

Hashes for gremlinpython-3.4.3.tar.gz
Algorithm Hash digest
SHA256 fe4144858d2f92ff22a746c2e2e663d3fc75f4a7f93d35c77c13ca6299ef5407
MD5 a4d2ec7a4cfda26fbc5a08deee377b05
BLAKE2b-256 c85f4a8716c43ec9868b84de744feea19450fad3f0b3b5a4a10b4b864d6cca8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gremlinpython-3.4.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 52.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.5.2

File hashes

Hashes for gremlinpython-3.4.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 39ae08bfa0ce0c52129312a88e7e150ac4bb899dfc656d80bccbaa211ebca6bd
MD5 4891311ce35b3f8a446f1170544a6f57
BLAKE2b-256 672bcc7010b9c9e84bd5296f0ab59ecab320d2288e4a4fadb033545f98e2b5da

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