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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3musllinux: musl 1.2+ ARM64

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

kglite_cli-0.12.5-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.5-py3-none-win_amd64.whl.

File metadata

  • Download URL: kglite_cli-0.12.5-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.5-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 4f88a33a6ca3368a4df0bae0af8d679db58a9f0c19400086379b4261ee154872
MD5 d60d7250017a5528397c1656c42c558f
BLAKE2b-256 364d97958fd1abe1bbbc65ac9262c3005bf69f96ee5496d69ce9f7ebdbb4f523

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.5-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 aa4e4d86903d2d8df29ce21258ec7af410c76856ab1f83337fd11e8b719d1c81
MD5 850f6c3badfb5a61583756406470897f
BLAKE2b-256 3d65306b55d3a37e4b4c956e4426e9900be59adeff4bd2f23a7d2db43fc00c07

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.5-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 141bca4e99040ce8860b732b0164bbf7442da6d149ba81542ba73b642f0bdbe9
MD5 9c684f7b6478a93783beacfdfab55779
BLAKE2b-256 7fc9d4084e1b65edd66cf5e5dd352ffa999dc1810fe12fa49f2bb99a29c8b572

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.5-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 834297069cd6542872b899224effc9600eab838c18a3c807eb2df07062bf67c5
MD5 66b62cf39fbefa2cf203cc6538d6d0ba
BLAKE2b-256 337538fcdb9c880a62620986b0257cc41d81a0232978d3d3ef4c51c9c6fe3761

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 84cbee77a98eafa7d39d62f455042f22b662330b3889bf2bd5f2e2c6e3a345d5
MD5 42fe3269d9117e474cbd7c7bccac4146
BLAKE2b-256 21bb2af31d3a0d1ec05290ea9d228fc85df52d25c1535d4c691046176b797500

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.5-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b13f909b5355a74d76aaba525b37bfe7e0bd04a85380b81798d55258929eda15
MD5 dd80616ca591b6b5cc083a0997615d12
BLAKE2b-256 f585de29c6c07771f01404016ea71100fd151d784606904bcf84272f86438519

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for kglite_cli-0.12.5-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 a102920f594810dc0fffce2c04bc222b8851dc26645483f8051c01f4d5f2ed78
MD5 dbe96aa9a832db526f6ff16fa0c76327
BLAKE2b-256 2450810d0349c711087587480a4c6d32330b1b2d0762eec751d98c2d6df9b53b

See more details on using hashes here.

Provenance

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