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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: kglite_cli-0.12.2-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.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 af8a407e09d32cfd20602c473636ff67ecaa1e56e751ae06649e982329cdcadb
MD5 d6bc45e5317d3478604a3c520e0ee468
BLAKE2b-256 61dd5cd7c848117680402176df419cd88b5723dbd58619bf10b229a9249d0d91

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.2-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d52b62acb9eb4a72eb1e37570bfa1931989595091a8b9b7942486f5740c1d6a6
MD5 61bf5af5cd1340a765cbf81ada935ef0
BLAKE2b-256 918ea25d430b2ff7743ea49a7a894d4c9a23102fff25251904698fc55ee70fae

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.2-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 7d7ccb49104c919826ed3ad25abe4cbe1a69d77c3db614848d098275536072ad
MD5 eea6a20503c8bddd59135cecfd9c3c30
BLAKE2b-256 8a6be502b24ca8432bf07091d7bb93faaef0dac89f4ca1c0e86d42b6b1a47af3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.2-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 b790507d957355644ad0b2dbacb4f103cc481c4facf34255477a619c55d5dec4
MD5 5b233091fbdecbb170a3f96de3730a74
BLAKE2b-256 955762fcf0aa573a4c02e0b14207bf812e625184438dc8edfbace3aece294267

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e753effac02d34885824e7bd2b0bcf99a8b1b33da1a5e839a0daa4c20f2d24a6
MD5 6c021d2c6a653be95ad97196c42ae4c3
BLAKE2b-256 23153bc23bc6922df8c570aba3d4bf844fc97867df54efcbfce3f66900598701

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8a9bf00cb61989f95d9d9cff57fd8ce158009700921e80d42a4c616904f9ab93
MD5 6da325660e14ed581bd5440f8a05a0dc
BLAKE2b-256 e2aad6aee690292135f63752acead3ecfdebbafa90fc36c4d70d2457dcb47e5f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.2-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 36f03f3a0f673ee9ddc9ef372e6a30a3bca20ecda0e8b2f94a4c72bda60d1dbb
MD5 0f6912320837c7b23a50093683300f0d
BLAKE2b-256 c257da06ca73ab0e9db31d04bdb0bb002af79f42edf88b57acfc2947b3986b58

See more details on using hashes here.

Provenance

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