Useful tools to work with TigerGraph in Python
Project description
Useful tools to work with TigerGraph in Python
Description
It consists of one module:
tghelper: helper functions to work with TigerGraph and pyTigerGraph
With two main functions:
execute_gsql: Execute a gsql statement that is stored in a fileupload_job: Uses multiprocessing to upload the file and then executes the loading job for the file
Examples
import pyTigerGraph
from tghelper import TgHelper
import getpass
my_pwd=getpass.getpass()
tg_conn = pyTigerGraph.TigerGraphConnection(host="http://127.0.0.1", graphname="MyGraph",
username="usr_name", password=my_pwd)
tgh = TgHelper(conn=tg_conn)
tgh.execute_gsql("my_gsql_statement.gsql")
tgh.upload_job(source_file="my_data.csv",
job="my_loading_job",
job_filename="job_filename")
Installation
Normal installation
pip install tghelper
Development installation
git clone https://github.com/louisza/tghelper.git
cd tghelper
pip install --editable .
pypi Build reminder (for the developers)
python3 setup.py sdist bdist_wheel
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tghelper-0.1.1.tar.gz
(3.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tghelper-0.1.1.tar.gz.
File metadata
- Download URL: tghelper-0.1.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d22ec6f5988ce1050930935375ebe0abd6f22c34619ae95f081b05e8303391b
|
|
| MD5 |
a572f70c13295e634e016da7103d5e68
|
|
| BLAKE2b-256 |
64f236d84de6a7541e7ed69387b34162590e6ae7e6c69162fa74ce1867358ec2
|
File details
Details for the file tghelper-0.1.1-py3-none-any.whl.
File metadata
- Download URL: tghelper-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20c051b6919d1d00b52b545c31153b80e539abbab4ce2d49f6cdc56d7a1c388f
|
|
| MD5 |
85d58b4d30a00a0d4d89415786da68a6
|
|
| BLAKE2b-256 |
ebb3d1bce3372133fdb7adcba971f2d4cfac1ca5646abb963bfb36b22159459f
|