-
Ensure you have the Python package
xGT
installed in your environment:$ python3 -m pip install --user xgt
-
Launch an EC2 instanced, with port TCP port 4367 open for incoming connections.
-
Connect a python client:
$ python3 >>> import xgt >>> server = xgt.Connection(host='<public-ip-of-EC2-instance>', port=4367, userid='ec2-user')
-
See Trovares xGT documentation for help on writing python scripts, getting data ingested, and writing Cypher queries.
-
If needed, you may ssh connect to the EC2 instance:
$ ssh -i <path/to/keys.pem> ec2-user@<public-ip-of-EC2-instance>