unisi 0.3.10__py3-none-any.whl → 0.3.11__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.
- unisi/common.py +10 -0
- unisi/reloader.py +5 -13
- unisi/server.py +1 -1
- unisi/users.py +1 -1
- {unisi-0.3.10.dist-info → unisi-0.3.11.dist-info}/METADATA +2 -2
- {unisi-0.3.10.dist-info → unisi-0.3.11.dist-info}/RECORD +9 -9
- {unisi-0.3.10.dist-info → unisi-0.3.11.dist-info}/WHEEL +0 -0
- {unisi-0.3.10.dist-info → unisi-0.3.11.dist-info}/entry_points.txt +0 -0
- {unisi-0.3.10.dist-info → unisi-0.3.11.dist-info}/licenses/LICENSE +0 -0
unisi/common.py
CHANGED
@@ -175,6 +175,16 @@ def delete_unit(units, name):
|
|
175
175
|
return True
|
176
176
|
return False
|
177
177
|
|
178
|
+
empty_app = ArgObject(
|
179
|
+
blocks = [],
|
180
|
+
header = "No screens",
|
181
|
+
icon = None,
|
182
|
+
menu = [["You need to put at least 1 file in the 'screens' folder.",'exclamation']],
|
183
|
+
name = "",
|
184
|
+
order = 0,
|
185
|
+
toolbar = [],
|
186
|
+
type = "screen"
|
187
|
+
)
|
178
188
|
|
179
189
|
|
180
190
|
|
unisi/reloader.py
CHANGED
@@ -1,18 +1,10 @@
|
|
1
1
|
# Copyright © 2024 UNISI Tech. All rights reserved.
|
2
2
|
from .autotest import config
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
"menu": [["You need to put at least 1 file in the 'screens' folder.",'exclamation']],
|
9
|
-
"name": "",
|
10
|
-
"order": 0,
|
11
|
-
"toolbar": [],
|
12
|
-
"type": "screen"
|
13
|
-
}
|
14
|
-
|
15
|
-
if config.hot_reload:
|
4
|
+
if not config.hot_reload:
|
5
|
+
active_reloader = False
|
6
|
+
else:
|
7
|
+
active_reloader = True
|
16
8
|
import os, sys, traceback
|
17
9
|
from watchdog.observers import Observer
|
18
10
|
from watchdog.events import PatternMatchingEventHandler
|
@@ -73,7 +65,7 @@ if config.hot_reload:
|
|
73
65
|
user.set_screen(module.name)
|
74
66
|
|
75
67
|
user.screens.sort(key=lambda s: s.screen.order)
|
76
|
-
|
68
|
+
user.screen.menu = [[getattr(s, 'name', ''),getattr(s,'icon', None)] for s in user.screens]
|
77
69
|
user.set_clean()
|
78
70
|
if hasattr(user,'send'):
|
79
71
|
user.sync_send(Redesign)
|
unisi/server.py
CHANGED
unisi/users.py
CHANGED
@@ -144,7 +144,7 @@ class User:
|
|
144
144
|
|
145
145
|
@property
|
146
146
|
def screen(self):
|
147
|
-
return self.screen_module.screen
|
147
|
+
return self.screen_module.screen if self.screen_module else empty_app
|
148
148
|
|
149
149
|
def set_screen(self,name):
|
150
150
|
return self.screen_process(ArgObject(block = 'root', element = None, value = name))
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: unisi
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.11
|
4
4
|
Summary: Unified System Interface, GUI and Remote API
|
5
5
|
Author-Email: UNISI Tech <g.dernovoy@gmail.com>
|
6
6
|
License: Apache-2.0
|
@@ -93,7 +93,7 @@ block = Block('X Block',
|
|
93
93
|
tests/template/run.py
|
94
94
|
```
|
95
95
|
import unisi
|
96
|
-
unisi.start(
|
96
|
+
unisi.start()
|
97
97
|
```
|
98
98
|
UNISI builds the interactive app for the code above.
|
99
99
|
Connect a browser to localhast:8000 which are by default and will see:
|
@@ -1,10 +1,10 @@
|
|
1
|
-
unisi-0.3.
|
2
|
-
unisi-0.3.
|
3
|
-
unisi-0.3.
|
4
|
-
unisi-0.3.
|
1
|
+
unisi-0.3.11.dist-info/METADATA,sha256=CORFBG0VK4XZei-WVk7lqL50bXocruXJLY2t-yDpWTU,27440
|
2
|
+
unisi-0.3.11.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
|
3
|
+
unisi-0.3.11.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
4
|
+
unisi-0.3.11.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
5
5
|
unisi/__init__.py,sha256=JVioDSebhtmoYTldT6ChEayuRTHOgYsAflcxcBYWBTY,279
|
6
6
|
unisi/autotest.py,sha256=qYKwSPEPUEio6koUSu1tc71pDkX-doCQJlyRppaXCtY,8709
|
7
|
-
unisi/common.py,sha256=
|
7
|
+
unisi/common.py,sha256=bMPZo7V9nlJW5HC0yJLRDbrh0DZ4oqmEtBuOvGyN6fw,5759
|
8
8
|
unisi/containers.py,sha256=va4kyqYJ8g7un1hiKx21xXixMXOomXupFPxvS9vga9A,7280
|
9
9
|
unisi/dbunits.py,sha256=G__LLHS-WqdYB4KOOfIYGfcK_SgRWD6LbMj6wqVCyxw,7423
|
10
10
|
unisi/graphs.py,sha256=DTyLUPzi9ErKY6ADXVMXf9-uJskNISZY_xDvsnhMs1Q,6959
|
@@ -17,11 +17,11 @@ unisi/kdb.py,sha256=K-Lqc3e9hLTwO0i1ilTC6qrwZp90tXjLm7HFb_lM1Os,13621
|
|
17
17
|
unisi/llmrag.py,sha256=Wh9pQ8kBMlersKxbEDlZ3XeY2grH0_Rfg8I3E2W87hI,3481
|
18
18
|
unisi/multimon.py,sha256=YKwCuvMsMfdgOGkJoqiqh_9wywXMeo9bUhHmbAIUeSE,4060
|
19
19
|
unisi/proxy.py,sha256=QMHSSFJtmVZIexIMAsuFNlF5JpnYNG90rkTM3PYJhY4,7750
|
20
|
-
unisi/reloader.py,sha256=
|
21
|
-
unisi/server.py,sha256=
|
20
|
+
unisi/reloader.py,sha256=xe-2Cb6XtUUUQwyDi7J4yzoP5f-b-ZsmaPdQ8P1SVKk,6689
|
21
|
+
unisi/server.py,sha256=V0I3OAWcebttN1KXHd_-5Vx9tOZ_RzPfSg-3ZJVxWY0,6084
|
22
22
|
unisi/tables.py,sha256=tszF62VToSchILzPhJgA4U02MFjv44LopXgD5mYg7fg,13822
|
23
23
|
unisi/units.py,sha256=SCUZAOV0nu9khg6JE0lWwsKjiCVz29hiUCRXyZJffeA,11111
|
24
|
-
unisi/users.py,sha256=
|
24
|
+
unisi/users.py,sha256=h4kjPAo8LkUG9mKSDthLoDC-XVFLlPxjUvXcJdXT47g,16145
|
25
25
|
unisi/utils.py,sha256=Uh-BPd6a-i2gMQyJRwANxRN8VQXTtCSunmOAfPnjl9M,2493
|
26
26
|
unisi/voicecom.py,sha256=QzS1gIrBeGLO5dEwiu7KIEdJIIVbPBZFGb5nY632Ws8,16707
|
27
27
|
unisi/web/css/885.703d8f36.css,sha256=9O3mFR661UJ_WySZjYt69TbPXhKwz9yEPE7seHR_3aY,3264
|
@@ -46,4 +46,4 @@ unisi/web/js/885.d3e9dd2b.js,sha256=7A39S4SDApVc4iHHABjOd5julybSa4UwaH4kj8vSn0E,
|
|
46
46
|
unisi/web/js/935.cc0c012c.js,sha256=FzVIRBr4vyQgW38ROCoh929gtzuXqM73Cf77vejfDWk,6561
|
47
47
|
unisi/web/js/app.3d5227f7.js,sha256=lJkD2OPQOYlxivZmNY8FYKI1JMQ_bh1Pm4zC7y8Ayt0,6150
|
48
48
|
unisi/web/js/vendor.1bb14e9d.js,sha256=7q80jaZcms7UhWSqHAk2pXSx67cYQJGlsp-6DBXBZuU,1253597
|
49
|
-
unisi-0.3.
|
49
|
+
unisi-0.3.11.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|