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.
- lightrag_cli-1.5.9rc1/PKG-INFO +36 -0
- lightrag_cli-1.5.9rc1/README.md +16 -0
- lightrag_cli-1.5.9rc1/lightrag_cli/__init__.py +39 -0
- lightrag_cli-1.5.9rc1/lightrag_cli/__main__.py +6 -0
- lightrag_cli-1.5.9rc1/lightrag_cli/_version.py +7 -0
- lightrag_cli-1.5.9rc1/lightrag_cli/cli.py +763 -0
- lightrag_cli-1.5.9rc1/lightrag_cli/client.py +585 -0
- lightrag_cli-1.5.9rc1/lightrag_cli/views.py +165 -0
- lightrag_cli-1.5.9rc1/lightrag_cli.egg-info/PKG-INFO +36 -0
- lightrag_cli-1.5.9rc1/lightrag_cli.egg-info/SOURCES.txt +14 -0
- lightrag_cli-1.5.9rc1/lightrag_cli.egg-info/dependency_links.txt +1 -0
- lightrag_cli-1.5.9rc1/lightrag_cli.egg-info/entry_points.txt +2 -0
- lightrag_cli-1.5.9rc1/lightrag_cli.egg-info/requires.txt +1 -0
- lightrag_cli-1.5.9rc1/lightrag_cli.egg-info/top_level.txt +1 -0
- lightrag_cli-1.5.9rc1/pyproject.toml +44 -0
- lightrag_cli-1.5.9rc1/setup.cfg +4 -0
|
@@ -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
|
+
]
|