instaui 0.1.9__py3-none-any.whl → 0.1.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.
- instaui/_helper/observable_helper.py +11 -1
- instaui/arco/components/radio.py +1 -1
- instaui/arco/components/select.py +4 -1
- instaui/components/echarts/echarts.js +8 -6
- instaui/components/echarts/echarts.py +1 -1
- instaui/components/element.py +12 -22
- instaui/components/grid.py +63 -11
- instaui/components/html/paragraph.py +10 -0
- instaui/components/label.py +5 -0
- instaui/components/mermaid.py +0 -0
- instaui/event/js_event.py +24 -0
- instaui/event/vue_event.py +66 -0
- instaui/event/web_event.py +36 -25
- instaui/fastapi_server/dependency_router.py +6 -0
- instaui/handlers/_utils.py +27 -5
- instaui/static/insta-ui.css +1 -1
- instaui/static/insta-ui.esm-browser.prod.js +3717 -3672
- instaui/static/insta-ui.js.map +1 -1
- instaui/static/templates/web.html +1 -1
- instaui/static/templates/webview.html +1 -1
- instaui/static/templates/zero.html +1 -1
- instaui/systems/func_system.py +15 -0
- instaui/ui/__init__.py +5 -1
- instaui/ui/__init__.pyi +5 -1
- instaui/ui_functions/ui_page.py +3 -3
- instaui/vars/js_computed.py +25 -1
- instaui/vars/state.py +15 -0
- instaui/vars/web_computed.py +36 -0
- instaui/watch/js_watch.py +37 -1
- instaui/watch/web_watch.py +53 -0
- instaui-0.1.11.dist-info/METADATA +153 -0
- {instaui-0.1.9.dist-info → instaui-0.1.11.dist-info}/RECORD +34 -31
- instaui-0.1.9.dist-info/METADATA +0 -153
- {instaui-0.1.9.dist-info → instaui-0.1.11.dist-info}/WHEEL +0 -0
- {instaui-0.1.9.dist-info → instaui-0.1.11.dist-info}/licenses/LICENSE +0 -0
@@ -7,7 +7,7 @@ instaui/launch_collector.py,sha256=_YmF3hsNWe-ZxMp_amqUBHkhB6fOuTPfX16BVwn25xg,1
|
|
7
7
|
instaui/page_info.py,sha256=aJtfLp2h05tCuLzxk2pZ6a9ztyxSdI-g3NBRxbqpS6E,269
|
8
8
|
instaui/skip.py,sha256=uqhqusgeChVoivKFMoZd-XePYrlSoLvUzRZDBcUgFmA,149
|
9
9
|
instaui/version.py,sha256=to8l16EjNe4jmzK316s5ZIotjv554tqF0VfwA1tBhQk,87
|
10
|
-
instaui/_helper/observable_helper.py,sha256=
|
10
|
+
instaui/_helper/observable_helper.py,sha256=U30PmA8jZ9q48GI_FMNPRYUTKNdl4SsMTAFoq94eRFs,1447
|
11
11
|
instaui/arco/__init__.py,sha256=_QuzxGbuQKuq9hjem65NKqYwiKDAP_3ZVPHy75Idw_s,6155
|
12
12
|
instaui/arco/_settings.py,sha256=iuWQb-sGNlw4fBxf-Ufj-YGnBXaGVJIDMgPuVg9ZJ38,771
|
13
13
|
instaui/arco/component_types.py,sha256=wAJvOw4SGbf8bcC3QTdJonsWk5SsRVui-imsKdg-Nzo,39397
|
@@ -63,12 +63,12 @@ instaui/arco/components/pagination.py,sha256=SOim-t1TE25OkhH4IRavalXLz1TSVgOfVLS
|
|
63
63
|
instaui/arco/components/pop_confirm.py,sha256=Q96oCK88FjNBesC9VZhv8dWuxlEMTqa-SIBV2fGbNBM,1490
|
64
64
|
instaui/arco/components/popover.py,sha256=pfJBqvTOi4BzPGNHw6EjkXs7c7nOjLgeqBpCcwm9IUQ,955
|
65
65
|
instaui/arco/components/progress.py,sha256=uB0HnUCug_FZdDaKUGiIkmECwV3jPBOOEpovrxV-Cck,388
|
66
|
-
instaui/arco/components/radio.py,sha256=
|
66
|
+
instaui/arco/components/radio.py,sha256=w0v8Uh70MFjRFKzVKZTYa0V7aFW90IW4KAzcCjOBQFI,1096
|
67
67
|
instaui/arco/components/radio_group.py,sha256=3LhRaljmD83cR5KAy0492zy62hRde6TTQF-VqkF1Wos,1290
|
68
68
|
instaui/arco/components/rate.py,sha256=GLALtLZ1-1xklnnGKZf02KOLJga-IWVB-l_XSrQoQMs,1163
|
69
69
|
instaui/arco/components/resize_box.py,sha256=imq3YgcLtaeFChZFvC-jflCaJxq0hY_cnK4TCN7s3j4,1678
|
70
70
|
instaui/arco/components/result.py,sha256=QEkQeTujw4P9GtsAziUHDT3UqoRjCcVS2MdZDtT2a8U,382
|
71
|
-
instaui/arco/components/select.py,sha256=
|
71
|
+
instaui/arco/components/select.py,sha256=vTCbEPSIuJzt825Bqq9kh7zes5qsVkfPlIG7yL0AkeQ,4598
|
72
72
|
instaui/arco/components/skeleton.py,sha256=08wkK25eBAn5i_j97WcfipJ2Z15ovQ7G0pp92vAbu3s,388
|
73
73
|
instaui/arco/components/slider.py,sha256=A2R9Nj_BBG7rZhfOdD8eeHslyYpFVeiWFNuP4F8zNRI,1037
|
74
74
|
instaui/arco/components/space.py,sha256=Ml-bWxzMYET0TctKRz_SYE9JIuezD0avTE2KqAZLo68,379
|
@@ -105,17 +105,19 @@ instaui/components/column.py,sha256=t_kDAelb-5_aqx4hv19sOm8zcQpRmn-slTMcwZfMOLk,
|
|
105
105
|
instaui/components/component.py,sha256=cfKWlhxATdvERSzsVzvLtm61f72_gblhLJXIrXLGQrk,1284
|
106
106
|
instaui/components/content.py,sha256=f6dm0GukYJk4RRNJzuvOGqBrStLWkJQbLkV7M5fJ63k,1094
|
107
107
|
instaui/components/directive.py,sha256=bHSOWXNhzWRVNqLXwhc_hY3R3g-JAQ5DWIqpZkI6_wI,1411
|
108
|
-
instaui/components/element.py,sha256=
|
109
|
-
instaui/components/grid.py,sha256=
|
108
|
+
instaui/components/element.py,sha256=PYvIRFhfY3gh05vwj_TGB4Cknm8XtVzHwV1DN4gJ1V8,17373
|
109
|
+
instaui/components/grid.py,sha256=h9Lzxqiw4HB-8VG2JGHVz-KGn4bHTtsibtUb8UCgHO4,7529
|
110
|
+
instaui/components/label.py,sha256=Fp7malMB2i6MjJjZnxdIl2tg6rb33-1PdgxEhGecoTM,118
|
110
111
|
instaui/components/match.py,sha256=B3wV1h-SkvYnX8RiMObdM2tfJb8nW2gjFxXQvNeZWWM,2774
|
112
|
+
instaui/components/mermaid.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
111
113
|
instaui/components/row.py,sha256=c0dxJwt955EF7PXlrFpqIoQNZ59tJm-UvZlx_zjeuBg,570
|
112
114
|
instaui/components/slot.py,sha256=RT0eU7wH7ffFDkl5ucfrNXB1nbsKDq688Hp920TZaoo,2287
|
113
115
|
instaui/components/transition_group.py,sha256=H9zx9NTlCoQnBArWfmxmh7CMKb5hZn8vKrFe4OFxPrE,201
|
114
116
|
instaui/components/value_element.py,sha256=wRIAaR3_Cq9qLNJw2KPhWt7dJmclj1mrttzlGpb01Y0,1412
|
115
117
|
instaui/components/vfor.py,sha256=A6hvCpmY-5oNZLnIs2yvfQ12C1-GggKVAthqhi5E4lY,4031
|
116
118
|
instaui/components/vif.py,sha256=2E62-8J9NIlZDhvgIOuDwz0tLLb6VoJ1ji1K4okrapw,1165
|
117
|
-
instaui/components/echarts/echarts.js,sha256=
|
118
|
-
instaui/components/echarts/echarts.py,sha256=
|
119
|
+
instaui/components/echarts/echarts.js,sha256=QJlvxMvgy6ZyyZ0hX3WC61z849rMyvWcfk9-L7zJVBs,2740
|
120
|
+
instaui/components/echarts/echarts.py,sha256=Up70IWBVLdW0_MZpV4GxM2-YFTe7u5ZWDoXHWaZVcEQ,5457
|
119
121
|
instaui/components/echarts/static/echarts.esm.min.js,sha256=KN8OVRa4kTlat9NIfArzA3rtGcYfyrkcwjFBy_07vu8,1033915
|
120
122
|
instaui/components/html/__init__.py,sha256=9bO1ai0aQCWwj80NKqDeq_3zwMg5gf17mE40a1IESAk,1088
|
121
123
|
instaui/components/html/_mixins.py,sha256=5dcSM9h1PswIKL6_eiqUxqW4H2OCuyNeCuRZq3gDGOc,876
|
@@ -131,7 +133,7 @@ instaui/components/html/label.py,sha256=HAH0pGhRdyRG3YwTM4qM8lyF8O3yAfmEyPHj0fQn
|
|
131
133
|
instaui/components/html/li.py,sha256=2IS8eudUX4McHjyxT1SOu91xviC2D1NNdYKLjznZ-IA,416
|
132
134
|
instaui/components/html/link.py,sha256=eNC2f-twFZUhw_rL-Ggff2Lo8NRU33oF8CfWW_9-ktI,670
|
133
135
|
instaui/components/html/number.py,sha256=Y2oIzTMHKWMWpufG55tFz0npEoEFvLhTWpZbMJ8J07s,1069
|
134
|
-
instaui/components/html/paragraph.py,sha256=
|
136
|
+
instaui/components/html/paragraph.py,sha256=TNMtI9dyQb6hYKE5vGAsSXiOiEqkx7BM6CEoJrg6nz8,914
|
135
137
|
instaui/components/html/range.py,sha256=cLGoo3QaARG9YDnh6g3UYtc1yueI5dfMa9-4e-feSn4,1644
|
136
138
|
instaui/components/html/select.py,sha256=Bq6mwyKa1qAk7bZiHK0uOg65W2twz4QkcJQTjvFNDP4,2029
|
137
139
|
instaui/components/html/span.py,sha256=RJnccwnYEh8PUZ36VTBCKzBNV74M3SMohAejb0ck0UI,440
|
@@ -157,21 +159,22 @@ instaui/components/shiki_code/static/themes/vitesse-light.mjs,sha256=RWgJuEHtO93
|
|
157
159
|
instaui/dependencies/component_dependency.py,sha256=V9L9YmM0_d1bQFMea3aH8qYG_mvGsAVPhmz0UHZa3PQ,672
|
158
160
|
instaui/dependencies/plugin_dependency.py,sha256=6u562ihKbiL3DE4hBrGjauS2nzYEC2glOVN0fwEVNVc,806
|
159
161
|
instaui/event/event_mixin.py,sha256=cN0Wh95e1wX183mGnGFm8BK_aEHWJ8WNx3Upy75mU_4,286
|
160
|
-
instaui/event/js_event.py,sha256=
|
161
|
-
instaui/event/
|
162
|
+
instaui/event/js_event.py,sha256=CGegLXP3QldJp0jN-lNY0XSG8fLuaitFqKkgGEfI7yE,2868
|
163
|
+
instaui/event/vue_event.py,sha256=NRwEcAromivjyPtgMq5SEqHqx8GEc1OJZsRL2Nj43RY,2187
|
164
|
+
instaui/event/web_event.py,sha256=sojugqfXyF0q4gDCQsVjcfdBcuELVGeucZveFTDno10,3607
|
162
165
|
instaui/experimental/__init__.py,sha256=nKvudMaBaDsxflSZQ00ck8Cc4hmrF0f6Xzs4mhIYa08,75
|
163
166
|
instaui/experimental/debug.py,sha256=UGUWgNZ3ShanpuxfuPdx52TgQrkO9hByABYMnPZEIiE,1325
|
164
167
|
instaui/fastapi_server/_utils.py,sha256=MCqbebS4UkBOV8fp3Oy415Tvxnqi2mnMl5Eqe6yJogg,1177
|
165
168
|
instaui/fastapi_server/_uvicorn.py,sha256=n-es5ajWepXb6xF9EP0ft2lrEbsyLGWMUE7uVqpkUAs,1174
|
166
169
|
instaui/fastapi_server/debug_mode_router.py,sha256=EcYtPxI4FMnUqZcn-CZhZiMLgciHVNZpSRfiSIDRChc,1547
|
167
|
-
instaui/fastapi_server/dependency_router.py,sha256=
|
170
|
+
instaui/fastapi_server/dependency_router.py,sha256=KZISD-0N1a40uXEsjOYlMTOJbItJ4Nyyb5W1VxXvOBA,898
|
168
171
|
instaui/fastapi_server/event_router.py,sha256=_b0UNaPiwGwk7ElcF7XQnZfraPyWG2Miv9-wg-RI-PU,1648
|
169
172
|
instaui/fastapi_server/middlewares.py,sha256=XyXjdGjH5hJ47ZK8EBeOln4Db1rfRijZpEGl3xmYQqU,643
|
170
173
|
instaui/fastapi_server/request_context.py,sha256=EV5ZG4zgI_NPlTxinqO4AIREj6rbb1-HcjKCMa2Unfs,521
|
171
174
|
instaui/fastapi_server/resource.py,sha256=2788yiuRjE3GRLqyukuL-x6qN0TSUNzNCm6S51ulNTk,887
|
172
175
|
instaui/fastapi_server/server.py,sha256=6NvpWg6CkCjGK21-Pj1WDLI3YjA0nBBNS2v2_vPPiyc,9892
|
173
176
|
instaui/fastapi_server/watch_router.py,sha256=KC8AbGNpH2x11PHQMPgc9N5WOlqW05i6r0PTU5A35rI,1599
|
174
|
-
instaui/handlers/_utils.py,sha256=
|
177
|
+
instaui/handlers/_utils.py,sha256=uO7WgbNhrykJwDwSEXQxsqsuCR37nx8ehL_urXm-Tks,2830
|
175
178
|
instaui/handlers/event_handler.py,sha256=hjxi_nDh0yjk9EmRgew1USXk-Egd4pR8YnUiOcJbbnc,1761
|
176
179
|
instaui/handlers/watch_handler.py,sha256=Ay4lubEdRnZcWSqWLwxQyS_uWiF0gu-E9PrNGCAHvL0,1600
|
177
180
|
instaui/js/__init__.py,sha256=oIYLPskHpQf8a4SWHLX4DyKjrlDrqWaqbNksIQsLBoA,69
|
@@ -201,20 +204,20 @@ instaui/spa_router/_router_output.py,sha256=Nc6N8yO_9IrUbaYbPZMkOX_9VlwBKzyXMaha
|
|
201
204
|
instaui/spa_router/_router_param_var.py,sha256=KCy54xBZxGMqLO3Zlbzr6XV8ts-M6jCOKunL2gz5IUc,1455
|
202
205
|
instaui/spa_router/_types.py,sha256=KuGuv5C6qivwllfdmV5qrvM0S_GWJ6u8OOTkCNmJImU,81
|
203
206
|
instaui/spa_router/templates/page_routes,sha256=8VjM_8f6pjFb01QbU9z5HNqpcNRdCiX3X0OqNHLq8fo,1355
|
204
|
-
instaui/static/insta-ui.css,sha256=
|
205
|
-
instaui/static/insta-ui.esm-browser.prod.js,sha256=
|
207
|
+
instaui/static/insta-ui.css,sha256=EFA-_5bytZzwbe9w_kaAskE-bpdtwKbBRAyS4iw7NvU,292
|
208
|
+
instaui/static/insta-ui.esm-browser.prod.js,sha256=AaQYoc9SNGGBHSZ7QonPUXo3rYgcg7mYSN2O0EMrQ94,106128
|
206
209
|
instaui/static/insta-ui.ico,sha256=08FJg4qWolvOjfodoh8IJLStslrvd8sDyuRcTUDq5ak,1150
|
207
|
-
instaui/static/insta-ui.js.map,sha256=
|
210
|
+
instaui/static/insta-ui.js.map,sha256=PNEEw_xSUfYtFrnLZikz1-tMruQ-I31fniVaesyqTRY,663608
|
208
211
|
instaui/static/instaui-tools-browser.js,sha256=cLHKNXYaYMZriMxV-yKGAHTrHSdNRUlDVZmv6uc6mMw,14455
|
209
212
|
instaui/static/vue.esm-browser.prod.js,sha256=vwQkXANuVYQuEFc0VgiokJdhNyMmvxMKyb1FmrYrNb4,162662
|
210
213
|
instaui/static/vue.global.prod.js,sha256=xFm6fMjbZcmCWJ-l1kx_9HiHfo5bD9dWgyB87GpOieg,157924
|
211
214
|
instaui/static/vue.runtime.esm-browser.prod.js,sha256=74FfP_s9pycfQXWAiGWx6SbjV_oJvMwZLFBkEXeW1Ek,102024
|
212
|
-
instaui/static/templates/web.html,sha256=
|
213
|
-
instaui/static/templates/webview.html,sha256=
|
214
|
-
instaui/static/templates/zero.html,sha256=
|
215
|
+
instaui/static/templates/web.html,sha256=E-CpEyAXV5E9X7CxkiJ8qy1IpudrCT8pQD4l1mFyAGU,1802
|
216
|
+
instaui/static/templates/webview.html,sha256=NMISXyV5289WNdJYqL40srYUtjF1bo0jkoE-ouDyrAc,1875
|
217
|
+
instaui/static/templates/zero.html,sha256=nDrQhbhZic3VTS3p961iMKHl-kwYgfUhQEq-jFXlluQ,1697
|
215
218
|
instaui/static/templates/debug/sse.html,sha256=qw5pzfjbU_XM-hA_SJCt2F8Imbvp17tW5l2dwoSZYjY,3391
|
216
219
|
instaui/systems/file_system.py,sha256=q8k_mSHhldkSRYXT73T9s8zvERZZo9HL1U2-4mwau-I,163
|
217
|
-
instaui/systems/func_system.py,sha256=
|
220
|
+
instaui/systems/func_system.py,sha256=CER3Qm5luetdskMNVhJslvZK-QKbLe_n1aIGCe_i6Lc,3174
|
218
221
|
instaui/systems/js_system.py,sha256=t_r7SFPmfvTiIrxzuf1YgHyi_Oi_81W0UH_kkC5MwmM,685
|
219
222
|
instaui/systems/module_system.py,sha256=6qeR1K1vxocezBGPX5yecLVygqjzHNeDtlJTwJO9Szs,937
|
220
223
|
instaui/systems/pydantic_system.py,sha256=qibHh4QqjLNPBzyrCkJVJwCk1dC_H8gEDYYf8Sb-5ps,691
|
@@ -229,13 +232,13 @@ instaui/template/env.py,sha256=ZqVsqpfSY1mupbgpBSkvOJytNui8xfNR5kNNC9rv4Ps,150
|
|
229
232
|
instaui/template/web_template.py,sha256=BmZY13q4E_ZP4YVgfBKbbXvPHcGZfOl2f54wp_0DjJA,1603
|
230
233
|
instaui/template/webview_template.py,sha256=rd51iPi600QOPQ9PMjgYk61oIxn3L2p3_sJ3eBPG_24,1557
|
231
234
|
instaui/template/zero_template.py,sha256=E88VGsyjb1qbHFJlMW-xmLRFkwUXZA7VDoZ_Jd8YubA,3514
|
232
|
-
instaui/ui/__init__.py,sha256=
|
233
|
-
instaui/ui/__init__.pyi,sha256=
|
235
|
+
instaui/ui/__init__.py,sha256=G0Zg9hqyO4RQ-izbES_qkYZb6SCv3lLTy4Etewhs8vo,4284
|
236
|
+
instaui/ui/__init__.pyi,sha256=qH14avUiYgVNhQ5G8TFc8FT23NNCL6xFpicBKXUJkF8,4188
|
234
237
|
instaui/ui/events.py,sha256=lfhiINwn-Kh0MezsSeLJPttWm6G1aWiwyk3TRo0NrlA,809
|
235
238
|
instaui/ui_functions/input_slient_data.py,sha256=0A5DegIt_MqdZgbj1RiVFNmB_RUqgov9FYtkw6VX0DE,511
|
236
239
|
instaui/ui_functions/server.py,sha256=B4w8KwBUMGStY19uUG8E4vRG7-L4cedttLkh35xr698,357
|
237
240
|
instaui/ui_functions/str_format.py,sha256=ECWttA4LlNHlvdT_73wGF_I68soWNEXTP_Hosmxt-m4,1139
|
238
|
-
instaui/ui_functions/ui_page.py,sha256=
|
241
|
+
instaui/ui_functions/ui_page.py,sha256=WVm1qoQ9IxE3kWKKnAU8WVI8drsqxxlLucYKfEZ712s,367
|
239
242
|
instaui/ui_functions/ui_types.py,sha256=J5tqFFkoZJMuoLeTqU52KNgw3kdB_IfcrhaBmyI6NAA,505
|
240
243
|
instaui/ui_functions/url_location.py,sha256=zyTAJpA-3GBBe7WAiP2IDKQxeQhu0LNgBOxwEzcDaDk,823
|
241
244
|
instaui/vars/_types.py,sha256=wthCk1fcxj1SZ5y6b84W9gFpoi8j2PYnfmaPj4Am72s,308
|
@@ -243,15 +246,15 @@ instaui/vars/data.py,sha256=uxDN-Xa5wO-_QFZYkiYOACnb9Ve8yODSFNIUs-S_E0I,1768
|
|
243
246
|
instaui/vars/element_ref.py,sha256=qC-Kb1hBGz_Y6WKjKxRvYR8jdvWW4VeAAGzJ2wSrGgI,1059
|
244
247
|
instaui/vars/event_context.py,sha256=3ML6nyF6Q1hbFvdeu6E2QVOIVcWe1P9FtlCR0dgBGjo,1308
|
245
248
|
instaui/vars/event_extend.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
246
|
-
instaui/vars/js_computed.py,sha256=
|
249
|
+
instaui/vars/js_computed.py,sha256=CYCSR21Je1nTKfFh4camDne7TCHol6JHVZySDT4lCrk,3643
|
247
250
|
instaui/vars/path_var.py,sha256=DOgYHoajWKcMHMKYMSBiEOA99mmHIaMH-HRDvAKTZyE,2820
|
248
251
|
instaui/vars/ref.py,sha256=iMwKRYI8ygy2cOpXJgqUYJCpzJCQskDl4lRYTACZWnA,2567
|
249
252
|
instaui/vars/slot_prop.py,sha256=qBVQ0Ze0T8-Wsy__8qEuqVESIrLX69Bmy21Kuxrg_GQ,1198
|
250
|
-
instaui/vars/state.py,sha256=
|
253
|
+
instaui/vars/state.py,sha256=MuiCzR9n348P1J7qdCfFXXratwuOOGELLzg8pu9G6kE,3074
|
251
254
|
instaui/vars/types.py,sha256=K0QTajlzHaDvFoVMCHAhY_rVvrBm3FsC92BFPOgdBog,511
|
252
255
|
instaui/vars/vfor_item.py,sha256=cVrpErh8OrycYjDLm7PTuE2kIcC2M6ThAQlwvTXG8x0,5490
|
253
256
|
instaui/vars/vue_computed.py,sha256=6ZpxCQc2TJfh0vxTxcj6yNPjTVPo3CmsHq028xtiv8Y,2416
|
254
|
-
instaui/vars/web_computed.py,sha256=
|
257
|
+
instaui/vars/web_computed.py,sha256=BlK06i2KOV-KQZYQdiDIY8rwPYTY3rC6ntLQdNlyS3E,6062
|
255
258
|
instaui/vars/web_view_computed.py,sha256=bFFVE9jRKczNy4HhmegWoC6KOL_Nrej-ag37DAIDzaA,36
|
256
259
|
instaui/vars/mixin_types/common_type.py,sha256=4KduANLCUCeGTA1ClEsbFzEzd8Mgve3693Wxf9H7Gmw,176
|
257
260
|
instaui/vars/mixin_types/element_binding.py,sha256=4suqqLT3zn5y7LvqVo2QrEgI1uUFS_5sv8vtTUCzkTc,235
|
@@ -262,9 +265,9 @@ instaui/vars/mixin_types/str_format_binding.py,sha256=i2jXm1RKddPnGrCxEyz0tkDrBU
|
|
262
265
|
instaui/vars/mixin_types/var_type.py,sha256=FQj1TEkjT7HopDPztt0-J6eQVGHjem3KBFsjZwvcvYg,57
|
263
266
|
instaui/watch/_types.py,sha256=HJ_eAID0NsEJ_S8PhcYWxpVWhYLjjqKlbNWwqdqS4IU,73
|
264
267
|
instaui/watch/_utils.py,sha256=mTITHG8hp0pyfQXUERQKXMDna5Au02bhuASCV32eXHI,124
|
265
|
-
instaui/watch/js_watch.py,sha256=
|
268
|
+
instaui/watch/js_watch.py,sha256=8lVINBauHBRiDX3-F1V6V5_1CN9j1EMCROjcD9LRCD8,4230
|
266
269
|
instaui/watch/vue_watch.py,sha256=Vd3nsRyf9ufrXLFTjaSvglwnkoWyE32fOV0qOogWPt4,2013
|
267
|
-
instaui/watch/web_watch.py,sha256=
|
270
|
+
instaui/watch/web_watch.py,sha256=Z0xevG6Zwp-9yPSGBZFlbwtd0yP4j29F0GV-yksZVV0,6031
|
268
271
|
instaui/webview/__init__.py,sha256=_L8B0Ym7i1Q8eonQ81fC54EXn7oZuc6zE1KqeAEPHEg,65
|
269
272
|
instaui/webview/_utils.py,sha256=pqARVv37h-8p7CLOpvqLV8O_az4EV2VD9G-beUVqjD8,172
|
270
273
|
instaui/webview/api.py,sha256=9xuG3EKpmOOy1dvIrS9C9z9ukQDRnIdZLrGFD5FLyvU,2071
|
@@ -274,7 +277,7 @@ instaui/webview/resource.py,sha256=kFT6N5UZK5GLE0KmW3TrEYDNlViw9DL2OshRh41wBXs,5
|
|
274
277
|
instaui/zero/__init__.py,sha256=N0LuRUAcaurxHSspcEDuwZg62W2S3qL4VtrMKxOivBE,49
|
275
278
|
instaui/zero/func.py,sha256=8cA_wJMtRmoAARjWY8yY5MmLXDAQ7hyVW6f1Vbejtoc,3576
|
276
279
|
instaui/zero/scope.py,sha256=HGohYOqnpRGVkkoz_gvR6-DgCc48AtJAcDwbOnnGHLM,3753
|
277
|
-
instaui-0.1.
|
278
|
-
instaui-0.1.
|
279
|
-
instaui-0.1.
|
280
|
-
instaui-0.1.
|
280
|
+
instaui-0.1.11.dist-info/METADATA,sha256=zkuWQLzYtwnAxJe6BscJdHJrUZJWIUj0FqMk0qm0fjQ,3591
|
281
|
+
instaui-0.1.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
282
|
+
instaui-0.1.11.dist-info/licenses/LICENSE,sha256=_JjnAWrikJ6qkwT7PazeFNRlcIu8q_RH3mYcHTxEF5c,1094
|
283
|
+
instaui-0.1.11.dist-info/RECORD,,
|
instaui-0.1.9.dist-info/METADATA
DELETED
@@ -1,153 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.4
|
2
|
-
Name: instaui
|
3
|
-
Version: 0.1.9
|
4
|
-
Summary: insta-ui is a Python-based UI library for rapidly building user interfaces.
|
5
|
-
Author-email: CrystalWindSnake <568166495@qq.com>
|
6
|
-
License-Expression: MIT
|
7
|
-
License-File: LICENSE
|
8
|
-
Keywords: gui,ui,web
|
9
|
-
Requires-Python: <3.13,>=3.8
|
10
|
-
Requires-Dist: jinja2>=3.1.6
|
11
|
-
Requires-Dist: orjson>=3.10.15
|
12
|
-
Requires-Dist: pydantic>=2.10.6
|
13
|
-
Requires-Dist: typing-extensions>=4.13.2
|
14
|
-
Provides-Extra: all
|
15
|
-
Requires-Dist: fastapi[standard]; extra == 'all'
|
16
|
-
Requires-Dist: pywebview; extra == 'all'
|
17
|
-
Requires-Dist: uvicorn; extra == 'all'
|
18
|
-
Provides-Extra: web
|
19
|
-
Requires-Dist: fastapi[standard]; extra == 'web'
|
20
|
-
Requires-Dist: pydantic<3.0.0,>=2.10.6; extra == 'web'
|
21
|
-
Requires-Dist: uvicorn; extra == 'web'
|
22
|
-
Provides-Extra: webview
|
23
|
-
Requires-Dist: pydantic<3.0.0,>=2.10.6; extra == 'webview'
|
24
|
-
Requires-Dist: pywebview; extra == 'webview'
|
25
|
-
Description-Content-Type: text/markdown
|
26
|
-
|
27
|
-
# insta-ui
|
28
|
-
|
29
|
-
<div align="center">
|
30
|
-
|
31
|
-
English| [简体中文](./README.md)
|
32
|
-
|
33
|
-
</div>
|
34
|
-
|
35
|
-
|
36
|
-
## 📖 Introduction
|
37
|
-
insta-ui is a Python-based UI library for rapidly building user interfaces.
|
38
|
-
|
39
|
-
|
40
|
-
## ⚙️ Features
|
41
|
-
|
42
|
-
Three modes are provided:
|
43
|
-
|
44
|
-
- Zero mode: Generates pure HTML files, requiring no dependencies. Simply open in a browser to run.
|
45
|
-
- Web mode: Generates web applications.
|
46
|
-
- Web view mode: Generates web view applications that can be packaged into local applications (without needing to start a web server).
|
47
|
-
|
48
|
-
|
49
|
-
## 📦 Installation
|
50
|
-
|
51
|
-
For zero mode:
|
52
|
-
|
53
|
-
```
|
54
|
-
pip install instaui -U
|
55
|
-
```
|
56
|
-
|
57
|
-
For web mode:
|
58
|
-
|
59
|
-
```
|
60
|
-
pip install instaui[web] -U
|
61
|
-
```
|
62
|
-
|
63
|
-
For web view mode:
|
64
|
-
```
|
65
|
-
pip install instaui[webview] -U
|
66
|
-
```
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
## 🖥️ Quick Start
|
71
|
-
|
72
|
-
Here's a Counter example where clicking the button will display the current count value on the button text.
|
73
|
-
|
74
|
-
zore mode:
|
75
|
-
|
76
|
-
```python
|
77
|
-
from instaui import ui, html, zero
|
78
|
-
|
79
|
-
with zero():
|
80
|
-
count = ui.ref(0)
|
81
|
-
text = ui.str_format("Count: {}", count)
|
82
|
-
|
83
|
-
html.button(text).on_click(
|
84
|
-
"()=> count.value++", bindings={"count": count}
|
85
|
-
)
|
86
|
-
|
87
|
-
ui.to_html("./test.html")
|
88
|
-
|
89
|
-
```
|
90
|
-
|
91
|
-
Running the above code will generate a test.html file, which you can open in a browser to see the effect.
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
Web mode:
|
96
|
-
|
97
|
-
```python
|
98
|
-
from instaui import ui, html
|
99
|
-
|
100
|
-
@ui.page("/")
|
101
|
-
def counter():
|
102
|
-
count = ui.ref(0)
|
103
|
-
text = ui.str_format("Count: {}", count)
|
104
|
-
|
105
|
-
html.button(text).on_click("()=> count.value++", bindings={"count": count})
|
106
|
-
|
107
|
-
|
108
|
-
ui.server().run()
|
109
|
-
```
|
110
|
-
|
111
|
-
In web mode, we can define interaction functions for complex computations.
|
112
|
-
|
113
|
-
```python
|
114
|
-
from instaui import ui, html
|
115
|
-
|
116
|
-
@ui.page("/")
|
117
|
-
def counter():
|
118
|
-
count = ui.ref(0)
|
119
|
-
# text = ui.str_format("Count: {}", count)
|
120
|
-
|
121
|
-
@ui.computed(inputs=[count])
|
122
|
-
def text(count: int):
|
123
|
-
# Any Python operation
|
124
|
-
return f"Current Count: {count}"
|
125
|
-
|
126
|
-
|
127
|
-
html.button(text).on_click("()=> count.value++", bindings={"count": count})
|
128
|
-
|
129
|
-
|
130
|
-
ui.server().run()
|
131
|
-
```
|
132
|
-
|
133
|
-
- The computation of `text` will generate network requests.
|
134
|
-
- Button clicks, due to using JS binding, do not require network requests.
|
135
|
-
|
136
|
-
You can choose to handle any computation with either Python or JavaScript. Below is an example of handling the button click event using Python.
|
137
|
-
|
138
|
-
```python
|
139
|
-
@ui.page("/")
|
140
|
-
def counter():
|
141
|
-
count = ui.ref(0)
|
142
|
-
|
143
|
-
@ui.computed(inputs=[count])
|
144
|
-
def text(count: int):
|
145
|
-
return f"Current Count: {count}"
|
146
|
-
|
147
|
-
@ui.event(inputs=[count], outputs=[count])
|
148
|
-
def add_count(count: int):
|
149
|
-
return count + 1
|
150
|
-
|
151
|
-
html.button(text).on_click(add_count)
|
152
|
-
|
153
|
-
```
|
File without changes
|
File without changes
|