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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

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

File metadata

  • Download URL: kglite_cli-0.12.8-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.8-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4f0adb1b06bf96b9408041e14cdd92c895e25c438d8c11cebea72242e5cd85aa
MD5 9329d75f04abecaedc48cc0e3b851cbb
BLAKE2b-256 6eed336bcc5c602be591df17d58c2d167dee8446c850e410ec070dbc983f0be4

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.8-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 88156bb7d739e1cb8b101d2b0b3cd6562c015c1d431d07d5f5c51d342e748802
MD5 be386b0569381578a4e2a12e5721dcc9
BLAKE2b-256 c18d1c37c28d8156f96967baa1edc153b0910cdb9aeb5fb8a763953857dd5265

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.8-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 947795e1c949a52c748908233d52da88277e76601d487a5336c0ad98c68df51f
MD5 fa47c49541968200f8043e7e34dda0f7
BLAKE2b-256 435027ce2cecdd96db2eff76fc16bb7605406811cd4271014956af61a156ead8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.8-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 81a6869581d934cb093c9066c7be7f21f5b86ee0ef7e07e77bc0b4a76c77c5dd
MD5 c70b2078012d8e0d0881bd0cc4fb2994
BLAKE2b-256 43dba27c1c6df837d67cbef943e3a3681e98b7d1eee07e10270f3e080ce71608

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a5c2836165cf43ac8acb5feaa7e5b157733b585aa0b0e49e229662176531cb67
MD5 456749401efb3510d26937f4c3b2bb99
BLAKE2b-256 1e04d22c1cab39454243ab01e97355d6cb388807bec27a0628706092916c8379

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.8-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7c3cca779cbf6e56faad6dddeadf0b4010a2549a3501c80bbcbfc35f59bd88e6
MD5 65a0c7cfadb5d8f8c5e5e3d8f60d9660
BLAKE2b-256 f1b2d889168d632304a19f3a74233a2e584bb612afc95b9f11abb4bf91ef12c3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.8-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 5864f9f892998161750749f158c3ebf674e46dc1460c18a0a859feba3be5a5bd
MD5 5d81dffa19d0cc2583261f4feeb56235
BLAKE2b-256 4217ba2d3e417327f65a642f77c2448a539941f3ce27b2d4288c4697f204c288

See more details on using hashes here.

Provenance

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