@darajs/core 1.0.0-a.1 → 1.0.0
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.
- package/README.md +83 -7
- package/dist/assets/dara-dark.svg +20 -0
- package/dist/assets/dara-light.svg +15 -0
- package/dist/components/side-bar-frame/side-bar-frame.d.ts.map +1 -1
- package/dist/components/side-bar-frame/side-bar-frame.js +10 -1
- package/dist/components/side-bar-frame/side-bar-frame.js.map +1 -1
- package/dist/components/top-bar-frame/top-bar-frame.d.ts.map +1 -1
- package/dist/components/top-bar-frame/top-bar-frame.js +19 -4
- package/dist/components/top-bar-frame/top-bar-frame.js.map +1 -1
- package/dist/{dara_core-1.0.0a1-py3-none-any.whl → dara_core-1.0.0-py3-none-any.whl} +0 -0
- package/dist/umd/dara.core.umd.js +257 -143
- package/package.json +9 -9
- package/dist/assets/login-background.svg +0 -11
- package/dist/assets/logo.svg +0 -12
package/README.md
CHANGED
|
@@ -1,7 +1,83 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
# Dara Application Framework
|
|
2
|
+
|
|
3
|
+
<picture>
|
|
4
|
+
<source srcset="https://github.com/causalens/dara/blob/master/img/dara_dark.svg?raw=true" media="(prefers-color-scheme: dark)">
|
|
5
|
+
<img src="https://github.com/causalens/dara/blob/master/img/dara_light.svg?raw=true" alt="Dara Logo">
|
|
6
|
+
</picture>
|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
[](https://www.apache.org/licenses/LICENSE-2.0)
|
|
10
|
+
[](https://pypi.org/project/dara-core/)
|
|
11
|
+
[](https://pypi.org/project/dara-core/)
|
|
12
|
+
[](https://www.npmjs.com/package/@darajs/components)
|
|
13
|
+
|
|
14
|
+
### Build decision apps in Python
|
|
15
|
+
|
|
16
|
+
_Tap into the power of causality by transforming data into interactive graphs and applications_
|
|
17
|
+
|
|
18
|
+
Dara is a dynamic application framework designed for creating interactive web apps with ease, all in pure Python. Over the past two years, Dara has fueled the development of hundreds of apps, now widely used and appreciated by both our customers and our in-house teams!
|
|
19
|
+
|
|
20
|
+
## Quickstart
|
|
21
|
+
|
|
22
|
+
To get started with Dara, you can use the `create-dara-app` CLI tool to create a new app.
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install create-dara-app
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
You can also use [`pipx`](https://pypa.github.io/pipx/) to install the CLI tool in an isolated environment.
|
|
29
|
+
|
|
30
|
+
Then simply run the following command to create a new app.
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
create-dara-app
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
By default the CLI will attempt to scaffold your project with [`poetry`](https://python-poetry.org/) but will fall back to `pip` if `poetry` is not present. This can be overriden with `--packaging pip` or `--packaging poetry` flag.
|
|
37
|
+
|
|
38
|
+
After the project is created, you can run it with:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
cd my-dara-app
|
|
42
|
+
# with poetry installation
|
|
43
|
+
poetry run dara start
|
|
44
|
+
# with pip installation
|
|
45
|
+
dara start
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+

|
|
49
|
+
|
|
50
|
+
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:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
python -m pip install --upgrade pip
|
|
54
|
+
pip install --user --upgrade setuptools
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
For more details check out our [Documentation](https://dara.causalens.com/docs/category/build-dara-apps).
|
|
58
|
+
|
|
59
|
+
## Dara App examples
|
|
60
|
+
|
|
61
|
+
Explore some of our favorite apps - a great way of getting started and getting to know the framework!
|
|
62
|
+
|
|
63
|
+
| Dara App | Description |
|
|
64
|
+
| -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
65
|
+
|  | Demonstrates how to use incorporate a LLM chat box into your decision app to understand model insights |
|
|
66
|
+
|  | 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 |
|
|
67
|
+
|  | 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. |
|
|
68
|
+
|
|
69
|
+
Check out our [App Gallery](https://dara.causalens.com/gallery) for more inspiration!
|
|
70
|
+
|
|
71
|
+
## Repository introduction
|
|
72
|
+
|
|
73
|
+
This repository covers the Dara Application Framework first-party packages.
|
|
74
|
+
|
|
75
|
+
- `dara-core`: The core of the Dara framework, this includes the core framework code for creating applications.
|
|
76
|
+
- `dara-components`: Components for the Dara Framework.
|
|
77
|
+
- `create-dara-app`: A CLI tool for creating new Dara applications.
|
|
78
|
+
|
|
79
|
+
More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/master/CONTRIBUTING.md) file.
|
|
80
|
+
|
|
81
|
+
## License
|
|
82
|
+
|
|
83
|
+
Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/master/LICENSE).
|