pyTigerDriver
Installation
install with pip:
pip install pyTigerDriver
Usage
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="127.0.0.1",username="tigergraph",password="tigergraph",version="3.0.5")
print("======================== SIMPLE RESTPP Queries ==================================")
print(tgCl.Rest.get("/echo")) # tgCl.Rest.post or tgCl.Rest.delete
print("============================== SIMPLE LS ===========================================")
print(tgCl.Gsql.execute("ls"))
Code Linting And Unit Testing
Code Linting :
Linting using PEP8 Standards
user@box:~$ flake8 --exclude=venv* --ignore=E501 --statistics pyTigerDriver/pyDriver.py
Running the tests :
run unit tests using pytest :
user@box:~$ pytest -v
CircleCi Work flow :
- create a folder named .circleci in the root of the repo
- within that folder create a file called config.yml containing the folloing flow :
version: 2.1
orbs:
python: circleci/python@0.2.1
jobs:
build-and-test:
executor: python/default
steps:
# 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/pyDriver.py
pytest -v
workflows:
main:
jobs:
- build-and-test
Metadata
Release files for pyTigerDriver 1.0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyTigerDriver-1.0.15.tar.gz | 11.5 kB | Without provenance | Details for pyTigerDriver-1.0.15.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyTigerDriver-1.0.15-py3-none-any.whl | Python 3 | none | any | Details for pyTigerDriver-1.0.15-py3-none-any.whl |
Total release size: 23.5 kB
Release files / pyTigerDriver-1.0.15.tar.gz
| Download URL | pyTigerDriver-1.0.15.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f105f89c38229dafd024e759e92ff736781495e1744cec6ec109673f63695593
|
|
BLAKE2b-256 checksum How to use checksums |
e76a03d00a040806f88492df20208ae5b806767ec700b2690fa0f0eb22e8c51c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Release files / pyTigerDriver-1.0.15-py3-none-any.whl
| Download URL | pyTigerDriver-1.0.15-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98adc36b62d84e1015318ce7bd6dd1ac7b48890ca05bb697c23e8a8cf5b5d7bd
|
|
BLAKE2b-256 checksum How to use checksums |
68469e586d64796d4d3bcc2c6380e812eed5fd8d425662b4149e18e55484ff59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.9.12
|
Security for pyTigerDriver 1.0.15
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.