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.3-py3-none-win_amd64.whl (3.8 MB view details)

Uploaded Python 3Windows x86-64

kglite_cli-0.12.3-py3-none-musllinux_1_2_x86_64.whl (4.0 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

kglite_cli-0.12.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.9 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

kglite_cli-0.12.3-py3-none-macosx_11_0_arm64.whl (3.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

kglite_cli-0.12.3-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.3-py3-none-win_amd64.whl.

File metadata

  • Download URL: kglite_cli-0.12.3-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.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 dcb6f3a5aaf8d2f322f28dc588697cd7cab9e7779a35e5a1244d0a721aa64bbc
MD5 61025fe9c66332102b549a108d516f60
BLAKE2b-256 bf0a946d1de702b7909724552de94a79094748092b4bcd4c10b5bb7798da5c1e

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.3-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.3-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for kglite_cli-0.12.3-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 e4a16bb223bb401cbea0ecda9471fcd33beeeece9ed861c022b1affb3d19b8c3
MD5 679b5de643fa08fee201ae152b1ef891
BLAKE2b-256 9ce4bc421a077e1a43a2bf893fc628116d6e6a8f3c46cb119c0c63ef55a07a7f

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.3-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.3-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for kglite_cli-0.12.3-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 3540b729001cba037e6c042154cf61a8e7b7b1b09b64f8adde1fd6a8f75e80f5
MD5 74d0951574031abfb1402b232a1553b5
BLAKE2b-256 9a59449f7d7e2a6ceb1c84f2c57abfdf4c6de7579270ccd87359b4e1f149a02b

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.3-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.3-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for kglite_cli-0.12.3-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 290c8672e5c454f4e70898398ba4a1c8467a1bb039aa58763b836f0e130e0640
MD5 5be80587d74b4c0fa8a1fb6a9c68f231
BLAKE2b-256 7ca24a258bcbd6a88bf72573793ca295ec5e319f6cdb3aff0ac2c7714529b54d

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.3-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.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for kglite_cli-0.12.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b78dec1c8c5ebad67f746aff9afb3c8b3c9bf16cc97178cbc173c23c7d4da645
MD5 070038529cc5fb5461d1368e20dc30e0
BLAKE2b-256 abf613b209cdaa556b5276a663022a094febe385ec4f1a03b17e8f0caf6a64d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.3-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.3-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for kglite_cli-0.12.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 77bf9625e1ecbbea0a0a0981605fb4672a484e2150f3772b776c8de7dda937b0
MD5 a0270704786ff63d7c6e3efb30c32c48
BLAKE2b-256 e765ab9808fba0414ff223664ba5bddee52ab28773c8e7c8573bbe7eb33a71d8

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.3-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.3-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for kglite_cli-0.12.3-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 b5724f0cd3653655f87807d3b44e554e517b4b8babfea7d1e4355d55b3124d92
MD5 574a64a10f3bac54091b3bb60fe841a3
BLAKE2b-256 0ba512585bab8ad6181ee47848d9bf46fb42b7c22cdee56f1cda493ada75fd1b

See more details on using hashes here.

Provenance

The following attestation bundles were made for kglite_cli-0.12.3-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