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
Close
Hashes for knowledge-graph-client-0.0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 336bd5ad967bba6ed82755cf3eb376088f91a00386ea70bee104d7087fa39ae8 |
|
MD5 | 6aa200226035241723d08757a66fd7fb |
|
BLAKE2b-256 | d3371c604b02ce64089650c56836ed453022727d84c603fdc60f07ae0d0bf7f3 |
Close
Hashes for knowledge_graph_client-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34d0f6a9afa8c33369491a1ca1df1c919271f65f40222987e6e55d19d1a683a3 |
|
MD5 | 70d76228afa1e2c7b14b450678019cee |
|
BLAKE2b-256 | 5128ef6df7dbd1f0f87f5ac00589a8dd88e23b115f673f05e78147775019bc6c |