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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: kglite_cli-0.12.6-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.6-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 fd3b367e427a6e61ac8688051f20c04594076720e50de6ea25e26b0ba237f489
MD5 18d9e9e94ef28473fdb7e3e93fbfa6e7
BLAKE2b-256 12b0cb6abc166185ac47be2ef86d471345144eff042b372a49af551528b69d1d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.6-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 3f6db08cf524556efca2136de08974da0f02d1c26aca621f7166829d31357349
MD5 7e62232e0e0dcd706e3953e0ab021dfd
BLAKE2b-256 9593439f1e92a1d03a0dfff4f35845e6f5bc651fbbf4a8bea2372718f78a7390

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.6-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 e1b316d6176cd078221118110df26fecb986a63466ccebab59f2dd1f5e7a5c5c
MD5 d85751970bbad2c9bcf8edd7b768cb1b
BLAKE2b-256 83182df1e1da93a7e785587bb6261066bccd1d2590c9a5e47061c870808a3ee6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.6-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2e6b5d052424bc92f3cd3b1f297470e1375346425d1563bd73b405522098f2d0
MD5 ef973e415560a63b846cd0b978723543
BLAKE2b-256 53e84468bb51b6528953c1df017cde01d3eed2e2b115f3c1025eb8194f02c073

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d6c6bb604152910bac1d37ffa30a7644b0c24b038e6a0609979e518e9d7245cb
MD5 61dc111e9fbeb9bfb02be66b0fac6fec
BLAKE2b-256 c05a3879b52eb2688a4451cbcdc1054540ab87861ef3b3f2ebeb287280eb1965

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.6-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 968bce01f1915925ea9dc70264c830523a7116dd15cdbaeac97cae1c26741c02
MD5 bdd33176d4ecaf0936c70632c674764e
BLAKE2b-256 2705b81d55e437f564288127edf4212e0d4ec5259409a0ec754e7c3b0a7dbbe4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.6-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 1a7138333ed2e4735fa69572917f09fa292ee700edb5388dda38da3fe3282cfd
MD5 2db19ab85dacb79482779e59cc85bbb5
BLAKE2b-256 334c6d44d8694dfef329c16429b8570fb24cb7b7bac00c483f878513cb0d1266

See more details on using hashes here.

Provenance

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