Skip to main content

GSQL client for TigerGraph

Project description



install with pip:

pip install pyTigerDriver


Architecture: You can instatiate any Interface [GSQL or REST] in the pyTigerDriver seperately.

This flowchart illustrates the Classes:

graph LR
A[pyTigerDriver as tgCl] -- Gsql --> B((Gsql_Client))
A -- Rest --> C((Rest_Client))
B --> D{TigerGraph Database}
C --> D

Sample Code :

import pyTigerDriver as tg

tgCl = tg.Client(server_ip="",username="tigergraph",password="tigergraph",version="3.0.5")

print("======================== SIMPLE RESTPP Queries ==================================")
print(tgCl.Rest.get("/echo")) # or tgCl.Rest.delete 
print("============================== SIMPLE LS ===========================================")

Code Linting And Unit Testing

Code Linting :

Linting using PEP8 Standards

user@box:~$ flake8 --exclude=venv* --ignore=E501 --statistics pyTigerDriver/

Running the tests :

run unit tests using pytest :

user@box:~$ pytest -v

CircleCi Work flow :

  1. create a folder named .circleci in the root of the repo
  2. within that folder create a file called config.yml containing the folloing flow :
version: 2.1

  python: circleci/python@0.2.1

    executor: python/default
      # Step 1: obtain repo from GitHub
      - checkout
      # Step 2: create virtual env and install dependencies
      - run:
          name: install dependencies
          command: |
            python3 -m venv venv
            . venv/bin/activate
            pip install -r requirements.txt
      # Step 3: run linter and tests
      - run:
          name: run tests
          command: |
            . venv/bin/activate
            flake8 --exclude=venv* --ignore=E501  --statistics pyTigerDriver/
            pytest -v

      - build-and-test

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyTigerDriver-1.0.8.tar.gz (7.2 kB view hashes)

Uploaded Source

Built Distribution

pyTigerDriver-1.0.8-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page