wolfgangfahl / gremlin-python-tutorial Goto Github PK
View Code? Open in Web Editor NEWGremlin-Python tutorial
License: Apache License 2.0
Gremlin-Python tutorial
License: Apache License 2.0
python27 end of life is January 1st 2020 so there is not much life left in it ..
see https://docs.travis-ci.com/user/languages/python/ to automate pytests
./run -p
starting python test code
Traceback (most recent call last):
File "gt1.py", line 2, in
from gremlin_python.driver.driver_remote_connection import DriverRemoteConnection
File "/usr/local/lib/python2.7/dist-packages/gremlin_python/driver/driver_remote_connection.py", line 19, in
from concurrent.futures import Future
ImportError: No module named concurrent.futures
adding https://gist.githubusercontent.com/okram/f193d5616563a69ad5714a42c504276f/raw/b8075410e400e18f18360015945f3760d99d044a/gremlin-python-play.py as test_002.py leads to
test_002.py:10: in
from gremlin_python.structure.io.graphson import GraphSONReader
E ModuleNotFoundError: No module named 'gremlin_python.structure.io.graphson'
This will also allow to use travis later.
work around an (assumed) gremlin python bug by catching the unexpected StopIteration
Upgrade testing to tox so that the library is tested when it is installed. (here important because of relative paths to config and data folder)
./run -t
while individual tests run successfully and travis also has no problem ...
Surprise, surprise ...
assert str(g.V(1).outE("knows").inV().values("name").toList())=="['vadas', 'josh']"
E assert "[u'vadas', u'josh']" == "['vadas', 'josh']"
E - [u'vadas', u'josh']
E ? - -
E + ['vadas', 'josh']
see https://stackoverflow.com/questions/761361/suppress-the-uprefix-indicating-unicode-in-python-strings
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.