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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

kglite_cli-0.11.16-py3-none-manylinux_2_28_aarch64.whl (3.5 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: kglite_cli-0.11.16-py3-none-win_amd64.whl
  • Upload date:
  • Size: 3.7 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.11.16-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8e9ef05d854e408b7a184557f9accec1ccd406ac6e1445b5dae6a049e0221c04
MD5 7e4c527d7879dd49c123e997e534fbaa
BLAKE2b-256 4099c4ae75423a3e34d509f2b9b880512433a9e95dd46572d94e3f51f7f76b0d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.11.16-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 37b5b3e45b467abed126c72f93497fcde612b566d46e3b74a20949bcf9123277
MD5 cb6d4a30cdf5b9c868706faaa1446665
BLAKE2b-256 c155310be213028c357ad0d417ac8d2ac6bde98ba0b0299b0fb7c1c1aa0f3c29

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.11.16-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 1cceac9fe7c94669973cc2381fbc5373825624c2aad6c12cbb1993acfaf836ab
MD5 822028eaaf7642a49765342a09bee32d
BLAKE2b-256 a97999c3eb599e3b229e1395790bd7b2c92ebfa763cf85b0eba80610add88647

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.11.16-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0f5869d0ed086f6126f51b37e0b10d32211809a5535473845d5bd1778d9d1876
MD5 005823bee12d68a725a613d881e0fcf6
BLAKE2b-256 63bf2895a4d5fd85644d01f66649b500edec5bbf01d3a78f7059e7a467ecac5c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.11.16-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e9f9006f69ddde33f28cb4d6c39ebf3bdfe7d79041e9a5aa3425f50e41999886
MD5 251a9c9e8d1c5c1ee52dadd2e4876bfd
BLAKE2b-256 1fd988bb4a14cd6a0982d2f236e4c5405aae05dd5224d4e68b55ae55108adeb5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.11.16-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7ac2034e8a7be51c4b00c3ebd585eead866ba6cc15c11bd7a6fed4fb5a4e5dd8
MD5 934a80bcd9180b404e1e6cd46110c0b5
BLAKE2b-256 16c80a246e3e64b96b5e95a341aa177231fdf93a262e8ee630fd3fa90995bd6b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.11.16-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 591989d6b55548ca32a9e6ac7391a5526ed54ee666d53d3fb66412697b2ab0d7
MD5 801cce07fd8d0a2f11b40abed7b1f50a
BLAKE2b-256 3c91444b1c17ec35dfd676af4e6686c4bfaec19587c68d2bc1daeca235e65093

See more details on using hashes here.

Provenance

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