dara-core 1.24.0__py3-none-any.whl → 1.24.2__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.
- dara/core/_assets/auto_js/dara.core.umd.cjs +4 -2
- dara/core/internal/dependency_resolution.py +10 -14
- {dara_core-1.24.0.dist-info → dara_core-1.24.2.dist-info}/METADATA +10 -10
- {dara_core-1.24.0.dist-info → dara_core-1.24.2.dist-info}/RECORD +7 -7
- {dara_core-1.24.0.dist-info → dara_core-1.24.2.dist-info}/LICENSE +0 -0
- {dara_core-1.24.0.dist-info → dara_core-1.24.2.dist-info}/WHEEL +0 -0
- {dara_core-1.24.0.dist-info → dara_core-1.24.2.dist-info}/entry_points.txt +0 -0
|
@@ -70104,7 +70104,8 @@ ${String(error)}`;
|
|
|
70104
70104
|
deps,
|
|
70105
70105
|
type: "derived",
|
|
70106
70106
|
uid: variable.uid,
|
|
70107
|
-
values
|
|
70107
|
+
values,
|
|
70108
|
+
nested: variable.nested
|
|
70108
70109
|
};
|
|
70109
70110
|
}
|
|
70110
70111
|
if (isServerVariable(variable)) {
|
|
@@ -70142,7 +70143,8 @@ ${String(error)}`;
|
|
|
70142
70143
|
deps,
|
|
70143
70144
|
type: "derived",
|
|
70144
70145
|
uid: variable.uid,
|
|
70145
|
-
values
|
|
70146
|
+
values,
|
|
70147
|
+
nested: variable.nested
|
|
70146
70148
|
};
|
|
70147
70149
|
}
|
|
70148
70150
|
if (isServerVariable(variable)) {
|
|
@@ -33,6 +33,7 @@ class ResolvedDerivedVariable(TypedDict):
|
|
|
33
33
|
uid: str
|
|
34
34
|
values: list[Any]
|
|
35
35
|
force_key: str | None
|
|
36
|
+
nested: list[str]
|
|
36
37
|
|
|
37
38
|
|
|
38
39
|
class ResolvedServerVariable(TypedDict):
|
|
@@ -61,7 +62,7 @@ def is_resolved_switch_variable(obj: Any) -> TypeGuard[ResolvedSwitchVariable]:
|
|
|
61
62
|
return isinstance(obj, dict) and 'uid' in obj and obj.get('type') == 'switch'
|
|
62
63
|
|
|
63
64
|
|
|
64
|
-
def _resolve_nested(value: Any, nested: list[str]) -> Any:
|
|
65
|
+
def _resolve_nested(value: Any, nested: list[str] | None) -> Any:
|
|
65
66
|
"""
|
|
66
67
|
Resolve a nested value from an object using a list of keys.
|
|
67
68
|
This matches the frontend resolveNested function in nested.tsx.
|
|
@@ -130,23 +131,18 @@ async def resolve_dependency(
|
|
|
130
131
|
:param store: store instance
|
|
131
132
|
:param task_mgr: task manager instance
|
|
132
133
|
"""
|
|
133
|
-
# Extract nested property if present
|
|
134
|
-
nested: list[str] = entry.get('nested', []) if isinstance(entry, dict) else []
|
|
135
|
-
|
|
136
134
|
if is_resolved_derived_variable(entry):
|
|
137
135
|
result = await _resolve_derived_var(entry, store, task_mgr)
|
|
138
|
-
|
|
139
|
-
result
|
|
140
|
-
elif is_resolved_switch_variable(entry):
|
|
141
|
-
result = await _resolve_switch_var(entry, store, task_mgr)
|
|
142
|
-
else:
|
|
143
|
-
return entry
|
|
136
|
+
# Apply nested extraction if present
|
|
137
|
+
return _resolve_nested(result, entry.get('nested'))
|
|
144
138
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
result = _resolve_nested(result, nested)
|
|
139
|
+
if is_resolved_server_variable(entry):
|
|
140
|
+
return await _resolve_server_var(entry)
|
|
148
141
|
|
|
149
|
-
|
|
142
|
+
if is_resolved_switch_variable(entry):
|
|
143
|
+
return await _resolve_switch_var(entry, store, task_mgr)
|
|
144
|
+
|
|
145
|
+
return entry
|
|
150
146
|
|
|
151
147
|
|
|
152
148
|
async def _resolve_derived_var(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dara-core
|
|
3
|
-
Version: 1.24.
|
|
3
|
+
Version: 1.24.2
|
|
4
4
|
Summary: Dara Framework Core
|
|
5
5
|
Home-page: https://dara.causalens.com/
|
|
6
6
|
License: Apache-2.0
|
|
@@ -21,10 +21,10 @@ Requires-Dist: cachetools (>=5.0.0)
|
|
|
21
21
|
Requires-Dist: certifi (>=2024.7.4)
|
|
22
22
|
Requires-Dist: click (>=8.1.3,<9.0.0)
|
|
23
23
|
Requires-Dist: colorama (>=0.4.6,<0.5.0)
|
|
24
|
-
Requires-Dist: create-dara-app (==1.24.
|
|
24
|
+
Requires-Dist: create-dara-app (==1.24.2)
|
|
25
25
|
Requires-Dist: croniter (>=6.0.0,<7.0.0)
|
|
26
26
|
Requires-Dist: cryptography (>=42.0.4)
|
|
27
|
-
Requires-Dist: dara-components (==1.24.
|
|
27
|
+
Requires-Dist: dara-components (==1.24.2) ; extra == "all"
|
|
28
28
|
Requires-Dist: exceptiongroup (>=1.1.3,<2.0.0)
|
|
29
29
|
Requires-Dist: fastapi (>=0.115.0,<0.121.0)
|
|
30
30
|
Requires-Dist: fastapi_vite_dara (==0.4.0)
|
|
@@ -55,7 +55,7 @@ Description-Content-Type: text/markdown
|
|
|
55
55
|
|
|
56
56
|
# Dara Application Framework
|
|
57
57
|
|
|
58
|
-
<img src="https://github.com/causalens/dara/blob/v1.24.
|
|
58
|
+
<img src="https://github.com/causalens/dara/blob/v1.24.2/img/dara_light.svg?raw=true">
|
|
59
59
|
|
|
60
60
|

|
|
61
61
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -100,7 +100,7 @@ source .venv/bin/activate
|
|
|
100
100
|
dara start
|
|
101
101
|
```
|
|
102
102
|
|
|
103
|
-

|
|
104
104
|
|
|
105
105
|
Note: `pip` installation uses [PEP 660](https://peps.python.org/pep-0660/) `pyproject.toml`-based editable installs which require `pip >= 21.3` and `setuptools >= 64.0.0`. You can upgrade both with:
|
|
106
106
|
|
|
@@ -117,9 +117,9 @@ Explore some of our favorite apps - a great way of getting started and getting t
|
|
|
117
117
|
|
|
118
118
|
| Dara App | Description |
|
|
119
119
|
| -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
120
|
-
|  | Demonstrates how to use incorporate a LLM chat box into your decision app to understand model insights |
|
|
121
|
+
|  | Demonstrates how to enable the user to interact with plots, trigger actions based on clicks, mouse movements and other interactions with `Bokeh` or `Plotly` plots |
|
|
122
|
+
|  | Demonstrates how to use the `CausalGraphViewer` component to display your graphs or networks, customising the displayed information through colors and tooltips, and updating the page based on user interaction. |
|
|
123
123
|
|
|
124
124
|
Check out our [App Gallery](https://dara.causalens.com/gallery) for more inspiration!
|
|
125
125
|
|
|
@@ -146,9 +146,9 @@ And the supporting UI packages and tools.
|
|
|
146
146
|
- `ui-utils` - miscellaneous utility functions
|
|
147
147
|
- `ui-widgets` - widget components
|
|
148
148
|
|
|
149
|
-
More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.24.
|
|
149
|
+
More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.24.2/CONTRIBUTING.md) file.
|
|
150
150
|
|
|
151
151
|
## License
|
|
152
152
|
|
|
153
|
-
Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.24.
|
|
153
|
+
Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.24.2/LICENSE).
|
|
154
154
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
dara/core/__init__.py,sha256=yTp-lXT0yy9XqLGYWlmjPgFG5g2eEg2KhKo8KheTHoo,1408
|
|
2
2
|
dara/core/_assets/__init__.py,sha256=13vMoWHvl1zcFcjNHh8lbTwWOvu4f7krYSco978qxwM,723
|
|
3
3
|
dara/core/_assets/auto_js/dara.core.css,sha256=yT3PKpi2sKI2-kQIF8xtVbTPQqgpK7-Ua7tfzDPuSsI,4095881
|
|
4
|
-
dara/core/_assets/auto_js/dara.core.umd.cjs,sha256=
|
|
4
|
+
dara/core/_assets/auto_js/dara.core.umd.cjs,sha256=GdefQG4ttuW0Zo5_EO5WRuprJWlfzW4AeeVaGaHLR7k,5163836
|
|
5
5
|
dara/core/_assets/auto_js/react-dom.development.js,sha256=vR2Fq5LXMKS5JsTo2CMl6oGCJT8scJV2wXSteTtx8aE,1077040
|
|
6
6
|
dara/core/_assets/auto_js/react-is.development.js,sha256=2IRgmaphdMq6wx2MbsmVUQ0UwapGETNjgano3XEkGcc,7932
|
|
7
7
|
dara/core/_assets/auto_js/react-query.development.js,sha256=lI2fTKMvWmjbagGQaVtZYr51_-C_U_so064JwetuDS0,130366
|
|
@@ -56,7 +56,7 @@ dara/core/internal/cache_store/lru.py,sha256=6Jd4TmUX1LaEPnOraf8cSnL9Rx-A_LDhjqO
|
|
|
56
56
|
dara/core/internal/cache_store/ttl.py,sha256=WzSZfdhK-nTf0fwCwtaRbJ-9I-FeTNBXgnZgSvZMbKQ,4966
|
|
57
57
|
dara/core/internal/cgroup.py,sha256=yKCTY8RxyxnNy-Mw4tfzeZew1dL8qw381gHBVE96-OA,3217
|
|
58
58
|
dara/core/internal/custom_response.py,sha256=MM0xEX7kVZWyX943Obl7sic3bxXr6kHGLWe6pc5pcYg,1304
|
|
59
|
-
dara/core/internal/dependency_resolution.py,sha256=
|
|
59
|
+
dara/core/internal/dependency_resolution.py,sha256=1ydLyUYzAQBKl13ECMT8_YaxUc8X8Tlvv9ZYdUvPgdE,11376
|
|
60
60
|
dara/core/internal/devtools.py,sha256=4LsK7sqES33fAqb53dyH3n0OSWang3W-MiPsmo57aXU,2586
|
|
61
61
|
dara/core/internal/download.py,sha256=wBSUapMY6evZ_sA5ZgvnWhaRtzVMIDIC51mPzFCMWuM,3548
|
|
62
62
|
dara/core/internal/encoder_registry.py,sha256=Q8F5Y2uZVkx7EUtk4MZ99wvPBWaMnPKcFZzK92FYNPw,11159
|
|
@@ -134,8 +134,8 @@ dara/core/visual/themes/__init__.py,sha256=aM4mgoIYo2neBSw5FRzswsht7PUKjLthiHLmF
|
|
|
134
134
|
dara/core/visual/themes/dark.py,sha256=QazCRDqh_SCOyQhdwMkH1wbHf301oL7gCFj91plbLww,2020
|
|
135
135
|
dara/core/visual/themes/definitions.py,sha256=dtET2YUlwXkO6gJ23MqSb8gIq-LxJ343CWsgueWSifM,2787
|
|
136
136
|
dara/core/visual/themes/light.py,sha256=dtHb6Q1HOb5r_AvJfe0vZajikVc-GnBEUrGsTcI5MHA,2022
|
|
137
|
-
dara_core-1.24.
|
|
138
|
-
dara_core-1.24.
|
|
139
|
-
dara_core-1.24.
|
|
140
|
-
dara_core-1.24.
|
|
141
|
-
dara_core-1.24.
|
|
137
|
+
dara_core-1.24.2.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
|
|
138
|
+
dara_core-1.24.2.dist-info/METADATA,sha256=nFq3ET6WwPclI3s2w8KV-3-dNLQBjxwjv-T8KFgTuLU,7523
|
|
139
|
+
dara_core-1.24.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
140
|
+
dara_core-1.24.2.dist-info/entry_points.txt,sha256=nAT9o1kJCmTK1saDh29PFGFD6cbxDDDjTj31HDEDwfU,197
|
|
141
|
+
dara_core-1.24.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|