Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a section on using Gremlin from Python #88

Open
krlawrence opened this issue May 28, 2018 · 3 comments
Open

Add a section on using Gremlin from Python #88

krlawrence opened this issue May 28, 2018 · 3 comments

Comments

@krlawrence
Copy link
Owner

krlawrence commented May 28, 2018

Need to add coverage of submitting both text and ByteCode queries from the Python GLV client.

@krlawrence
Copy link
Owner Author

Need to add coverage of GremlinPython and iPythonGremlin.

@krlawrence
Copy link
Owner Author

The example code that this work can build upon is now created under issue #121

@krlawrence
Copy link
Owner Author

Also add notes that discuss common pitfalls people run into migrating from Gremlin Console queries to Python:

  1. Remembering to use a terminal step like iterate,next & toList
  2. Discovering the reserved words that need a suffix added such as "as_"
  3. Ensuring global replacements of keywords like range are avoided (I believe the clients have already had this addressed)
  4. 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.
  5. Taking not that certain things like per query timeout need the app to build its own Request object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant