A simple Python client to a GraphQL Knowledge Graph
Project description
Overview
This package is a very simple client for accessing a GraphQL knowledge graph as a HTTP GET request wrapper.
Usage
Create a client:
from pykg import KGClient
kg = KGClient(
host = 'localhost',
port = 6543,
user = 'user',
password = 'password',
domain = 'my_kg')
Perform a string based query:
kg.query("{ assets { name } }")
Perform a query, but suppress output:
result = kg.query("{ assets { name } }", pretty_print=False)
print(len(result['assets']))
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
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 knowledge-graph-client-0.0.4.tar.gz.
File metadata
- Download URL: knowledge-graph-client-0.0.4.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
336bd5ad967bba6ed82755cf3eb376088f91a00386ea70bee104d7087fa39ae8
|
|
| MD5 |
6aa200226035241723d08757a66fd7fb
|
|
| BLAKE2b-256 |
d3371c604b02ce64089650c56836ed453022727d84c603fdc60f07ae0d0bf7f3
|
File details
Details for the file knowledge_graph_client-0.0.4-py3-none-any.whl.
File metadata
- Download URL: knowledge_graph_client-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34d0f6a9afa8c33369491a1ca1df1c919271f65f40222987e6e55d19d1a683a3
|
|
| MD5 |
70d76228afa1e2c7b14b450678019cee
|
|
| BLAKE2b-256 |
5128ef6df7dbd1f0f87f5ac00589a8dd88e23b115f673f05e78147775019bc6c
|