dara-core 1.17.0__py3-none-any.whl → 1.17.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/definitions.py +10 -15
- dara/core/interactivity/data_variable.py +4 -1
- dara/core/umd/dara.core.umd.js +1 -1
- {dara_core-1.17.0.dist-info → dara_core-1.17.2.dist-info}/METADATA +10 -10
- {dara_core-1.17.0.dist-info → dara_core-1.17.2.dist-info}/RECORD +8 -8
- {dara_core-1.17.0.dist-info → dara_core-1.17.2.dist-info}/LICENSE +0 -0
- {dara_core-1.17.0.dist-info → dara_core-1.17.2.dist-info}/WHEEL +0 -0
- {dara_core-1.17.0.dist-info → dara_core-1.17.2.dist-info}/entry_points.txt +0 -0
dara/core/definitions.py
CHANGED
|
@@ -93,16 +93,14 @@ class ErrorHandlingConfig(BaseModel):
|
|
|
93
93
|
def validate_raw_css(cls, value):
|
|
94
94
|
from dara.core.interactivity.non_data_variable import NonDataVariable
|
|
95
95
|
|
|
96
|
-
if
|
|
97
|
-
return
|
|
96
|
+
if value is None:
|
|
97
|
+
return None
|
|
98
|
+
if isinstance(value, (str, NonDataVariable, CSSProperties)):
|
|
99
|
+
return value
|
|
98
100
|
if isinstance(value, dict):
|
|
99
101
|
return {_kebab_to_camel(k): v for k, v in value.items()}
|
|
100
|
-
if isinstance(value, NonDataVariable):
|
|
101
|
-
return value
|
|
102
|
-
if isinstance(value, CSSProperties):
|
|
103
|
-
return value
|
|
104
102
|
|
|
105
|
-
raise ValueError(f'raw_css must be a CSSProperties, dict, str, or NonDataVariable, got {type(value)}')
|
|
103
|
+
raise ValueError(f'raw_css must be a CSSProperties, dict, str, None or NonDataVariable, got {type(value)}')
|
|
106
104
|
|
|
107
105
|
def model_dump(self, *args, **kwargs):
|
|
108
106
|
result = super().model_dump(*args, **kwargs)
|
|
@@ -204,20 +202,17 @@ class ComponentInstance(BaseModel):
|
|
|
204
202
|
def parse_css(cls, css: Optional[Any]):
|
|
205
203
|
from dara.core.interactivity.non_data_variable import NonDataVariable
|
|
206
204
|
|
|
205
|
+
if css is None:
|
|
206
|
+
return None
|
|
207
|
+
|
|
207
208
|
# If it's a plain dict, change kebab case to camel case
|
|
208
209
|
if isinstance(css, dict):
|
|
209
210
|
return {_kebab_to_camel(k): v for k, v in css.items()}
|
|
210
211
|
|
|
211
|
-
if isinstance(css, NonDataVariable):
|
|
212
|
-
return css
|
|
213
|
-
|
|
214
|
-
if isinstance(css, CSSProperties):
|
|
215
|
-
return css
|
|
216
|
-
|
|
217
|
-
if isinstance(css, str):
|
|
212
|
+
if isinstance(css, (NonDataVariable, CSSProperties, str)):
|
|
218
213
|
return css
|
|
219
214
|
|
|
220
|
-
raise ValueError(f'raw_css must be a CSSProperties, dict, str, or NonDataVariable, got {type(css)}')
|
|
215
|
+
raise ValueError(f'raw_css must be a CSSProperties, dict, str, None or NonDataVariable, got {type(css)}')
|
|
221
216
|
|
|
222
217
|
@classmethod
|
|
223
218
|
def isinstance(cls, obj: Any) -> bool:
|
|
@@ -200,7 +200,10 @@ class DataVariable(AnyDataVariable):
|
|
|
200
200
|
eng_logger.debug(
|
|
201
201
|
f'Data Variable {_uid_short}',
|
|
202
202
|
'retrieved from cache',
|
|
203
|
-
{
|
|
203
|
+
{
|
|
204
|
+
'uid': var_entry.uid,
|
|
205
|
+
'size': len(entry.data.index) if entry is not None and entry.data is not None else 0,
|
|
206
|
+
},
|
|
204
207
|
)
|
|
205
208
|
|
|
206
209
|
if entry is None:
|
dara/core/umd/dara.core.umd.js
CHANGED
|
@@ -54484,7 +54484,7 @@ Inferred class string: "${iconClasses}."`
|
|
|
54484
54484
|
...(_a = props.style) != null ? _a : {}
|
|
54485
54485
|
};
|
|
54486
54486
|
return Object.fromEntries(Object.entries(stylesObj).filter(([, v2]) => v2 !== null && v2 !== void 0));
|
|
54487
|
-
}, [useDeepCompare(props)]);
|
|
54487
|
+
}, [useDeepCompare(props), rawStyles, flexProps]);
|
|
54488
54488
|
return [styles2, rawCss];
|
|
54489
54489
|
}
|
|
54490
54490
|
function useUrlSync(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dara-core
|
|
3
|
-
Version: 1.17.
|
|
3
|
+
Version: 1.17.2
|
|
4
4
|
Summary: Dara Framework Core
|
|
5
5
|
Home-page: https://dara.causalens.com/
|
|
6
6
|
License: Apache-2.0
|
|
@@ -20,10 +20,10 @@ Requires-Dist: async-asgi-testclient (>=1.4.11,<2.0.0)
|
|
|
20
20
|
Requires-Dist: certifi (>=2024.7.4)
|
|
21
21
|
Requires-Dist: click (==8.1.3)
|
|
22
22
|
Requires-Dist: colorama (>=0.4.6,<0.5.0)
|
|
23
|
-
Requires-Dist: create-dara-app (==1.17.
|
|
23
|
+
Requires-Dist: create-dara-app (==1.17.2)
|
|
24
24
|
Requires-Dist: croniter (>=1.0.15,<3.0.0)
|
|
25
25
|
Requires-Dist: cryptography (>=42.0.4)
|
|
26
|
-
Requires-Dist: dara-components (==1.17.
|
|
26
|
+
Requires-Dist: dara-components (==1.17.2) ; extra == "all"
|
|
27
27
|
Requires-Dist: exceptiongroup (>=1.1.3,<2.0.0)
|
|
28
28
|
Requires-Dist: fastapi (>=0.115.0,<0.116.0)
|
|
29
29
|
Requires-Dist: fastapi_vite_dara (==0.4.0)
|
|
@@ -54,7 +54,7 @@ Description-Content-Type: text/markdown
|
|
|
54
54
|
|
|
55
55
|
# Dara Application Framework
|
|
56
56
|
|
|
57
|
-
<img src="https://github.com/causalens/dara/blob/v1.17.
|
|
57
|
+
<img src="https://github.com/causalens/dara/blob/v1.17.2/img/dara_light.svg?raw=true">
|
|
58
58
|
|
|
59
59
|

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

|
|
103
103
|
|
|
104
104
|
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:
|
|
105
105
|
|
|
@@ -116,9 +116,9 @@ Explore some of our favorite apps - a great way of getting started and getting t
|
|
|
116
116
|
|
|
117
117
|
| Dara App | Description |
|
|
118
118
|
| -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
119
|
-
|  | Demonstrates how to use incorporate a LLM chat box into your decision app to understand model insights |
|
|
120
|
+
|  | 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 |
|
|
121
|
+
|  | 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. |
|
|
122
122
|
|
|
123
123
|
Check out our [App Gallery](https://dara.causalens.com/gallery) for more inspiration!
|
|
124
124
|
|
|
@@ -145,9 +145,9 @@ And the supporting UI packages and tools.
|
|
|
145
145
|
- `ui-utils` - miscellaneous utility functions
|
|
146
146
|
- `ui-widgets` - widget components
|
|
147
147
|
|
|
148
|
-
More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.17.
|
|
148
|
+
More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.17.2/CONTRIBUTING.md) file.
|
|
149
149
|
|
|
150
150
|
## License
|
|
151
151
|
|
|
152
|
-
Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.17.
|
|
152
|
+
Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.17.2/LICENSE).
|
|
153
153
|
|
|
@@ -12,14 +12,14 @@ dara/core/configuration.py,sha256=bWD9oL_lqCEq88I2Zr39cPt_8jZIwq5vUAyLFrsmVYQ,22
|
|
|
12
12
|
dara/core/css.py,sha256=KWCJTPpx4tTezP9VJO3k-RSVhWwomJr-4USoLz9vNAs,1771
|
|
13
13
|
dara/core/data_utils.py,sha256=5GGz4vk6srLO8HMySiAEk_xZCvmf0SeTTgVi-N4qaKY,12636
|
|
14
14
|
dara/core/defaults.py,sha256=UkjWwIbo8GLyn8RZRoD3cJe174-3wHZYzvMB0hQCnMg,4150
|
|
15
|
-
dara/core/definitions.py,sha256=
|
|
15
|
+
dara/core/definitions.py,sha256=JOtmltnKVHYNXBFNfcZ3il3CCT9WzNTiLauJQLV7YCI,17663
|
|
16
16
|
dara/core/http.py,sha256=LR1Kr5Hca-Z6klNl-M8R8Q1eOfFh3hLrjVS3kVrRsKA,4658
|
|
17
17
|
dara/core/interactivity/__init__.py,sha256=4gD69m5nRf6lefKdNx9K_fRJOqmsAwjALZqKiPtvutk,2415
|
|
18
18
|
dara/core/interactivity/actions.py,sha256=niNMt-IE_YXTtLpYrueTNCT60KelmNCGpUn7-WTVDQ4,48020
|
|
19
19
|
dara/core/interactivity/any_data_variable.py,sha256=1dLLxLuDErRsgaFPSTXxZHvpVucKKty90twQE6N-_NI,5286
|
|
20
20
|
dara/core/interactivity/any_variable.py,sha256=LOGhbDdYffujlRxF4LR9ZuWdai03R-EXuGsTEJAwfo0,13544
|
|
21
21
|
dara/core/interactivity/condition.py,sha256=69tdxgLqNbU-AlwHTWFdp-hvxGDugNnb_McDrz0mDtE,1575
|
|
22
|
-
dara/core/interactivity/data_variable.py,sha256=
|
|
22
|
+
dara/core/interactivity/data_variable.py,sha256=lIn2v3MSSfbhTtR-9qCqUP8VSzjVj5_wMClpgS1-UZQ,11834
|
|
23
23
|
dara/core/interactivity/derived_data_variable.py,sha256=u2HOts5rtmzK3D1K383YfYYQnb4pHZF3rTu1lfwMpPA,15323
|
|
24
24
|
dara/core/interactivity/derived_variable.py,sha256=x_vdt8hvgubDEISX6GfpR5CS7n2Vxq3oZIkVd8Daiw0,21927
|
|
25
25
|
dara/core/interactivity/filtering.py,sha256=BZsWsQvXPhn6WUoAFpAtgN6hXlGDudPbi4h97Qao2ic,9197
|
|
@@ -83,7 +83,7 @@ dara/core/metrics/cache.py,sha256=bGXwjO_rSc-FkS3PnPi1mvIZf1x-hvmG113dAUk1g-Y,26
|
|
|
83
83
|
dara/core/metrics/runtime.py,sha256=YP-6Dz0GeI9_Yr7bUk_-OqShyFySGH_AKpDO126l6es,1833
|
|
84
84
|
dara/core/metrics/utils.py,sha256=aKaa_hskV3M3h4xOGZYvegDLq_OWOEUlslkQKrrPQiI,2281
|
|
85
85
|
dara/core/persistence.py,sha256=-lnksbGfHwabeRjbJkceoFd0kHfCu4gK2fud8dkeDTg,18538
|
|
86
|
-
dara/core/umd/dara.core.umd.js,sha256=
|
|
86
|
+
dara/core/umd/dara.core.umd.js,sha256=XNr43n2tSWqKbOCkZTqqffmkqTVhaz784rziVqPJdt8,4730577
|
|
87
87
|
dara/core/umd/style.css,sha256=YQtQ4veiSktnyONl0CU1iU1kKfcQhreH4iASi1MP7Ak,4095007
|
|
88
88
|
dara/core/visual/__init__.py,sha256=QN0wbG9HPQ_vXh8BO8DnBXeYLIENVTNtRmYzZf1lx7c,577
|
|
89
89
|
dara/core/visual/components/__init__.py,sha256=eg6M2YcH1o-I2H3IqLaD32ExfZcXhKuH5KTM52Ow6RM,2359
|
|
@@ -107,8 +107,8 @@ dara/core/visual/themes/__init__.py,sha256=aM4mgoIYo2neBSw5FRzswsht7PUKjLthiHLmF
|
|
|
107
107
|
dara/core/visual/themes/dark.py,sha256=UQGDooOc8ric73eHs9E0ltYP4UCrwqQ3QxqN_fb4PwY,1942
|
|
108
108
|
dara/core/visual/themes/definitions.py,sha256=nS_gQvOzCt5hTmj74d0_siq_9QWuj6wNuir4VCHy0Dk,2779
|
|
109
109
|
dara/core/visual/themes/light.py,sha256=-Tviq8oEwGbdFULoDOqPuHO0UpAZGsBy8qFi0kAGolQ,1944
|
|
110
|
-
dara_core-1.17.
|
|
111
|
-
dara_core-1.17.
|
|
112
|
-
dara_core-1.17.
|
|
113
|
-
dara_core-1.17.
|
|
114
|
-
dara_core-1.17.
|
|
110
|
+
dara_core-1.17.2.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
|
|
111
|
+
dara_core-1.17.2.dist-info/METADATA,sha256=vImK50_0SvInMHasAvOdr-Yrz1mZ4p3a-qLhWjYJZ5g,7497
|
|
112
|
+
dara_core-1.17.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
113
|
+
dara_core-1.17.2.dist-info/entry_points.txt,sha256=H__D5sNIGuPIhVam0DChNL-To5k8Y7nY7TAFz9Mz6cc,139
|
|
114
|
+
dara_core-1.17.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|