Difference between revisions of "Gremlin python"

From BITPlan Wiki
Jump to navigation Jump to search
Line 15: Line 15:
 
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
 
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
 
</source>
 
</source>
= Installation Python and Pip =
+
= Installing Python and Pip =
 
<source lang='bash'>
 
<source lang='bash'>
 +
sudo apt install python2.7
 +
python --version
 +
Python 2.7.15+
 +
sudo apt install python-pip
 +
pip --version
 +
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
 
</source>
 
</source>

Revision as of 10:15, 17 September 2019

This mini-tutorial is inspired by this stackoverflow question

The goal is to get access to an apache tinkerpop/gremlin graph database via Python.

Prerequisites

  1. Java
  2. Python
  3. Gremlin-Server
  4. Gremlin-Console (for debugging)

Installing Java

sudo apt-get install openjdk-8-jre 
java -version
openjdk version "1.8.0_222"
OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~18.04.1-b10)
OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)

Installing Python and Pip

sudo apt install python2.7
python --version
Python 2.7.15+
sudo apt install python-pip
pip --version
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)