lightrag-cli 1.5.9rc1__py3-none-any.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.
- lightrag_cli/__init__.py +39 -0
- lightrag_cli/__main__.py +6 -0
- lightrag_cli/_version.py +7 -0
- lightrag_cli/cli.py +763 -0
- lightrag_cli/client.py +585 -0
- lightrag_cli/views.py +165 -0
- lightrag_cli-1.5.9rc1.dist-info/METADATA +36 -0
- lightrag_cli-1.5.9rc1.dist-info/RECORD +11 -0
- lightrag_cli-1.5.9rc1.dist-info/WHEEL +5 -0
- lightrag_cli-1.5.9rc1.dist-info/entry_points.txt +2 -0
- lightrag_cli-1.5.9rc1.dist-info/top_level.txt +1 -0
lightrag_cli/__init__.py
ADDED
|
@@ -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
|
+
]
|
lightrag_cli/__main__.py
ADDED