dara-core 1.21.24__py3-none-any.whl → 1.21.25__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/router/router.py +9 -0
- dara/core/umd/dara.core.umd.cjs +1 -1
- {dara_core-1.21.24.dist-info → dara_core-1.21.25.dist-info}/METADATA +10 -10
- {dara_core-1.21.24.dist-info → dara_core-1.21.25.dist-info}/RECORD +7 -7
- {dara_core-1.21.24.dist-info → dara_core-1.21.25.dist-info}/LICENSE +0 -0
- {dara_core-1.21.24.dist-info → dara_core-1.21.25.dist-info}/WHEEL +0 -0
- {dara_core-1.21.24.dist-info → dara_core-1.21.25.dist-info}/entry_points.txt +0 -0
dara/core/router/router.py
CHANGED
|
@@ -753,6 +753,15 @@ class Router(HasChildRoutes):
|
|
|
753
753
|
Note that this will be updated by Dara automatically, so you should not modify it directly.
|
|
754
754
|
"""
|
|
755
755
|
|
|
756
|
+
default_path: str | None = None
|
|
757
|
+
"""
|
|
758
|
+
Default path to navigate to in scenarios such as:
|
|
759
|
+
- user navigates to a URL that doesn't match any route
|
|
760
|
+
- after successful login
|
|
761
|
+
|
|
762
|
+
Defaults to None, which will result in the first least-nested navigatable route being used.
|
|
763
|
+
"""
|
|
764
|
+
|
|
756
765
|
def __init__(self, *children: BaseRoute, **kwargs):
|
|
757
766
|
routes = list(children)
|
|
758
767
|
if 'children' not in kwargs:
|
dara/core/umd/dara.core.umd.cjs
CHANGED
|
@@ -74651,7 +74651,7 @@ body,
|
|
|
74651
74651
|
const { login, logout, ...extraRoutes } = config2.auth_components;
|
|
74652
74652
|
const routeDefMap = /* @__PURE__ */ new Map();
|
|
74653
74653
|
const userRoutes = config2.router.children.map((r2) => createRoute(r2, snapshot, routeDefMap));
|
|
74654
|
-
const defaultPath = findFirstPath(config2.router.children) || "/";
|
|
74654
|
+
const defaultPath = config2.router.default_path ?? (findFirstPath(config2.router.children) || "/");
|
|
74655
74655
|
const router = createBrowserRouter(
|
|
74656
74656
|
[
|
|
74657
74657
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dara-core
|
|
3
|
-
Version: 1.21.
|
|
3
|
+
Version: 1.21.25
|
|
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,<6.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.21.
|
|
24
|
+
Requires-Dist: create-dara-app (==1.21.25)
|
|
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.21.
|
|
27
|
+
Requires-Dist: dara-components (==1.21.25) ; 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.21.
|
|
58
|
+
<img src="https://github.com/causalens/dara/blob/v1.21.25/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.21.
|
|
149
|
+
More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.21.25/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.21.
|
|
153
|
+
Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.21.25/LICENSE).
|
|
154
154
|
|
|
@@ -92,8 +92,8 @@ dara/core/router/__init__.py,sha256=yGI_MgLQU37ircCtYVNjnhqCjWQxKd5amoNqvMyrhOs,
|
|
|
92
92
|
dara/core/router/compat.py,sha256=B83wq46AwQARTDfZwGrpr0slrnQmi_T7shOUNpqltSM,3112
|
|
93
93
|
dara/core/router/components.py,sha256=Wsf_bBnnN-1EE5jhbjPSOyDv_TVKEsY4royyOQOazM4,6132
|
|
94
94
|
dara/core/router/dependency_graph.py,sha256=A0xGuZWSOCGs7rwHbeZC5vLvZouUt-2fnEX9VM2Ukp0,2280
|
|
95
|
-
dara/core/router/router.py,sha256=
|
|
96
|
-
dara/core/umd/dara.core.umd.cjs,sha256=
|
|
95
|
+
dara/core/router/router.py,sha256=cjIOOD2UpjdxvvDBnOegfso37AbalKekVLpsdbcTMOk,32543
|
|
96
|
+
dara/core/umd/dara.core.umd.cjs,sha256=ukclcCaCGe0D3b-SkwMXmcxUV7XnlG5F2gvCm8lHOdQ,5155131
|
|
97
97
|
dara/core/umd/style.css,sha256=yT3PKpi2sKI2-kQIF8xtVbTPQqgpK7-Ua7tfzDPuSsI,4095881
|
|
98
98
|
dara/core/visual/__init__.py,sha256=QN0wbG9HPQ_vXh8BO8DnBXeYLIENVTNtRmYzZf1lx7c,577
|
|
99
99
|
dara/core/visual/components/__init__.py,sha256=Jrh38Q4Lc8iFFVKPuEaDeloYHVLohTTHgK92u1e_ZtY,2515
|
|
@@ -121,8 +121,8 @@ dara/core/visual/themes/__init__.py,sha256=aM4mgoIYo2neBSw5FRzswsht7PUKjLthiHLmF
|
|
|
121
121
|
dara/core/visual/themes/dark.py,sha256=QazCRDqh_SCOyQhdwMkH1wbHf301oL7gCFj91plbLww,2020
|
|
122
122
|
dara/core/visual/themes/definitions.py,sha256=dtET2YUlwXkO6gJ23MqSb8gIq-LxJ343CWsgueWSifM,2787
|
|
123
123
|
dara/core/visual/themes/light.py,sha256=dtHb6Q1HOb5r_AvJfe0vZajikVc-GnBEUrGsTcI5MHA,2022
|
|
124
|
-
dara_core-1.21.
|
|
125
|
-
dara_core-1.21.
|
|
126
|
-
dara_core-1.21.
|
|
127
|
-
dara_core-1.21.
|
|
128
|
-
dara_core-1.21.
|
|
124
|
+
dara_core-1.21.25.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
|
|
125
|
+
dara_core-1.21.25.dist-info/METADATA,sha256=UGtLYAygR13NWBAN_Nx6BmlF_Qcww8g_DVC73D8eu5E,7541
|
|
126
|
+
dara_core-1.21.25.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
127
|
+
dara_core-1.21.25.dist-info/entry_points.txt,sha256=H__D5sNIGuPIhVam0DChNL-To5k8Y7nY7TAFz9Mz6cc,139
|
|
128
|
+
dara_core-1.21.25.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|