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_ffile="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.0.9.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.0.9.tar.gz.
File metadata
- Download URL: tghelper-0.0.9.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 |
a9c27cae564b9b988c4563fd8aaf9b0d1385b0e19e21d02f1cd0a9b4a557c36b
|
|
| MD5 |
7c845e197edc355b181c1b4518ee1c03
|
|
| BLAKE2b-256 |
f4941ef5c0056ef120d864b2b35c5de48dc5bddda299426667f38dd8b4d85c70
|
File details
Details for the file tghelper-0.0.9-py3-none-any.whl.
File metadata
- Download URL: tghelper-0.0.9-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 |
56b0d390196672149411a8a663a9ecb07c80131b818e78d52b38daacd9b0fb47
|
|
| MD5 |
d181bcb985f9c83f93006c005918d0e0
|
|
| BLAKE2b-256 |
a430b1d637c8068bb13102da55810303477f1fe1c81938f439c404a00401a235
|