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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

kglite_cli-0.12.1-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.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: kglite_cli-0.12.1-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.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8a1a8b3ea47cfd6fc177b905207937be1a208417e8d49afd1784592b47252aca
MD5 abfa1ab0dfe88695d4545054cf728144
BLAKE2b-256 3ceb21af2c809147077425a72bab0372fc119b37473425d12c4068caf274c0eb

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.1-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 28fe30bbae6e958601e45c7094575fcee7a95ddb6833c4c0cf092a3fbdc158e1
MD5 04583c999e091959090abbc698096a90
BLAKE2b-256 36dd62a2792e9e80f345bbb43cca49a824b0989f0715580e5eff4c8200afe814

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.1-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 2af2d9a0652a54e3881c916473c132e7d247b7d65e6bacab001218025e8dd13f
MD5 e1480d301d044170e2b06cf8d709d20e
BLAKE2b-256 2259a501b77503386f0154efc45b527f92533039766591ab76453a498dd1020f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.1-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 72b61d88402606cc5f7b272296c898138d57a93ea4809c1af22a11642f392990
MD5 fbe521296ab4db6928a3c852335092c0
BLAKE2b-256 55109189fde47e000f720c6225adc9b23118832d124fc2911db2a51311ad50b3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bb6da2b03f27df037ed3d06e651dfec99cc5774fff5f76396194bef41deaef6b
MD5 4f9f2be3d2ed4a4eae06820f0569ba7a
BLAKE2b-256 38dc070900fb4aca38436d58e369cade948bd2e6723bc37b734f9fdc8ad870d5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 273e88822c865589af7c9d1f1aa07a285844b637543bc115c75fe6c23ffaaf46
MD5 c1b92d12d9ca1293ece01e66807d7990
BLAKE2b-256 693ec58871b3a53117eb98fd7bab4f89baeeeab2ec19698bfaca17febf5ca26f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 fa0c889daf2f9236a6d240aa51628269ca94a97831da3cfb8a69b50cd130be4e
MD5 db08d68818130bee81b1ea540149f96a
BLAKE2b-256 cddea92208fc129fa23ccf00c5059a356791dde0725751e235e0dca9676d918a

See more details on using hashes here.

Provenance

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