lightrag-cli 1.5.9rc1__tar.gz

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.
@@ -0,0 +1,36 @@
1
+ Metadata-Version: 2.4
2
+ Name: lightrag-cli
3
+ Version: 1.5.9rc1
4
+ Summary: REST client and `lightrag` command-line tool for a running LightRAG server
5
+ Author: Zirui Guo
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/HKUDS/LightRAG
8
+ Project-URL: Documentation, https://github.com/HKUDS/LightRAG/blob/main/docs/ClientCLI.md
9
+ Project-URL: Repository, https://github.com/HKUDS/LightRAG
10
+ Project-URL: Bug Tracker, https://github.com/HKUDS/LightRAG/issues
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Environment :: Console
17
+ Requires-Python: >=3.11
18
+ Description-Content-Type: text/markdown
19
+ Requires-Dist: aiohttp
20
+
21
+ # lightrag-cli
22
+
23
+ `lightrag-cli` is the REST client (`lightrag_cli`) and the `lightrag` command for a running [LightRAG](https://github.com/HKUDS/LightRAG) server. It depends only on `aiohttp`, so it installs without the LightRAG server stack:
24
+
25
+ ```bash
26
+ pip install lightrag-cli
27
+
28
+ export LIGHTRAG_URL="http://127.0.0.1:9621"
29
+ export LIGHTRAG_API_KEY="your-api-key"
30
+ lightrag status
31
+ lightrag query "How does LightRAG build the knowledge graph?" --mode mix
32
+ ```
33
+
34
+ Every command prints one JSON document on stdout. `lightrag-hku` depends on this package, so a server installation already has the `lightrag` command. Both are released together with the same version number.
35
+
36
+ Full documentation: [docs/ClientCLI.md](https://github.com/HKUDS/LightRAG/blob/main/docs/ClientCLI.md).
@@ -0,0 +1,16 @@
1
+ # lightrag-cli
2
+
3
+ `lightrag-cli` is the REST client (`lightrag_cli`) and the `lightrag` command for a running [LightRAG](https://github.com/HKUDS/LightRAG) server. It depends only on `aiohttp`, so it installs without the LightRAG server stack:
4
+
5
+ ```bash
6
+ pip install lightrag-cli
7
+
8
+ export LIGHTRAG_URL="http://127.0.0.1:9621"
9
+ export LIGHTRAG_API_KEY="your-api-key"
10
+ lightrag status
11
+ lightrag query "How does LightRAG build the knowledge graph?" --mode mix
12
+ ```
13
+
14
+ Every command prints one JSON document on stdout. `lightrag-hku` depends on this package, so a server installation already has the `lightrag` command. Both are released together with the same version number.
15
+
16
+ Full documentation: [docs/ClientCLI.md](https://github.com/HKUDS/LightRAG/blob/main/docs/ClientCLI.md).
@@ -0,0 +1,39 @@
1
+ """Thin async REST client and JSON CLI for ``lightrag-server``.
2
+
3
+ This package must never import ``lightrag`` (or FastAPI): it is published on its
4
+ own as the ``lightrag-cli`` distribution and must run without the server stack.
5
+ """
6
+
7
+ from lightrag_cli._version import __version__
8
+ from lightrag_cli.client import (
9
+ DEFAULT_SERVER_URL,
10
+ DEFAULT_TIMEOUT_SECONDS,
11
+ DOC_STATUSES,
12
+ QUERY_MODES,
13
+ RETRIEVE_MODES,
14
+ SORT_DIRECTIONS,
15
+ SORT_FIELDS,
16
+ LightRAGAPIError,
17
+ LightRAGClient,
18
+ LightRAGClientConfig,
19
+ LightRAGConfigError,
20
+ LightRAGConnectionError,
21
+ LightRAGValidationError,
22
+ )
23
+
24
+ __all__ = [
25
+ "DEFAULT_SERVER_URL",
26
+ "DEFAULT_TIMEOUT_SECONDS",
27
+ "DOC_STATUSES",
28
+ "QUERY_MODES",
29
+ "RETRIEVE_MODES",
30
+ "SORT_DIRECTIONS",
31
+ "SORT_FIELDS",
32
+ "LightRAGAPIError",
33
+ "LightRAGClient",
34
+ "LightRAGClientConfig",
35
+ "LightRAGConfigError",
36
+ "LightRAGConnectionError",
37
+ "LightRAGValidationError",
38
+ "__version__",
39
+ ]
@@ -0,0 +1,6 @@
1
+ """Module entry point enabling ``python -m lightrag_cli``."""
2
+
3
+ from lightrag_cli.cli import main
4
+
5
+ if __name__ == "__main__":
6
+ raise SystemExit(main())
@@ -0,0 +1,7 @@
1
+ """Version of the ``lightrag-cli`` distribution.
2
+
3
+ Released in lockstep with ``lightrag-hku``: ``scripts/release/set_version.py``
4
+ writes the same version here and into ``lightrag/_version.py``.
5
+ """
6
+
7
+ __version__ = "1.5.9rc1"