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

Uploaded Python 3Windows x86-64

kglite_cli-0.12.7-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.7-py3-none-musllinux_1_2_aarch64.whl (3.6 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

kglite_cli-0.12.7-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.7-py3-none-macosx_11_0_arm64.whl (3.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: kglite_cli-0.12.7-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.7-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 ce6738741c8cb8d6b66800d590aa27824613f34dc4cbda88e0724b37bd172858
MD5 db3598973e0f9c883b024a94b156d6b7
BLAKE2b-256 f738dc0289fffd3788ac2ff07d862b833bb25d3eb9e4fba9e88a96adbca4ab77

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.7-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 aa9099e15fe1e96b87010b592b98bbe3269cea5386a24d727fbdf9bf7bd1861c
MD5 487e344973d33736981eb8bbd8cfcae0
BLAKE2b-256 acb92747257aa24310fb1ef858fa4893cbdb963ef0000fdff96770536e12c94f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.7-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 a5c3f22cd370632165ce2375c163f3be4268ef052a6e94980621054a983eeecc
MD5 405d4c9a9508a6387b5e75fc29cafcf5
BLAKE2b-256 c87ca9c1962d250094ee75adfbdcd0ee79df9132332d17a0ccb65c877b605783

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.7-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 239477b2c0afae74ce5461b1d3719077cf982f09aebaeaab4accd2e7d245899c
MD5 381ae31f1ac865ceaaead29b4eaca657
BLAKE2b-256 9906eee2decf29030bcc0e7f99b65d956bddee2d512763d8d5f1d2be3fd9c6e1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.7-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c565e0b0057171ab7021df737618f5befe7b56b8458e78a31a85f5ec85caa001
MD5 a2fcab0671ad4458347659c7bb98cc9d
BLAKE2b-256 bc3bb60779e534f6fef5270657f8564cbd443df3f19d63aaf18e2c37c16c8802

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.7-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a609ed4736a4ba40f4f7dea57fdb8992bc3722384c5f04c0742f28c386c95c7d
MD5 52c45c1ff084e3362da36f3a8636e669
BLAKE2b-256 b8fea041af3e09d6426077c2b5efdef32913dd0c96a33da1e21432994b7bc874

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.7-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8088b1d8a68b870074ebb6d4c20d30ade9fa2ac57b2366319252c82c67d0f9e4
MD5 8aa07baf3bc7d407e973a9b0363fe7f6
BLAKE2b-256 b2883dad7fc7c456b1825d145d5cfa1fd7040233ce040710fa26627ce59625aa

See more details on using hashes here.

Provenance

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