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.
Files changed (111) hide show
  1. lumen_app-0.4.2/PKG-INFO +23 -0
  2. lumen_app-0.4.2/README.md +0 -0
  3. lumen_app-0.4.2/examples/config/hub_ocr_clip.yaml +52 -0
  4. lumen_app-0.4.2/pyproject.toml +55 -0
  5. lumen_app-0.4.2/setup.cfg +4 -0
  6. lumen_app-0.4.2/src/lumen_app/__init__.py +7 -0
  7. lumen_app-0.4.2/src/lumen_app/core/__init__.py +0 -0
  8. lumen_app-0.4.2/src/lumen_app/core/config.py +661 -0
  9. lumen_app-0.4.2/src/lumen_app/core/installer.py +274 -0
  10. lumen_app-0.4.2/src/lumen_app/core/loader.py +45 -0
  11. lumen_app-0.4.2/src/lumen_app/core/router.py +87 -0
  12. lumen_app-0.4.2/src/lumen_app/core/server.py +389 -0
  13. lumen_app-0.4.2/src/lumen_app/core/service.py +49 -0
  14. lumen_app-0.4.2/src/lumen_app/core/tests/__init__.py +1 -0
  15. lumen_app-0.4.2/src/lumen_app/core/tests/test_core_integration.py +561 -0
  16. lumen_app-0.4.2/src/lumen_app/core/tests/test_env_checker.py +487 -0
  17. lumen_app-0.4.2/src/lumen_app/proto/README.md +12 -0
  18. lumen_app-0.4.2/src/lumen_app/proto/ml_service.proto +88 -0
  19. lumen_app-0.4.2/src/lumen_app/proto/ml_service_pb2.py +66 -0
  20. lumen_app-0.4.2/src/lumen_app/proto/ml_service_pb2.pyi +136 -0
  21. lumen_app-0.4.2/src/lumen_app/proto/ml_service_pb2_grpc.py +251 -0
  22. lumen_app-0.4.2/src/lumen_app/server.py +362 -0
  23. lumen_app-0.4.2/src/lumen_app/utils/env_checker.py +752 -0
  24. lumen_app-0.4.2/src/lumen_app/utils/installation/__init__.py +25 -0
  25. lumen_app-0.4.2/src/lumen_app/utils/installation/env_manager.py +152 -0
  26. lumen_app-0.4.2/src/lumen_app/utils/installation/micromamba_installer.py +459 -0
  27. lumen_app-0.4.2/src/lumen_app/utils/installation/package_installer.py +149 -0
  28. lumen_app-0.4.2/src/lumen_app/utils/installation/verifier.py +95 -0
  29. lumen_app-0.4.2/src/lumen_app/utils/logger.py +181 -0
  30. lumen_app-0.4.2/src/lumen_app/utils/mamba/cuda.yaml +12 -0
  31. lumen_app-0.4.2/src/lumen_app/utils/mamba/default.yaml +6 -0
  32. lumen_app-0.4.2/src/lumen_app/utils/mamba/openvino.yaml +7 -0
  33. lumen_app-0.4.2/src/lumen_app/utils/mamba/tensorrt.yaml +13 -0
  34. lumen_app-0.4.2/src/lumen_app/utils/package_resolver.py +309 -0
  35. lumen_app-0.4.2/src/lumen_app/utils/preset_registry.py +219 -0
  36. lumen_app-0.4.2/src/lumen_app/web/__init__.py +3 -0
  37. lumen_app-0.4.2/src/lumen_app/web/api/__init__.py +1 -0
  38. lumen_app-0.4.2/src/lumen_app/web/api/config.py +229 -0
  39. lumen_app-0.4.2/src/lumen_app/web/api/hardware.py +201 -0
  40. lumen_app-0.4.2/src/lumen_app/web/api/install.py +608 -0
  41. lumen_app-0.4.2/src/lumen_app/web/api/server.py +253 -0
  42. lumen_app-0.4.2/src/lumen_app/web/core/__init__.py +1 -0
  43. lumen_app-0.4.2/src/lumen_app/web/core/server_manager.py +348 -0
  44. lumen_app-0.4.2/src/lumen_app/web/core/state.py +264 -0
  45. lumen_app-0.4.2/src/lumen_app/web/main.py +145 -0
  46. lumen_app-0.4.2/src/lumen_app/web/models/__init__.py +28 -0
  47. lumen_app-0.4.2/src/lumen_app/web/models/config.py +63 -0
  48. lumen_app-0.4.2/src/lumen_app/web/models/hardware.py +64 -0
  49. lumen_app-0.4.2/src/lumen_app/web/models/install.py +134 -0
  50. lumen_app-0.4.2/src/lumen_app/web/models/server.py +95 -0
  51. lumen_app-0.4.2/src/lumen_app/web/static/assets/index-CGuhGHC9.css +1 -0
  52. lumen_app-0.4.2/src/lumen_app/web/static/assets/index-DN6HmxWS.js +56 -0
  53. lumen_app-0.4.2/src/lumen_app/web/static/index.html +14 -0
  54. lumen_app-0.4.2/src/lumen_app/web/static/vite.svg +1 -0
  55. lumen_app-0.4.2/src/lumen_app/web/websockets/__init__.py +1 -0
  56. lumen_app-0.4.2/src/lumen_app/web/websockets/logs.py +159 -0
  57. lumen_app-0.4.2/src/lumen_app.egg-info/PKG-INFO +23 -0
  58. lumen_app-0.4.2/src/lumen_app.egg-info/SOURCES.txt +109 -0
  59. lumen_app-0.4.2/src/lumen_app.egg-info/dependency_links.txt +1 -0
  60. lumen_app-0.4.2/src/lumen_app.egg-info/entry_points.txt +3 -0
  61. lumen_app-0.4.2/src/lumen_app.egg-info/requires.txt +13 -0
  62. lumen_app-0.4.2/src/lumen_app.egg-info/top_level.txt +1 -0
  63. lumen_app-0.4.2/web-ui/.gitignore +24 -0
  64. lumen_app-0.4.2/web-ui/README.md +73 -0
  65. lumen_app-0.4.2/web-ui/components.json +20 -0
  66. lumen_app-0.4.2/web-ui/eslint.config.js +23 -0
  67. lumen_app-0.4.2/web-ui/index.html +13 -0
  68. lumen_app-0.4.2/web-ui/package.json +46 -0
  69. lumen_app-0.4.2/web-ui/pnpm-lock.yaml +3474 -0
  70. lumen_app-0.4.2/web-ui/postcss.config.js +6 -0
  71. lumen_app-0.4.2/web-ui/public/vite.svg +1 -0
  72. lumen_app-0.4.2/web-ui/src/App.css +42 -0
  73. lumen_app-0.4.2/web-ui/src/App.tsx +29 -0
  74. lumen_app-0.4.2/web-ui/src/assets/react.svg +1 -0
  75. lumen_app-0.4.2/web-ui/src/components/layout/Header.tsx +45 -0
  76. lumen_app-0.4.2/web-ui/src/components/layout/Layout.tsx +23 -0
  77. lumen_app-0.4.2/web-ui/src/components/layout/Sidebar.tsx +80 -0
  78. lumen_app-0.4.2/web-ui/src/components/ui/alert.tsx +58 -0
  79. lumen_app-0.4.2/web-ui/src/components/ui/badge.tsx +36 -0
  80. lumen_app-0.4.2/web-ui/src/components/ui/button.tsx +57 -0
  81. lumen_app-0.4.2/web-ui/src/components/ui/card.tsx +76 -0
  82. lumen_app-0.4.2/web-ui/src/components/ui/input.tsx +25 -0
  83. lumen_app-0.4.2/web-ui/src/components/ui/label.tsx +24 -0
  84. lumen_app-0.4.2/web-ui/src/components/ui/progress.tsx +26 -0
  85. lumen_app-0.4.2/web-ui/src/components/ui/select.tsx +155 -0
  86. lumen_app-0.4.2/web-ui/src/components/ui/skeleton.tsx +15 -0
  87. lumen_app-0.4.2/web-ui/src/components/ui/tabs.tsx +52 -0
  88. lumen_app-0.4.2/web-ui/src/components/wizard/StepIndicator.tsx +57 -0
  89. lumen_app-0.4.2/web-ui/src/components/wizard/WizardLayout.tsx +112 -0
  90. lumen_app-0.4.2/web-ui/src/context/WizardProvider.tsx +84 -0
  91. lumen_app-0.4.2/web-ui/src/context/useWizard.ts +10 -0
  92. lumen_app-0.4.2/web-ui/src/context/wizardConfig.ts +43 -0
  93. lumen_app-0.4.2/web-ui/src/context/wizardContext.ts +17 -0
  94. lumen_app-0.4.2/web-ui/src/hooks/useDebounce.ts +23 -0
  95. lumen_app-0.4.2/web-ui/src/hooks/useTheme.ts +31 -0
  96. lumen_app-0.4.2/web-ui/src/index.css +59 -0
  97. lumen_app-0.4.2/web-ui/src/lib/api.ts +280 -0
  98. lumen_app-0.4.2/web-ui/src/lib/utils.ts +6 -0
  99. lumen_app-0.4.2/web-ui/src/main.tsx +16 -0
  100. lumen_app-0.4.2/web-ui/src/providers/ApiProvider.tsx +7 -0
  101. lumen_app-0.4.2/web-ui/src/types/schema.d.ts +1547 -0
  102. lumen_app-0.4.2/web-ui/src/views/Config.tsx +420 -0
  103. lumen_app-0.4.2/web-ui/src/views/Hardware.tsx +385 -0
  104. lumen_app-0.4.2/web-ui/src/views/Install.tsx +321 -0
  105. lumen_app-0.4.2/web-ui/src/views/Server.tsx +457 -0
  106. lumen_app-0.4.2/web-ui/src/views/Welcome.tsx +252 -0
  107. lumen_app-0.4.2/web-ui/tailwind.config.js +76 -0
  108. lumen_app-0.4.2/web-ui/tsconfig.app.json +32 -0
  109. lumen_app-0.4.2/web-ui/tsconfig.json +7 -0
  110. lumen_app-0.4.2/web-ui/tsconfig.node.json +26 -0
  111. lumen_app-0.4.2/web-ui/vite.config.ts +29 -0
@@ -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 }
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,7 @@
1
+ from lumen_app.utils.logger import get_logger
2
+
3
+ logger = get_logger("lumen")
4
+
5
+
6
+ def main() -> None:
7
+ logger.info("Hello from lumen-app!")
File without changes