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.2.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.2.tar.gz.
File metadata
- Download URL: tghelper-0.1.2.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 |
8d29b7912c2942012684bc75d981e0e90801c6ebff9b59d7fd50deba5ddc2e32
|
|
| MD5 |
6235a35437c94e44c51f8e846834ac23
|
|
| BLAKE2b-256 |
55e366bd52ddccd365888d36c47470bb702e293cf3291ce9be84faf5367db52c
|
File details
Details for the file tghelper-0.1.2-py3-none-any.whl.
File metadata
- Download URL: tghelper-0.1.2-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 |
9b56cd45021b0a2601156f36c7659fbb0398fc63c744b765d8eab7327baf43fe
|
|
| MD5 |
c08b91cb36c7fbed0aba94db70b89a53
|
|
| BLAKE2b-256 |
6cbf16b39396483250fb56525621aa0875470727f24248ab0ace053567f01473
|