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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

kglite_cli-0.12.4-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.4-py3-none-win_amd64.whl.

File metadata

  • Download URL: kglite_cli-0.12.4-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.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 986ce9d32059a2d70613f88b02d72f72b49525d14d437a3065e55672c37e6cf1
MD5 13646d62618f0cc4132f96a111f00e32
BLAKE2b-256 cedcfab383a725c1f82168445285374d7e6eb140cbcd0f686067c6063f902473

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.4-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 6cd6f1825297bbb58672e1d8668b95e07a71d1319a35e633382b9e0c03562b16
MD5 413580a5160fc33f6e6cb90bff6620bc
BLAKE2b-256 88dad900ff03abf93c82af14f9ad212ab8ca00960ab929cc963d5a111c67d620

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.4-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 6db5457f2d81ef5ef51b01b5d577d6703a42f2217634684f9830639ba6d4f8e1
MD5 d486a645fb2b0c80e115ccee5a1cf0dd
BLAKE2b-256 d99fd68a1a790df6e588e08a8ed69dc930103f4b35331e1bee54aad0cdea7654

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.4-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0188e8e1cece68ff97d0dc311c348e06b0808ca32ce5eaaea179132de88132df
MD5 03492a21d605cac4b068b12cfcad5269
BLAKE2b-256 d5076ee5eccf81c1fa15fbb6a08bf88d3fc8aac655dc73d0400d5f67407f9a82

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4b53118631802e358825a04992c85816686d0a5e3e006c40ffa8724801467e24
MD5 38382cc3ce89bd78f527e35c9931c48f
BLAKE2b-256 cf1f608672709702f568ee0a3df10a01fb9d74080d5b47dda75dbd9b7033ace1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ea4a7a3a2d2fc42f4e9b687937b8d7689f102d1d0d07925d693e7a24c3ea69ee
MD5 44823877dc02392e4738b6d7808636ad
BLAKE2b-256 baa9cace8077e13d51d4a639af8d07db6ff9d120e9866031a14fdb6699653e40

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.4-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 9b9d5031f24a768ed803e3db4b98c36200370ceece87d5a6c89cf7c289e1846b
MD5 42c9adfd25f3e73ee1473d6b5f970f21
BLAKE2b-256 468aede30d0d88d060283d972921d6c67b5c620842938de5fb19d080637c550d

See more details on using hashes here.

Provenance

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