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.4.tar.gz
(4.0 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.4.tar.gz.
File metadata
- Download URL: tghelper-0.1.4.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12bc72a952ceabacf373d22babc357dd3fe64e6d015d28e142c23fbae552c36e
|
|
| MD5 |
ab1250ab95234589500c95d4763cef3a
|
|
| BLAKE2b-256 |
fb248e2ccb4905a00bfe73419a0534b0921fd318efc5f78fbe647ae309037e2b
|
File details
Details for the file tghelper-0.1.4-py3-none-any.whl.
File metadata
- Download URL: tghelper-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.6 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 |
3b0badb2e7c4498c59e0d59477bcf2d6cb3eb4689f0c414d9be82bb1cf245a13
|
|
| MD5 |
9d0352a990d89607afee91e23868eaa1
|
|
| BLAKE2b-256 |
01dbd9d43a2a5464a6cb6c54ebe1678de637fb301a706fba18a129fbfe11336c
|