setta 0.0.3.dev8__py3-none-any.whl → 0.0.3.dev9__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.
- setta/__init__.py +1 -1
- setta/routers/interactive.py +7 -8
- setta/static/constants/constants.json +1 -0
- setta/static/frontend/assets/{index-8204c872.js → index-d7ede6b5.js} +145 -145
- setta/static/frontend/index.html +1 -1
- setta/tasks/tasks.py +74 -23
- setta/tasks/utils.py +48 -26
- {setta-0.0.3.dev8.dist-info → setta-0.0.3.dev9.dist-info}/METADATA +1 -1
- {setta-0.0.3.dev8.dist-info → setta-0.0.3.dev9.dist-info}/RECORD +13 -13
- {setta-0.0.3.dev8.dist-info → setta-0.0.3.dev9.dist-info}/LICENSE +0 -0
- {setta-0.0.3.dev8.dist-info → setta-0.0.3.dev9.dist-info}/WHEEL +0 -0
- {setta-0.0.3.dev8.dist-info → setta-0.0.3.dev9.dist-info}/entry_points.txt +0 -0
- {setta-0.0.3.dev8.dist-info → setta-0.0.3.dev9.dist-info}/top_level.txt +0 -0
setta/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = "0.0.3.
|
1
|
+
__version__ = "0.0.3.dev9"
|
setta/routers/interactive.py
CHANGED
@@ -40,15 +40,14 @@ async def route_update_interactive_code(
|
|
40
40
|
lsp_writers=Depends(get_lsp_writers),
|
41
41
|
):
|
42
42
|
idx = 0
|
43
|
-
dependencies = set()
|
44
43
|
content = []
|
45
44
|
for p in x.projects:
|
46
|
-
|
47
|
-
|
48
|
-
content.extend(result["content"])
|
45
|
+
initialContent = await update_interactive_code(p, tasks, lsp_writers, idx)
|
46
|
+
content.extend(initialContent)
|
49
47
|
idx += 1
|
50
|
-
|
51
|
-
|
48
|
+
|
49
|
+
inMemorySubprocessInfo = tasks.getInMemorySubprocessInfo()
|
50
|
+
return {"inMemorySubprocessInfo": inMemorySubprocessInfo, "content": content}
|
52
51
|
|
53
52
|
|
54
53
|
async def update_interactive_code(p, tasks, lsp_writers, idx):
|
@@ -93,12 +92,12 @@ async def update_interactive_code(p, tasks, lsp_writers, idx):
|
|
93
92
|
}
|
94
93
|
)
|
95
94
|
|
96
|
-
|
95
|
+
initialContent = await tasks.add_custom_fns(
|
97
96
|
code_graph,
|
98
97
|
to_cache=exporter_obj_in_memory,
|
99
98
|
)
|
100
99
|
|
101
|
-
return
|
100
|
+
return initialContent
|
102
101
|
|
103
102
|
|
104
103
|
@router.post(C.ROUTE_FORMAT_CODE)
|
@@ -103,6 +103,7 @@
|
|
103
103
|
"WS_IN_MEMORY_FN_RETURN": "inMemoryFnReturn",
|
104
104
|
"WS_TERMINAL_RESIZE": "terminalResize",
|
105
105
|
"WS_LSP_STATUS": "lspStatus",
|
106
|
+
"WS_IN_MEMORY_FN_AVG_RUN_TIME": "inMemoryFnAvgRunTime",
|
106
107
|
"SETTA_GENERATED_PYTHON": "SETTA_GENERATED_PYTHON",
|
107
108
|
"SETTA_GENERATED_PYTHON_IMPORTS": "SETTA_GENERATED_PYTHON_IMPORTS",
|
108
109
|
"TEMPLATE_VAR_IMPORT_PATH_SUFFIX": "import_path",
|