Skip to main content

The kglite interactive Cypher shell — a sqlite3-style REPL for .kgl knowledge graphs (provides the `kglite` command).

Project description

kglite-cli

The interactive Cypher shell for kglite knowledge graphs — the sqlite3-style REPL for .kgl files.

Install

$ pip install kglite-cli      # ships the `kglite` binary on PATH
# or
$ cargo install kglite-cli    # build from source (needs a Rust toolchain)

kglite-cli is a standalone binary distribution — installing it gives you the kglite command. It's independent of the kglite Python library; install either or both.

Use

$ kglite app.kgl
kglite shell — app.kgl
Type .help for commands, .quit to exit.
kglite> MATCH (n:Person) RETURN n.name AS name LIMIT 3;
name
----
Alice
Bob
Carol
(3 rows)
kglite> .quit

Run with no path for a scratch in-memory graph ($ kglite). Pure-Rust single binary over kglite::api::* — no Python, no server.

A Cypher statement runs when terminated by ;, so it can span multiple lines; dot-commands run on Enter. Tab completes dot-commands and the graph's labels.

Commands

  • .help — list commands
  • .quit / .exit — leave the shell
  • .labels / .rels / .schema / .indexes — schema introspection
  • .mode table|csv|json — set the output format
  • .import <file.csv> <NodeType> [--id <col>] [--title <col>] — load a CSV as nodes
  • .dump <dir> — export a portable CSV + blueprint.json copy (reload with kglite.from_blueprint(...))
  • .read <file> — run the Cypher statements in a file
  • .save [path] — write the graph to a .kgl file
  • .timing on|off — show query wall-time after each statement

Anything else is executed as Cypher. Ctrl-C cancels a running query; Ctrl-D exits.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

kglite_cli-0.12.9-py3-none-win_amd64.whl (3.8 MB view details)

Uploaded Python 3Windows x86-64

kglite_cli-0.12.9-py3-none-musllinux_1_2_x86_64.whl (4.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

kglite_cli-0.12.9-py3-none-musllinux_1_2_aarch64.whl (3.6 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

kglite_cli-0.12.9-py3-none-manylinux_2_28_aarch64.whl (3.6 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

kglite_cli-0.12.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

kglite_cli-0.12.9-py3-none-macosx_11_0_arm64.whl (3.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

kglite_cli-0.12.9-py3-none-macosx_10_12_x86_64.whl (3.8 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file kglite_cli-0.12.9-py3-none-win_amd64.whl.

File metadata

  • Download URL: kglite_cli-0.12.9-py3-none-win_amd64.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kglite_cli-0.12.9-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 e3e13b5d78dbc59384036aeb52f7359cd39c283e0b0072f8620fd53ca5c6736e
MD5 edf971fd23f048aa15ef07d8e493fa91
BLAKE2b-256 78d31b52985588a8ba9c638aae3dcd904d0ec44bb366844b9e87867322b2d6ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.9-py3-none-win_amd64.whl:

Publisher: build_cli_wheels.yml on kkollsga/kglite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kglite_cli-0.12.9-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for kglite_cli-0.12.9-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 bf27a2aed905db7f632bb071104baef6855f44d1ce4cd322d11ec6b1a1e50127
MD5 9e654dc860fbc4ace53426a72d89d317
BLAKE2b-256 0dcbbc8ea130941aeb8a76515498e430e8ce26f337d9cc538b965c5ffe334c41

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.9-py3-none-musllinux_1_2_x86_64.whl:

Publisher: build_cli_wheels.yml on kkollsga/kglite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kglite_cli-0.12.9-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for kglite_cli-0.12.9-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 dc1e2eb6462bc7c376c776e55225ad0d3b47c186703e713138f6898a42a5734d
MD5 0e6b614019ccceb9f46e7c7f99fdba68
BLAKE2b-256 9545dbc9802530f3bdfa2cfcb2b18512f3ec12e0176895d5655dd943e85d2d7b

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.9-py3-none-musllinux_1_2_aarch64.whl:

Publisher: build_cli_wheels.yml on kkollsga/kglite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kglite_cli-0.12.9-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for kglite_cli-0.12.9-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b300913ab071368b5bb92a4d34d44779f22613ec6281b0204c3506e713794ca8
MD5 7401537887f704f708b718c6eeb71809
BLAKE2b-256 15554beba9f056707fd309ff2d5aa5cbc15736b8314f61af38bac0934a77343e

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.9-py3-none-manylinux_2_28_aarch64.whl:

Publisher: build_cli_wheels.yml on kkollsga/kglite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kglite_cli-0.12.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kglite_cli-0.12.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4081aa5cbd8dd82d4fa44455964bcd422c67b36e920c091dd566cf108e251629
MD5 7ddf06cc9ce73476ecd240a6ad9adb99
BLAKE2b-256 8030d6de2e8348a08eb981e8cc237d858b05c7b02bcb3a439ab69267fae72f11

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: build_cli_wheels.yml on kkollsga/kglite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kglite_cli-0.12.9-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kglite_cli-0.12.9-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2d44e18b56aa9c611c7a5920aea83b56f200d1e855b50cbfff078998e5bfb075
MD5 102595ccbd395842ff2220eb1ae2b54b
BLAKE2b-256 c3ddee80015d5ad7e8f2e7d6262004a7abdd482a40a30495b6ec1bdf342e0d4c

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.9-py3-none-macosx_11_0_arm64.whl:

Publisher: build_cli_wheels.yml on kkollsga/kglite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kglite_cli-0.12.9-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for kglite_cli-0.12.9-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 23a17014afb72d782248f28e4630077db54a62366ce8f9147fd6ee5f34aaebea
MD5 7ee173a66d79f168b1d6f03aff5c3cab
BLAKE2b-256 4ae2f17f926707470abe2638cfd84df20152536d893c0e139d01ceebaa244899

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.9-py3-none-macosx_10_12_x86_64.whl:

Publisher: build_cli_wheels.yml on kkollsga/kglite

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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