You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2019/10/03 18:18:47 UTC

[tinkerpop] 03/04: TINKERPOP-1838 Added some docs for the Python example

This is an automated email from the ASF dual-hosted git repository.

spmallette pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git

commit c95ab32449da6f984c827be75f66d20056514e21
Author: Stephen Mallette <sp...@genoprime.com>
AuthorDate: Thu Oct 3 14:17:42 2019 -0400

    TINKERPOP-1838 Added some docs for the Python example
    
    Adding this section makes the docs consistent for GLVs CTR
---
 docs/src/reference/gremlin-variants.asciidoc | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/docs/src/reference/gremlin-variants.asciidoc b/docs/src/reference/gremlin-variants.asciidoc
index 20b1000..c30da83 100644
--- a/docs/src/reference/gremlin-variants.asciidoc
+++ b/docs/src/reference/gremlin-variants.asciidoc
@@ -1002,6 +1002,20 @@ to `Set` manually.
 * Gremlin is capable of returning `Dictionary` results that use non-hashable keys (e.g. Dictionary as a key) and Python
 does not support that at a language level. Gremlin that returns such results will need to be re-written to avoid that.
 
+=== Application Examples
+
+The TinkerPop source code contains a simple Python script that shows a basic example of how gremlinpython works. It
+can be found in GitHub link:https://github.com/apache/tinkerpop/tree/xx.yy.zz/gremlin-python/src/main/jython/example.py[here]
+and is designed to work best with a running <<gremlin-server,Gremlin Server>> configured with the default
+`conf/gremlin-server.yaml` file as included with the standard release packaging.
+
+[source,shell]
+----
+pip install gremlinpython
+pip install tornado
+python example.py
+----
+
 anchor:gremlin-DotNet[]
 [[gremlin-dotnet]]
 == Gremlin.Net