kglite-cli 0.11.16__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: kglite-cli
|
|
3
|
+
Version: 0.11.16
|
|
4
|
+
Classifier: Development Status :: 4 - Beta
|
|
5
|
+
Classifier: Environment :: Console
|
|
6
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
7
|
+
Classifier: Topic :: Database
|
|
8
|
+
Summary: The kglite interactive Cypher shell — a sqlite3-style REPL for .kgl knowledge graphs (provides the `kglite` command).
|
|
9
|
+
Keywords: cypher,repl,shell,knowledge-graph,kglite
|
|
10
|
+
Home-Page: https://github.com/kkollsga/kglite
|
|
11
|
+
License: MIT
|
|
12
|
+
Requires-Python: >=3.8
|
|
13
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
14
|
+
Project-URL: Homepage, https://github.com/kkollsga/kglite
|
|
15
|
+
Project-URL: Repository, https://github.com/kkollsga/kglite
|
|
16
|
+
|
|
17
|
+
# kglite-cli
|
|
18
|
+
|
|
19
|
+
The interactive Cypher shell for [kglite](https://github.com/kkollsga/kglite)
|
|
20
|
+
knowledge graphs — the `sqlite3`-style REPL for `.kgl` files.
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
```console
|
|
25
|
+
$ pip install kglite-cli # ships the `kglite` binary on PATH
|
|
26
|
+
# or
|
|
27
|
+
$ cargo install kglite-cli # build from source (needs a Rust toolchain)
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
`kglite-cli` is a standalone binary distribution — installing it gives you the
|
|
31
|
+
`kglite` command. It's independent of the `kglite` Python library; install
|
|
32
|
+
either or both.
|
|
33
|
+
|
|
34
|
+
## Use
|
|
35
|
+
|
|
36
|
+
```console
|
|
37
|
+
$ kglite app.kgl
|
|
38
|
+
kglite shell — app.kgl
|
|
39
|
+
Type .help for commands, .quit to exit.
|
|
40
|
+
kglite> MATCH (n:Person) RETURN n.name AS name LIMIT 3;
|
|
41
|
+
name
|
|
42
|
+
----
|
|
43
|
+
Alice
|
|
44
|
+
Bob
|
|
45
|
+
Carol
|
|
46
|
+
(3 rows)
|
|
47
|
+
kglite> .quit
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Run with no path for a scratch in-memory graph (`$ kglite`). Pure-Rust single
|
|
51
|
+
binary over `kglite::api::*` — no Python, no server.
|
|
52
|
+
|
|
53
|
+
A Cypher statement runs when terminated by `;`, so it can span multiple lines;
|
|
54
|
+
dot-commands run on Enter. Tab completes dot-commands and the graph's labels.
|
|
55
|
+
|
|
56
|
+
## Commands
|
|
57
|
+
|
|
58
|
+
- `.help` — list commands
|
|
59
|
+
- `.quit` / `.exit` — leave the shell
|
|
60
|
+
- `.labels` / `.rels` / `.schema` / `.indexes` — schema introspection
|
|
61
|
+
- `.mode table|csv|json` — set the output format
|
|
62
|
+
- `.import <file.csv> <NodeType> [--id <col>] [--title <col>]` — load a CSV as nodes
|
|
63
|
+
- `.dump <dir>` — export a portable CSV + `blueprint.json` copy
|
|
64
|
+
(reload with `kglite.from_blueprint(...)`)
|
|
65
|
+
- `.read <file>` — run the Cypher statements in a file
|
|
66
|
+
- `.save [path]` — write the graph to a `.kgl` file
|
|
67
|
+
- `.timing on|off` — show query wall-time after each statement
|
|
68
|
+
|
|
69
|
+
Anything else is executed as Cypher. **Ctrl-C** cancels a running query;
|
|
70
|
+
**Ctrl-D** exits.
|
|
71
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
kglite_cli-0.11.16.data/scripts/kglite.exe,sha256=AMxY2tRXAT7j4x6t5FoQMpXrGU-XQlcAFWuIJCbEh7w,9307648
|
|
2
|
+
kglite_cli-0.11.16.dist-info/METADATA,sha256=DPSyhEdpBjmvISuwX_8-N1wnzu-IZPv0lkLszuDm1vU,2396
|
|
3
|
+
kglite_cli-0.11.16.dist-info/WHEEL,sha256=2zDlIYIdD4m4N3p5DVEG3iJhGLdhsBQgdH-FqVkAur8,94
|
|
4
|
+
kglite_cli-0.11.16.dist-info/sboms/kglite-cli.cyclonedx.json,sha256=C1kGkq0t4A6mSegd_-5L8qHcfvFn6FQcdHfk_teJZ2s,354949
|
|
5
|
+
kglite_cli-0.11.16.dist-info/RECORD,,
|