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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

kglite_cli-0.12.0-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.0-py3-none-macosx_11_0_arm64.whl (3.4 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: kglite_cli-0.12.0-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.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 32f7bd600c8610372cc4a562db5b8ef1f17eb90596e0e7b4a6f9b6007d37fbaf
MD5 43a3b47e0f10874963d7e430af3c6b9b
BLAKE2b-256 25dde75feb500275b66571f7440db14b106f853a567cef35cb92a49acbb459e8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 17b6af007a8b02b6ff0a2015e86691273c5107a425ce911db19722a6e79e4f40
MD5 d29dd627db1ea0b81e65a00698128278
BLAKE2b-256 164db1b84b6f477141191ccb56c1d9eb43f623876f517a552ace603e4801f7d5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.0-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 717bc65d3654d82afb888b35cec6bff5c9739f87d7448b2f4ffa42aced334098
MD5 036dac93abb340a869a98bf4197ee97d
BLAKE2b-256 583c0092d89869837ab1fc4adf0a3dff73ff86e3d66fedc25fa4bb688a08cd04

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.0-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 6e10317bbc401d19f1e64ac6fc71621caed6d5242e67fe7205413957f59b0d7e
MD5 4c0463859aa090898680604544ddf02f
BLAKE2b-256 b25668e7f8066846214d65ee245359d1d6ae23b617f21056eb4170d0e90d2b8b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d86eda013ae0c1c790190f335203a9bd5aab2d82c1cd3cf9cadb3f63ba1618ee
MD5 8a8110aea5dfee3dba9722f0f915f1b0
BLAKE2b-256 72569b15e2a88b8e31fe7e89293ab27ba9b36b5a1965dbee831bce3f903107b0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f10cbd9fbf0e83fc8eeaaa1fcfa9bc245607446b04ef22fd0915f3bd27b6eb7a
MD5 e3b6174c037ae8ea7790d80d4640454a
BLAKE2b-256 c83780255309097db6ab954d56f3c401ab6a20fc924489abb8e96e96e39f3b98

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.0-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 6625bf3dbf61efcbabb66de39f5d6cf4137a428f986ac9cf131a52d9b052402e
MD5 75fa9e816b5c9b5b940c439369cf7cc9
BLAKE2b-256 c584342543c100cad32170b7cee413a4300fc2af2e4d4601a7842a9eb0e7875e

See more details on using hashes here.

Provenance

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