Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

knowledge-graph-client-0.0.4.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

knowledge_graph_client-0.0.4-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for knowledge-graph-client-0.0.4.tar.gz
Algorithm Hash digest
SHA256 336bd5ad967bba6ed82755cf3eb376088f91a00386ea70bee104d7087fa39ae8
MD5 6aa200226035241723d08757a66fd7fb
BLAKE2b-256 d3371c604b02ce64089650c56836ed453022727d84c603fdc60f07ae0d0bf7f3

See more details on using hashes here.

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

Hashes for knowledge_graph_client-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 34d0f6a9afa8c33369491a1ca1df1c919271f65f40222987e6e55d19d1a683a3
MD5 70d76228afa1e2c7b14b450678019cee
BLAKE2b-256 5128ef6df7dbd1f0f87f5ac00589a8dd88e23b115f673f05e78147775019bc6c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page