graph
graph copied to clipboard
Add a section on using Gremlin from Python
Need to add coverage of submitting both text and ByteCode queries from the Python GLV client.
Need to add coverage of GremlinPython and iPythonGremlin.
The example code that this work can build upon is now created under issue #121
Also add notes that discuss common pitfalls people run into migrating from Gremlin Console queries to Python:
- Remembering to use a terminal step like iterate,next & toList
- Discovering the reserved words that need a suffix added such as "as_"
- Ensuring global replacements of keywords like range are avoided (I believe the clients have already had this addressed)
- The fact that Python dicts cannot have immutable keys so a group() step that generates, say, as map as the key will fail unless special action is taken.
- Taking not that certain things like per query timeout need the app to build its own Request object.