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 RawExpression to gremlin_python #340
Conversation
How do we use this again? This is just for the https://github.com/apache/tinkerpop/blob/TINKERPOP-1278/docs/src/reference/gremlin-variants.asciidoc |
More generally, it can be used to create expressions that make use of APIs, presumably provided by the graph vendor, that aren't strictly part of gremlin. My immediate use case is to call static methods on Titan's Geoshape class. I'll add an example to the asciidoc. |
@okram , I realized the current implementation of bindings as dicts is breaking 2/3 compatibility. It also makes it bit hairy to extract just the key in I would suggest using a tuple (e.g. |
As described on dev@tinkerpop.apache.org thread gremlin_python GLV
Please. Use tuple though instead of introducing a new class. Thanks.
|
@leifurhauks do you know why travis is not happy? the build took some errors it seems. Can you please look into that as you push your next change? |
I believe the failures are due to the fact that the aenum package (introduced in 8ee2904 ) is not installed in the CI environment. As a result, the gremlin_python module errors on import. Since 146f476, the test suite adds the contents of PYTHONPATH to sys.path, but aenum still needs to be downloaded and built. One possibility would be to create a virtualenv in the working dir, install aenum to that virtualenv, and add it to PYTHONPATH. |
ah - didn't realize that build was hosed in the TINKERPOP-1278 branch itself. |
As described on dev@tinkerpop.apache.org thread gremlin_python GLV