dara-core 1.15.6__py3-none-any.whl → 1.15.7__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/cli.py +12 -0
- {dara_core-1.15.6.dist-info → dara_core-1.15.7.dist-info}/METADATA +10 -10
- {dara_core-1.15.6.dist-info → dara_core-1.15.7.dist-info}/RECORD +6 -6
- {dara_core-1.15.6.dist-info → dara_core-1.15.7.dist-info}/LICENSE +0 -0
- {dara_core-1.15.6.dist-info → dara_core-1.15.7.dist-info}/WHEEL +0 -0
- {dara_core-1.15.6.dist-info → dara_core-1.15.7.dist-info}/entry_points.txt +0 -0
dara/core/cli.py
CHANGED
|
@@ -60,6 +60,11 @@ def cli():
|
|
|
60
60
|
@click.option('--log', default=lambda: os.environ.get('DARA_DEV_LOG_LEVEL', None), help='Dev logger level to use')
|
|
61
61
|
@click.option('--reload-dir', multiple=True, help='Directories to watch for reload')
|
|
62
62
|
@click.option('--skip-jsbuild', is_flag=True, help='Whether to skip building the JS assets')
|
|
63
|
+
@click.option(
|
|
64
|
+
'--base-url',
|
|
65
|
+
default=lambda: os.environ.get('DARA_BASE_URL', None),
|
|
66
|
+
help='An optional base_url for running a Dara app behind a proxy',
|
|
67
|
+
)
|
|
63
68
|
def start(
|
|
64
69
|
reload: bool,
|
|
65
70
|
enable_hmr: bool,
|
|
@@ -76,6 +81,7 @@ def start(
|
|
|
76
81
|
log: Optional[str],
|
|
77
82
|
reload_dir: Optional[List[str]],
|
|
78
83
|
skip_jsbuild: bool,
|
|
84
|
+
base_url: Optional[str],
|
|
79
85
|
):
|
|
80
86
|
if config is None:
|
|
81
87
|
folder_name = os.path.basename(os.getcwd()).replace('-', '_')
|
|
@@ -127,6 +133,10 @@ def start(
|
|
|
127
133
|
if skip_jsbuild:
|
|
128
134
|
os.environ['SKIP_JSBUILD'] = 'TRUE'
|
|
129
135
|
|
|
136
|
+
# Ensure the base_url is set as an env var as well
|
|
137
|
+
if base_url:
|
|
138
|
+
os.environ['DARA_BASE_URL'] = base_url
|
|
139
|
+
|
|
130
140
|
# Check that if production/dev mode is set, node is installed - unless we're in docker mode, or explicitly skipping jsbuild
|
|
131
141
|
if not docker and not skip_jsbuild and (production or enable_hmr):
|
|
132
142
|
exit_code = os.system('node -v')
|
|
@@ -176,6 +186,8 @@ def start(
|
|
|
176
186
|
log_config=logging_config,
|
|
177
187
|
limit_max_requests=limit_max_requests,
|
|
178
188
|
lifespan='on',
|
|
189
|
+
# This matches the default on the uvicorn cli
|
|
190
|
+
root_path='' if base_url is None else base_url,
|
|
179
191
|
)
|
|
180
192
|
|
|
181
193
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dara-core
|
|
3
|
-
Version: 1.15.
|
|
3
|
+
Version: 1.15.7
|
|
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.15.
|
|
23
|
+
Requires-Dist: create-dara-app (==1.15.7)
|
|
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.15.
|
|
26
|
+
Requires-Dist: dara-components (==1.15.7) ; extra == "all"
|
|
27
27
|
Requires-Dist: exceptiongroup (>=1.1.3,<2.0.0)
|
|
28
28
|
Requires-Dist: fastapi (==0.109.0)
|
|
29
29
|
Requires-Dist: fastapi_vite_dara (==0.3.1.0)
|
|
@@ -51,7 +51,7 @@ Description-Content-Type: text/markdown
|
|
|
51
51
|
|
|
52
52
|
# Dara Application Framework
|
|
53
53
|
|
|
54
|
-
<img src="https://github.com/causalens/dara/blob/v1.15.
|
|
54
|
+
<img src="https://github.com/causalens/dara/blob/v1.15.7/img/dara_light.svg?raw=true">
|
|
55
55
|
|
|
56
56
|

|
|
57
57
|
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
@@ -96,7 +96,7 @@ source .venv/bin/activate
|
|
|
96
96
|
dara start
|
|
97
97
|
```
|
|
98
98
|
|
|
99
|
-

|
|
100
100
|
|
|
101
101
|
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:
|
|
102
102
|
|
|
@@ -113,9 +113,9 @@ Explore some of our favorite apps - a great way of getting started and getting t
|
|
|
113
113
|
|
|
114
114
|
| Dara App | Description |
|
|
115
115
|
| -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
116
|
-
|  | Demonstrates how to use incorporate a LLM chat box into your decision app to understand model insights |
|
|
117
|
+
|  | 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 |
|
|
118
|
+
|  | 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. |
|
|
119
119
|
|
|
120
120
|
Check out our [App Gallery](https://dara.causalens.com/gallery) for more inspiration!
|
|
121
121
|
|
|
@@ -142,9 +142,9 @@ And the supporting UI packages and tools.
|
|
|
142
142
|
- `ui-utils` - miscellaneous utility functions
|
|
143
143
|
- `ui-widgets` - widget components
|
|
144
144
|
|
|
145
|
-
More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.15.
|
|
145
|
+
More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.15.7/CONTRIBUTING.md) file.
|
|
146
146
|
|
|
147
147
|
## License
|
|
148
148
|
|
|
149
|
-
Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.15.
|
|
149
|
+
Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.15.7/LICENSE).
|
|
150
150
|
|
|
@@ -7,7 +7,7 @@ dara/core/auth/definitions.py,sha256=fx-VCsElP9X97gM0Eql-4lFpLa0UryokmGZhQQat2NU
|
|
|
7
7
|
dara/core/auth/routes.py,sha256=1gOe1Z2Vv5MtpW5uvUYvyYWTJ_BDoLRllji1Plk4nss,7180
|
|
8
8
|
dara/core/auth/utils.py,sha256=_iyS_FExxlYZVDvnHJO5uhFpOW-g8YlhBH9zz8oPsPE,7314
|
|
9
9
|
dara/core/base_definitions.py,sha256=r_W_qk6_VvvskbPEPjTF6xUh3o_lkNBWMFhN1Pic8Ks,14868
|
|
10
|
-
dara/core/cli.py,sha256=
|
|
10
|
+
dara/core/cli.py,sha256=uttatNgqyJ86lj_IMLDJsEebh_sR3M2Ka7TncnT_PeU,8080
|
|
11
11
|
dara/core/configuration.py,sha256=8VynDds7a_uKXSpeNvjOUK3qfclg0WPniFEspL-6fi8,21153
|
|
12
12
|
dara/core/css.py,sha256=KWCJTPpx4tTezP9VJO3k-RSVhWwomJr-4USoLz9vNAs,1771
|
|
13
13
|
dara/core/data_utils.py,sha256=TUbCQkxkMndhwQEAFpvlcNTK13Xq0WlM8uavY9qUy3o,12601
|
|
@@ -105,8 +105,8 @@ dara/core/visual/themes/__init__.py,sha256=aM4mgoIYo2neBSw5FRzswsht7PUKjLthiHLmF
|
|
|
105
105
|
dara/core/visual/themes/dark.py,sha256=UQGDooOc8ric73eHs9E0ltYP4UCrwqQ3QxqN_fb4PwY,1942
|
|
106
106
|
dara/core/visual/themes/definitions.py,sha256=m3oN0txs65MZepqjj7AKMMxybf2aq5fTjcTwJmHqEbk,2744
|
|
107
107
|
dara/core/visual/themes/light.py,sha256=-Tviq8oEwGbdFULoDOqPuHO0UpAZGsBy8qFi0kAGolQ,1944
|
|
108
|
-
dara_core-1.15.
|
|
109
|
-
dara_core-1.15.
|
|
110
|
-
dara_core-1.15.
|
|
111
|
-
dara_core-1.15.
|
|
112
|
-
dara_core-1.15.
|
|
108
|
+
dara_core-1.15.7.dist-info/LICENSE,sha256=r9u1w2RvpLMV6YjuXHIKXRBKzia3fx_roPwboGcLqCc,10944
|
|
109
|
+
dara_core-1.15.7.dist-info/METADATA,sha256=KaS0eBjQh9KonsbjctwyyDDLID4YArJoWJRqcCnGKJQ,7390
|
|
110
|
+
dara_core-1.15.7.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
111
|
+
dara_core-1.15.7.dist-info/entry_points.txt,sha256=H__D5sNIGuPIhVam0DChNL-To5k8Y7nY7TAFz9Mz6cc,139
|
|
112
|
+
dara_core-1.15.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|