lumen-app 0.4.2__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.
- lumen_app-0.4.2/PKG-INFO +23 -0
- lumen_app-0.4.2/README.md +0 -0
- lumen_app-0.4.2/examples/config/hub_ocr_clip.yaml +52 -0
- lumen_app-0.4.2/pyproject.toml +55 -0
- lumen_app-0.4.2/setup.cfg +4 -0
- lumen_app-0.4.2/src/lumen_app/__init__.py +7 -0
- lumen_app-0.4.2/src/lumen_app/core/__init__.py +0 -0
- lumen_app-0.4.2/src/lumen_app/core/config.py +661 -0
- lumen_app-0.4.2/src/lumen_app/core/installer.py +274 -0
- lumen_app-0.4.2/src/lumen_app/core/loader.py +45 -0
- lumen_app-0.4.2/src/lumen_app/core/router.py +87 -0
- lumen_app-0.4.2/src/lumen_app/core/server.py +389 -0
- lumen_app-0.4.2/src/lumen_app/core/service.py +49 -0
- lumen_app-0.4.2/src/lumen_app/core/tests/__init__.py +1 -0
- lumen_app-0.4.2/src/lumen_app/core/tests/test_core_integration.py +561 -0
- lumen_app-0.4.2/src/lumen_app/core/tests/test_env_checker.py +487 -0
- lumen_app-0.4.2/src/lumen_app/proto/README.md +12 -0
- lumen_app-0.4.2/src/lumen_app/proto/ml_service.proto +88 -0
- lumen_app-0.4.2/src/lumen_app/proto/ml_service_pb2.py +66 -0
- lumen_app-0.4.2/src/lumen_app/proto/ml_service_pb2.pyi +136 -0
- lumen_app-0.4.2/src/lumen_app/proto/ml_service_pb2_grpc.py +251 -0
- lumen_app-0.4.2/src/lumen_app/server.py +362 -0
- lumen_app-0.4.2/src/lumen_app/utils/env_checker.py +752 -0
- lumen_app-0.4.2/src/lumen_app/utils/installation/__init__.py +25 -0
- lumen_app-0.4.2/src/lumen_app/utils/installation/env_manager.py +152 -0
- lumen_app-0.4.2/src/lumen_app/utils/installation/micromamba_installer.py +459 -0
- lumen_app-0.4.2/src/lumen_app/utils/installation/package_installer.py +149 -0
- lumen_app-0.4.2/src/lumen_app/utils/installation/verifier.py +95 -0
- lumen_app-0.4.2/src/lumen_app/utils/logger.py +181 -0
- lumen_app-0.4.2/src/lumen_app/utils/mamba/cuda.yaml +12 -0
- lumen_app-0.4.2/src/lumen_app/utils/mamba/default.yaml +6 -0
- lumen_app-0.4.2/src/lumen_app/utils/mamba/openvino.yaml +7 -0
- lumen_app-0.4.2/src/lumen_app/utils/mamba/tensorrt.yaml +13 -0
- lumen_app-0.4.2/src/lumen_app/utils/package_resolver.py +309 -0
- lumen_app-0.4.2/src/lumen_app/utils/preset_registry.py +219 -0
- lumen_app-0.4.2/src/lumen_app/web/__init__.py +3 -0
- lumen_app-0.4.2/src/lumen_app/web/api/__init__.py +1 -0
- lumen_app-0.4.2/src/lumen_app/web/api/config.py +229 -0
- lumen_app-0.4.2/src/lumen_app/web/api/hardware.py +201 -0
- lumen_app-0.4.2/src/lumen_app/web/api/install.py +608 -0
- lumen_app-0.4.2/src/lumen_app/web/api/server.py +253 -0
- lumen_app-0.4.2/src/lumen_app/web/core/__init__.py +1 -0
- lumen_app-0.4.2/src/lumen_app/web/core/server_manager.py +348 -0
- lumen_app-0.4.2/src/lumen_app/web/core/state.py +264 -0
- lumen_app-0.4.2/src/lumen_app/web/main.py +145 -0
- lumen_app-0.4.2/src/lumen_app/web/models/__init__.py +28 -0
- lumen_app-0.4.2/src/lumen_app/web/models/config.py +63 -0
- lumen_app-0.4.2/src/lumen_app/web/models/hardware.py +64 -0
- lumen_app-0.4.2/src/lumen_app/web/models/install.py +134 -0
- lumen_app-0.4.2/src/lumen_app/web/models/server.py +95 -0
- lumen_app-0.4.2/src/lumen_app/web/static/assets/index-CGuhGHC9.css +1 -0
- lumen_app-0.4.2/src/lumen_app/web/static/assets/index-DN6HmxWS.js +56 -0
- lumen_app-0.4.2/src/lumen_app/web/static/index.html +14 -0
- lumen_app-0.4.2/src/lumen_app/web/static/vite.svg +1 -0
- lumen_app-0.4.2/src/lumen_app/web/websockets/__init__.py +1 -0
- lumen_app-0.4.2/src/lumen_app/web/websockets/logs.py +159 -0
- lumen_app-0.4.2/src/lumen_app.egg-info/PKG-INFO +23 -0
- lumen_app-0.4.2/src/lumen_app.egg-info/SOURCES.txt +109 -0
- lumen_app-0.4.2/src/lumen_app.egg-info/dependency_links.txt +1 -0
- lumen_app-0.4.2/src/lumen_app.egg-info/entry_points.txt +3 -0
- lumen_app-0.4.2/src/lumen_app.egg-info/requires.txt +13 -0
- lumen_app-0.4.2/src/lumen_app.egg-info/top_level.txt +1 -0
- lumen_app-0.4.2/web-ui/.gitignore +24 -0
- lumen_app-0.4.2/web-ui/README.md +73 -0
- lumen_app-0.4.2/web-ui/components.json +20 -0
- lumen_app-0.4.2/web-ui/eslint.config.js +23 -0
- lumen_app-0.4.2/web-ui/index.html +13 -0
- lumen_app-0.4.2/web-ui/package.json +46 -0
- lumen_app-0.4.2/web-ui/pnpm-lock.yaml +3474 -0
- lumen_app-0.4.2/web-ui/postcss.config.js +6 -0
- lumen_app-0.4.2/web-ui/public/vite.svg +1 -0
- lumen_app-0.4.2/web-ui/src/App.css +42 -0
- lumen_app-0.4.2/web-ui/src/App.tsx +29 -0
- lumen_app-0.4.2/web-ui/src/assets/react.svg +1 -0
- lumen_app-0.4.2/web-ui/src/components/layout/Header.tsx +45 -0
- lumen_app-0.4.2/web-ui/src/components/layout/Layout.tsx +23 -0
- lumen_app-0.4.2/web-ui/src/components/layout/Sidebar.tsx +80 -0
- lumen_app-0.4.2/web-ui/src/components/ui/alert.tsx +58 -0
- lumen_app-0.4.2/web-ui/src/components/ui/badge.tsx +36 -0
- lumen_app-0.4.2/web-ui/src/components/ui/button.tsx +57 -0
- lumen_app-0.4.2/web-ui/src/components/ui/card.tsx +76 -0
- lumen_app-0.4.2/web-ui/src/components/ui/input.tsx +25 -0
- lumen_app-0.4.2/web-ui/src/components/ui/label.tsx +24 -0
- lumen_app-0.4.2/web-ui/src/components/ui/progress.tsx +26 -0
- lumen_app-0.4.2/web-ui/src/components/ui/select.tsx +155 -0
- lumen_app-0.4.2/web-ui/src/components/ui/skeleton.tsx +15 -0
- lumen_app-0.4.2/web-ui/src/components/ui/tabs.tsx +52 -0
- lumen_app-0.4.2/web-ui/src/components/wizard/StepIndicator.tsx +57 -0
- lumen_app-0.4.2/web-ui/src/components/wizard/WizardLayout.tsx +112 -0
- lumen_app-0.4.2/web-ui/src/context/WizardProvider.tsx +84 -0
- lumen_app-0.4.2/web-ui/src/context/useWizard.ts +10 -0
- lumen_app-0.4.2/web-ui/src/context/wizardConfig.ts +43 -0
- lumen_app-0.4.2/web-ui/src/context/wizardContext.ts +17 -0
- lumen_app-0.4.2/web-ui/src/hooks/useDebounce.ts +23 -0
- lumen_app-0.4.2/web-ui/src/hooks/useTheme.ts +31 -0
- lumen_app-0.4.2/web-ui/src/index.css +59 -0
- lumen_app-0.4.2/web-ui/src/lib/api.ts +280 -0
- lumen_app-0.4.2/web-ui/src/lib/utils.ts +6 -0
- lumen_app-0.4.2/web-ui/src/main.tsx +16 -0
- lumen_app-0.4.2/web-ui/src/providers/ApiProvider.tsx +7 -0
- lumen_app-0.4.2/web-ui/src/types/schema.d.ts +1547 -0
- lumen_app-0.4.2/web-ui/src/views/Config.tsx +420 -0
- lumen_app-0.4.2/web-ui/src/views/Hardware.tsx +385 -0
- lumen_app-0.4.2/web-ui/src/views/Install.tsx +321 -0
- lumen_app-0.4.2/web-ui/src/views/Server.tsx +457 -0
- lumen_app-0.4.2/web-ui/src/views/Welcome.tsx +252 -0
- lumen_app-0.4.2/web-ui/tailwind.config.js +76 -0
- lumen_app-0.4.2/web-ui/tsconfig.app.json +32 -0
- lumen_app-0.4.2/web-ui/tsconfig.json +7 -0
- lumen_app-0.4.2/web-ui/tsconfig.node.json +26 -0
- lumen_app-0.4.2/web-ui/vite.config.ts +29 -0
lumen_app-0.4.2/PKG-INFO
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: lumen-app
|
|
3
|
+
Version: 0.4.2
|
|
4
|
+
Summary: Desktop application for Lumen AI services
|
|
5
|
+
Author-email: EdwinZhanCN <support@lumilio.org>
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/EdwinZhanCN/Lumen
|
|
8
|
+
Project-URL: Issues, https://github.com/EdwinZhanCN/Lumen/issues
|
|
9
|
+
Requires-Python: >=3.10
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
Requires-Dist: colorlog>=6.10.1
|
|
12
|
+
Requires-Dist: fastapi>=0.115.0
|
|
13
|
+
Requires-Dist: uvicorn[standard]>=0.32.0
|
|
14
|
+
Requires-Dist: websockets>=14.0
|
|
15
|
+
Requires-Dist: pydantic>=2.10.0
|
|
16
|
+
Requires-Dist: lumen-resources
|
|
17
|
+
Requires-Dist: pyyaml>=6.0.3
|
|
18
|
+
Requires-Dist: aiofiles>=24.1.0
|
|
19
|
+
Requires-Dist: psutil>=6.1.0
|
|
20
|
+
Requires-Dist: httpx>=0.28.0
|
|
21
|
+
Requires-Dist: grpcio>=1.68.0
|
|
22
|
+
Requires-Dist: protobuf>=6.30.0
|
|
23
|
+
Requires-Dist: zeroconf>=0.148.0
|
|
File without changes
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Lumen Services Configuration - Single Service Mode
|
|
2
|
+
# yaml-language-server: $schema=https://doc.lumilio.org/schema/config-schema.yaml
|
|
3
|
+
|
|
4
|
+
metadata:
|
|
5
|
+
version: "1.0.0"
|
|
6
|
+
region: "cn" # "cn" for ModelScope, "other" for HuggingFace
|
|
7
|
+
cache_dir: "/Volumes/CodeBase/Lumen-Resources" # ~/.lumen by default
|
|
8
|
+
|
|
9
|
+
deployment:
|
|
10
|
+
mode: "hub"
|
|
11
|
+
services:
|
|
12
|
+
- "clip"
|
|
13
|
+
- "ocr"
|
|
14
|
+
|
|
15
|
+
server:
|
|
16
|
+
port: 50051
|
|
17
|
+
host: "0.0.0.0"
|
|
18
|
+
mdns:
|
|
19
|
+
enabled: true
|
|
20
|
+
service_name: "lumen-clip"
|
|
21
|
+
|
|
22
|
+
services:
|
|
23
|
+
# CLIP Service
|
|
24
|
+
clip:
|
|
25
|
+
enabled: true
|
|
26
|
+
package: "lumen_clip"
|
|
27
|
+
import_info:
|
|
28
|
+
registry_class: "lumen_clip.general_clip.GeneralCLIPService"
|
|
29
|
+
add_to_server: "lumen_clip.proto.ml_service_pb2_grpc.add_InferenceServicer_to_server"
|
|
30
|
+
backend_settings:
|
|
31
|
+
device: null
|
|
32
|
+
models:
|
|
33
|
+
general:
|
|
34
|
+
model: "CN-CLIP_ViT-B-16" # CN-CLIP_ViT-L-14 | CN-CLIP_ViT-B-16 | MobileCLIP2-S2 | MobileCLIP2-S4
|
|
35
|
+
runtime: onnx
|
|
36
|
+
dataset: ImageNet_1k
|
|
37
|
+
precision: fp16
|
|
38
|
+
ocr:
|
|
39
|
+
enabled: true
|
|
40
|
+
package: lumen_ocr
|
|
41
|
+
import_info:
|
|
42
|
+
registry_class: "lumen_ocr.general_ocr.GeneralOcrService"
|
|
43
|
+
add_to_server: "lumen_ocr.proto.ml_service_pb2_grpc.add_InferenceServicer_to_server"
|
|
44
|
+
backend_settings:
|
|
45
|
+
device: null # auto-detect
|
|
46
|
+
onnx_providers:
|
|
47
|
+
- CPUExecutionProvider
|
|
48
|
+
models:
|
|
49
|
+
general:
|
|
50
|
+
model: "PP-OCRv5" # PP-OCRv5
|
|
51
|
+
runtime: onnx
|
|
52
|
+
precision: fp32
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "lumen-app"
|
|
3
|
+
dynamic = ["version"]
|
|
4
|
+
description = "Desktop application for Lumen AI services"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.10"
|
|
7
|
+
license = { text = "MIT" }
|
|
8
|
+
authors = [{ name = "EdwinZhanCN", email = "support@lumilio.org" }]
|
|
9
|
+
dependencies = [
|
|
10
|
+
"colorlog>=6.10.1",
|
|
11
|
+
"fastapi>=0.115.0",
|
|
12
|
+
"uvicorn[standard]>=0.32.0",
|
|
13
|
+
"websockets>=14.0",
|
|
14
|
+
"pydantic>=2.10.0",
|
|
15
|
+
"lumen-resources",
|
|
16
|
+
"pyyaml>=6.0.3",
|
|
17
|
+
"aiofiles>=24.1.0",
|
|
18
|
+
"psutil>=6.1.0",
|
|
19
|
+
"httpx>=0.28.0",
|
|
20
|
+
"grpcio>=1.68.0",
|
|
21
|
+
"protobuf>=6.30.0",
|
|
22
|
+
"zeroconf>=0.148.0",
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
[project.urls]
|
|
26
|
+
Homepage = "https://github.com/EdwinZhanCN/Lumen"
|
|
27
|
+
Issues = "https://github.com/EdwinZhanCN/Lumen/issues"
|
|
28
|
+
|
|
29
|
+
[project.scripts]
|
|
30
|
+
lumen = "lumen_app.core.server:main"
|
|
31
|
+
lumen-webui = "lumen_app.web.main:start_webui"
|
|
32
|
+
|
|
33
|
+
[build-system]
|
|
34
|
+
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
|
|
35
|
+
build-backend = "setuptools.build_meta"
|
|
36
|
+
|
|
37
|
+
[tool.setuptools_scm]
|
|
38
|
+
fallback_version = "0.0.0"
|
|
39
|
+
search_parent_directories = true
|
|
40
|
+
|
|
41
|
+
[tool.setuptools.packages.find]
|
|
42
|
+
where = ["src"]
|
|
43
|
+
|
|
44
|
+
[tool.setuptools]
|
|
45
|
+
include-package-data = true
|
|
46
|
+
|
|
47
|
+
[tool.setuptools.package-data]
|
|
48
|
+
"lumen_app.web" = ["static/**"]
|
|
49
|
+
"lumen_app.utils" = ["mamba/*.yaml"]
|
|
50
|
+
|
|
51
|
+
[dependency-groups]
|
|
52
|
+
dev = ["ruff>=0.14.2", "pytest>=8.0.0", "pytest-asyncio>=0.24.0", "grpcio-tools>=1.76.0"]
|
|
53
|
+
|
|
54
|
+
[tool.uv.sources]
|
|
55
|
+
lumen-resources = { workspace = true }
|
|
File without changes
|