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.1.0.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.0.tar.gz.
File metadata
- Download URL: tghelper-0.1.0.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 |
5cdb15160b7214ba4f36b24ecd5d3396ed5dbe1a1b5af7fb8171eaf66f54ed9e
|
|
| MD5 |
8e4ee50ad14ce01cea520d89dd5fb6a5
|
|
| BLAKE2b-256 |
4f50607b087263768071b1e004a35b6b2d4e9403457c58aca94dfbaf8bacf6e5
|
File details
Details for the file tghelper-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tghelper-0.1.0-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 |
0ad80f9dfc5d24318028861afb52dcb5d52aee61c88fdbf691e14a92b8648f57
|
|
| MD5 |
0b61bd26ff1150e6682a2725b77f5b0b
|
|
| BLAKE2b-256 |
b9e622afc101535c0249e275a00f77c7a0269c1e30c8fb0e1520e9cb9af42c2f
|