setta 0.0.15.dev1__py3-none-any.whl → 0.0.15.dev3__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.
Potentially problematic release.
This version of setta might be problematic. Click here for more details.
- setta/__init__.py +1 -1
- setta/routers/interactive.py +18 -2
- setta/static/constants/Settings.json +1 -1
- setta/static/constants/constants.json +1 -0
- setta/static/frontend/assets/{index-DodsVsiZ.js → index-C-JEbczL.js} +170 -170
- setta/static/frontend/index.html +1 -1
- setta/tasks/tasks.py +26 -17
- {setta-0.0.15.dev1.dist-info → setta-0.0.15.dev3.dist-info}/METADATA +1 -1
- {setta-0.0.15.dev1.dist-info → setta-0.0.15.dev3.dist-info}/RECORD +13 -13
- {setta-0.0.15.dev1.dist-info → setta-0.0.15.dev3.dist-info}/LICENSE +0 -0
- {setta-0.0.15.dev1.dist-info → setta-0.0.15.dev3.dist-info}/WHEEL +0 -0
- {setta-0.0.15.dev1.dist-info → setta-0.0.15.dev3.dist-info}/entry_points.txt +0 -0
- {setta-0.0.15.dev1.dist-info → setta-0.0.15.dev3.dist-info}/top_level.txt +0 -0
setta/static/frontend/index.html
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
<meta name="description" content="setta" />
|
15
15
|
|
16
16
|
<title>setta.dev</title>
|
17
|
-
<script type="module" crossorigin src="/static/assets/index-
|
17
|
+
<script type="module" crossorigin src="/static/assets/index-C-JEbczL.js"></script>
|
18
18
|
<link rel="stylesheet" crossorigin href="/static/assets/index-DG_u-B1j.css">
|
19
19
|
</head>
|
20
20
|
<body>
|
setta/tasks/tasks.py
CHANGED
@@ -91,7 +91,6 @@ class Tasks:
|
|
91
91
|
if call_fn_condition(
|
92
92
|
call_all, call_fns_with_empty_dependency_array, fnInfo, message
|
93
93
|
):
|
94
|
-
print('fnInfo["dependencies"]', fnInfo["dependencies"], flush=True)
|
95
94
|
fns_to_call.append(fn_name)
|
96
95
|
|
97
96
|
if fns_to_call:
|
@@ -143,22 +142,27 @@ class Tasks:
|
|
143
142
|
):
|
144
143
|
# Process each function sequentially for this subprocess
|
145
144
|
for fn_name in fn_names:
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
145
|
+
try:
|
146
|
+
# Send message to subprocess
|
147
|
+
subprocess.parent_conn.send(
|
148
|
+
{
|
149
|
+
"type": call_type,
|
150
|
+
"fn_name": fn_name,
|
151
|
+
"message": message,
|
152
|
+
"other_data": other_data,
|
153
|
+
}
|
154
|
+
)
|
155
155
|
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
156
|
+
# Wait for and handle the response before sending the next message
|
157
|
+
start_time = time.perf_counter()
|
158
|
+
result = await self.task_runner.run(
|
159
|
+
subprocess.parent_conn.recv, [], RunType.THREAD
|
160
|
+
)
|
161
|
+
elapsed_time = time.perf_counter() - start_time
|
162
|
+
except Exception as e:
|
163
|
+
logger.debug("error while sending or receiving from subprocess")
|
164
|
+
results.append({"content":[e]})
|
165
|
+
continue
|
162
166
|
|
163
167
|
if result["status"] == "success":
|
164
168
|
self.update_average_subprocess_fn_time(
|
@@ -240,10 +244,15 @@ class Tasks:
|
|
240
244
|
|
241
245
|
return initial_result["content"]
|
242
246
|
|
243
|
-
def
|
247
|
+
def kill_in_memory_subprocesses(self):
|
244
248
|
self.stop_event.set()
|
245
249
|
for v in self.in_memory_subprocesses.values():
|
246
250
|
v["subprocess"].close()
|
251
|
+
self.in_memory_subprocesses = {}
|
252
|
+
self.stop_event.clear()
|
253
|
+
|
254
|
+
def close(self):
|
255
|
+
self.kill_in_memory_subprocesses()
|
247
256
|
|
248
257
|
def update_average_subprocess_fn_time(self, subprocess_key, fn_name, new_time):
|
249
258
|
fnInfo = self.in_memory_subprocesses[subprocess_key]["fnInfo"][fn_name]
|
@@ -1,4 +1,4 @@
|
|
1
|
-
setta/__init__.py,sha256=
|
1
|
+
setta/__init__.py,sha256=98hRmo0i0GZdoH6MfG2EyfZWWjoPrnEVDNUHBtLIdiE,28
|
2
2
|
setta/server.py,sha256=q4w9WG7SuLxwYtgXUCQyLt7t_HLmQV4y5abqvm7-uEA,4861
|
3
3
|
setta/start.py,sha256=5sMZ7WH3KV9Q0v186PsaYqsWOz7hebyrpXbBOp9wQww,3589
|
4
4
|
setta/cli/__init__.py,sha256=UxZG_VOMuF6lEBT3teUgTS9ulsK3wt3Gu3BbAQiAmt8,47
|
@@ -88,7 +88,7 @@ setta/routers/artifact.py,sha256=9wHdreg5DsLshhET-6gEDw2Apw_-r8bRF1x3-_dD9mU,266
|
|
88
88
|
setta/routers/code_info.py,sha256=rDBLkr5VQOlktap3hWA73ls0VrBi5y4mc_SfWzw9ad0,857
|
89
89
|
setta/routers/dependencies.py,sha256=0pz1HuvhlJDIVopvkfRTgmLJhDPGw0g33uj2qXgpxQs,1228
|
90
90
|
setta/routers/in_memory_fn_stdout_websocket.py,sha256=T2BpLzh6PwYQP0qIkFS4r_VfEKBlwl4gkwIaq6r6Phs,604
|
91
|
-
setta/routers/interactive.py,sha256=
|
91
|
+
setta/routers/interactive.py,sha256=dey2_x_goo-GsdohwGzGfXS6OJZBs6VwQWpqzRdQWTU,6063
|
92
92
|
setta/routers/lsp.py,sha256=DAZqdiRKDWJ9ikjwQetV4_8s9U-EDC91ToJA3u57qnU,385
|
93
93
|
setta/routers/projects.py,sha256=p3zPD3jobYOxBGJSSIYS1Aqu1w-PrJCcEN6dPJ0DT6E,5255
|
94
94
|
setta/routers/reference_renaming.py,sha256=Ec1hz2Nz_hYqk8GyGmUcWKvXo-lVEDbIIK2YbX-wi00,3598
|
@@ -97,8 +97,8 @@ setta/routers/settings.py,sha256=1S7Epj4O7jElixjNaNlRplBGiYdkj9mFeNQeeOrtQw4,103
|
|
97
97
|
setta/routers/terminals.py,sha256=91I3tVUPJtLyCD_-E_qBQ_k8uuNUrcXl5P7sCTQuDQE,2435
|
98
98
|
setta/routers/websocket.py,sha256=6fSROv9C5PobPXppUWwNLDDO0p8VADYaf2KcgIuTQp4,1121
|
99
99
|
setta/static/constants/BaseUITypes.json,sha256=WQUgvN4eq9uU6ifhDBhtyEIoQFsAC022DSEut-E-4bA,4057
|
100
|
-
setta/static/constants/Settings.json,sha256=
|
101
|
-
setta/static/constants/constants.json,sha256=
|
100
|
+
setta/static/constants/Settings.json,sha256=8XLoX6ODLxNTqHFn88yv8XzAQRop_MSDBOD5ylFYgFw,3536
|
101
|
+
setta/static/constants/constants.json,sha256=RFvfJJ5ClNc-N_1IFl9rEN5fYows5wTnSYNj3PtMgXw,5471
|
102
102
|
setta/static/constants/db_init.sql,sha256=rdc0C5Hx_6d-QWEEbSqscArTyc77w9cMj8vbIVS8ZBw,8436
|
103
103
|
setta/static/constants/defaultValues.json,sha256=Vh8WQZJYSc0QBu5WnNQO2dQtuYHZuy3WKfQEr9sBSqE,3063
|
104
104
|
setta/static/constants/settingsProject.json,sha256=3s2PQSBXqV9BYnibKY1xbLZfEYjL6JeLnPVEusfmz9c,14678
|
@@ -109,7 +109,7 @@ setta/static/frontend/browserconfig.xml,sha256=w0iw1t89kA7-965LTfyLYrFzewTQnUWE_
|
|
109
109
|
setta/static/frontend/favicon-16x16.png,sha256=q67Crpy8s3wryu7Y3kffPeysN99Lt4XeFygXhPKize8,740
|
110
110
|
setta/static/frontend/favicon-32x32.png,sha256=4NKXYticYdMrRHmVveHjxqnBU1HWgBT5JyJG8lx3BNE,1027
|
111
111
|
setta/static/frontend/favicon.ico,sha256=02qhEBLsvsgBTZX6dcZElMyivlvrR7Yr6wB8ItEZFsc,15086
|
112
|
-
setta/static/frontend/index.html,sha256=
|
112
|
+
setta/static/frontend/index.html,sha256=XBrOlQClzPjJpWnUQPX-4eStZRnZ6d41srZcB37cG0U,1298
|
113
113
|
setta/static/frontend/manifest.json,sha256=ULPYw5A68_eNhxuUVXqxT045yhkurKPSz6hjyGcnmhQ,492
|
114
114
|
setta/static/frontend/mstile-144x144.png,sha256=wQqckmRWre2NCCevevI3rv4j0tcduVMkpYr2tPj73cs,2692
|
115
115
|
setta/static/frontend/mstile-150x150.png,sha256=FUwy6PipTofnhmJB5CdXWYgwy-2inq_sIOdOwdDklcY,2674
|
@@ -184,8 +184,8 @@ setta/static/frontend/assets/cormorant-garamond-cyrillic-ext-700-italic-gsr366qd
|
|
184
184
|
setta/static/frontend/assets/cormorant-garamond-latin-700-italic-BQbwEFjx.woff2,sha256=C8U-EgDBT8MpU4FpUNBJdybVpKvRhg_3WDpUDCw9XZg,20348
|
185
185
|
setta/static/frontend/assets/cormorant-garamond-latin-ext-700-italic-DnnS5iSC.woff2,sha256=Ulc44CPXdUiI5dY86W76HLk7801Fm9_QywCV-8GRtFU,17240
|
186
186
|
setta/static/frontend/assets/cormorant-garamond-vietnamese-700-italic-2_nTgjbG.woff2,sha256=mVYwN54qI0RLXqyrDGPUNpBHWSJDKjgUyBRWa2FJ_ao,5248
|
187
|
+
setta/static/frontend/assets/index-C-JEbczL.js,sha256=tgHLepuZMZeTgv5cNqQko-r2yjSxdILiUBSxtB9xMrk,3084800
|
187
188
|
setta/static/frontend/assets/index-DG_u-B1j.css,sha256=p4Gqww92nEx28I_kek53IZqFoHhzWcpbVL0O4oOP6R4,238489
|
188
|
-
setta/static/frontend/assets/index-DodsVsiZ.js,sha256=ZODZXJ-CPAk4neKZgmGLdCtZ_nLqZKY0CpHUQaiJ0fM,3083095
|
189
189
|
setta/static/frontend/assets/inter-all-400-normal-ByZ5TkcW.woff,sha256=BU8S0GmcIMyYte4ESEdQJO-WvL2Rb-38m1n0ujdbYxI,128624
|
190
190
|
setta/static/frontend/assets/inter-all-600-normal-BQl_S1BW.woff,sha256=wDdp5VNyQL_IbxcPThD2qI-ETg_QKj7AmCwMCjqDfLE,139072
|
191
191
|
setta/static/frontend/assets/inter-all-800-normal-BdAoPad8.woff,sha256=FdxuS9xuVumB5nbVcCXyt3IWqzS4Z75qiRz_0FV5al0,139120
|
@@ -230,7 +230,7 @@ setta/static/seed/.DS_Store,sha256=ENxJvDQd7Te_U8gExcXtHE-mAeBUYOHELRfDWgN1NmA,6
|
|
230
230
|
setta/static/seed/examples/.DS_Store,sha256=1lFlJ5EFymdzGAUAaI30vcaaLHt3F1LwpG7xILf9jsM,6148
|
231
231
|
setta/tasks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
232
232
|
setta/tasks/task_runner.py,sha256=gMXpfZWFMQbix2MfrHVCKB7BxQCjO8JH2P8cxUmt1ms,849
|
233
|
-
setta/tasks/tasks.py,sha256=
|
233
|
+
setta/tasks/tasks.py,sha256=SQiRwZv5F40vHITFqnDUWOkT93_Or2rjs8-v0VhjrO8,11868
|
234
234
|
setta/tasks/utils.py,sha256=iqbsLYBcu4Qd-MAHd0SWK9wPaJezgEh1Yg5YC9goOLU,10631
|
235
235
|
setta/tasks/fns/__init__.py,sha256=JhGzzQGaT9BWtF3pOmguh6pzIF9kdG3jdDNLyYZ2w7g,461
|
236
236
|
setta/tasks/fns/codeAreaAutocomplete.py,sha256=gJ5JbjkWDyTothr-UF-YlOxrbVzj2iyOVK7XD3lfhSQ,6416
|
@@ -252,9 +252,9 @@ setta/utils/generate_new_filename.py,sha256=KBLX6paDmTvXR-027TpqQkfijIXc7mCfhen-
|
|
252
252
|
setta/utils/section_contents.py,sha256=V2HQPik6DfSXw4j7IalbP5AZ3OEGCbtL5ub3xL-Q_Qo,4141
|
253
253
|
setta/utils/utils.py,sha256=KjzcvgM3Ab3IcE8vaWYtgBpwzPLKg0LmblnHLoYZJHM,9164
|
254
254
|
setta/utils/websocket_manager.py,sha256=MBIMI8xxOFQF4lT3on4pupi1ttEWXdWPV4fI2YP_UJU,3925
|
255
|
-
setta-0.0.15.
|
256
|
-
setta-0.0.15.
|
257
|
-
setta-0.0.15.
|
258
|
-
setta-0.0.15.
|
259
|
-
setta-0.0.15.
|
260
|
-
setta-0.0.15.
|
255
|
+
setta-0.0.15.dev3.dist-info/LICENSE,sha256=us9fuCq9wmiZVzayjKxNZ2iJYF6dROe0Qp57ToCO7XU,11361
|
256
|
+
setta-0.0.15.dev3.dist-info/METADATA,sha256=V4RIOH_F28ls_LgSnKwdDUxQNMq_9totbwlLV0KxkFQ,7202
|
257
|
+
setta-0.0.15.dev3.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
258
|
+
setta-0.0.15.dev3.dist-info/entry_points.txt,sha256=P0qCESy9fWF2q1EQ9JufGldCSnPHplDPn8J6Bgk5hB0,42
|
259
|
+
setta-0.0.15.dev3.dist-info/top_level.txt,sha256=8G4lmRzVOnJ11_DescPVHE6MQZH-o06A0nGsDDV2ngY,6
|
260
|
+
setta-0.0.15.dev3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|