Metadata-Version: 2.1
Name: dara-core
Version: 1.20.1a3
Summary: Dara Framework Core
Home-page: https://dara.causalens.com/
License: Apache-2.0
Author: Sam Smith
Author-email: sam@causalens.com
Requires-Python: >=3.9.0,<3.13.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Provides-Extra: all
Requires-Dist: aiorwlock (>=1.4.0,<2.0.0)
Requires-Dist: anyio (>=4.0.0)
Requires-Dist: async-asgi-testclient (>=1.4.11,<2.0.0)
Requires-Dist: cachetools (>=5.0.0,<6.0.0)
Requires-Dist: certifi (>=2024.7.4)
Requires-Dist: click (==8.1.3)
Requires-Dist: colorama (>=0.4.6,<0.5.0)
Requires-Dist: create-dara-app (==1.20.1-alpha.3)
Requires-Dist: croniter (>=1.0.15,<3.0.0)
Requires-Dist: cryptography (>=42.0.4)
Requires-Dist: dara-components (==1.20.1-alpha.3) ; extra == "all"
Requires-Dist: exceptiongroup (>=1.1.3,<2.0.0)
Requires-Dist: fastapi (>=0.115.0,<0.116.0)
Requires-Dist: fastapi_vite_dara (==0.4.0)
Requires-Dist: h11 (>=0.16.0)
Requires-Dist: httpx (>=0.23.0)
Requires-Dist: jinja2 (>=2.1.1,<3.2.0)
Requires-Dist: jsonpatch (>=1.33)
Requires-Dist: odfpy
Requires-Dist: openpyxl
Requires-Dist: packaging (>=23.1)
Requires-Dist: pandas (>=1.1.0,<3.0.0)
Requires-Dist: prometheus-client (>=0.14.1,<0.15.0)
Requires-Dist: pyarrow
Requires-Dist: pydantic (>=2.10.0,<3.0.0)
Requires-Dist: pydantic-settings (>=2.8.1,<3.0.0)
Requires-Dist: pyjwt (>=2.3.0,<3.0.0)
Requires-Dist: python-dotenv (>=0.19.2)
Requires-Dist: python-multipart (>=0.0.7)
Requires-Dist: pyxlsb
Requires-Dist: responses (>=0.18.0,<0.19.0)
Requires-Dist: tblib (>=1.7.0,<2.0.0)
Requires-Dist: toml (>=0.10.2,<0.11.0)
Requires-Dist: typing-extensions (>=4.5.0)
Requires-Dist: uvicorn[standard] (>=0.23.1)
Requires-Dist: xlrd
Project-URL: Repository, https://github.com/causalens/dara
Description-Content-Type: text/markdown

# Dara Application Framework

<img src="https://github.com/causalens/dara/blob/v1.20.1-alpha.3/img/dara_light.svg?raw=true">

![Master tests](https://github.com/causalens/dara/actions/workflows/tests.yml/badge.svg?branch=master)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
[![PyPI](https://img.shields.io/pypi/v/dara-core.svg?color=dark-green)](https://pypi.org/project/dara-core/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/dara-core.svg?color=dark-green)](https://pypi.org/project/dara-core/)
[![NPM](https://img.shields.io/npm/v/@darajs/components.svg?color=dark-green)](https://www.npmjs.com/package/@darajs/components)

### Build decision apps in Python

_Tap into the power of causality by transforming data into interactive graphs and applications_

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!

## Quickstart

To get started with Dara, you can use the `create-dara-app` CLI tool to create a new app.

```bash
pip install create-dara-app
```

You can also use [`pipx`](https://pypa.github.io/pipx/) to install the CLI tool in an isolated environment.

Then simply run the following command to create a new app.

```bash
create-dara-app
```

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.

After the project is created, you can run it with:

```bash
cd my-dara-app

# with poetry installation
poetry run dara start

# with pip installation make sure to activate the new virtual environment
source .venv/bin/activate
dara start
```

![Dara App](https://github.com/causalens/dara/blob/v1.20.1-alpha.3/img/components_gallery.png?raw=true)

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:

```bash
python -m pip install --upgrade pip
pip install --user --upgrade setuptools
```

For more details check out our [Documentation](https://dara.causalens.com/docs/category/build-dara-apps).

## Dara App examples

Explore some of our favorite apps - a great way of getting started and getting to know the framework!

| Dara App                                                                                                 | Description                                                                                                                                                                                                       |
| -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![Large Language Model](https://github.com/causalens/dara/blob/v1.20.1-alpha.3/img/llm.png?raw=true)              | Demonstrates how to use incorporate a LLM chat box into your decision app to understand model insights                                                                                                            |
| ![Plot Interactivity](https://github.com/causalens/dara/blob/v1.20.1-alpha.3/img/plot_interactivity.png?raw=true) | 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                                                |
| ![Graph Editor](https://github.com/causalens/dara/blob/v1.20.1-alpha.3/img/graph_viewer.png?raw=true)             | 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. |

Check out our [App Gallery](https://dara.causalens.com/gallery) for more inspiration!

## Repository introduction

This repository covers the Dara Application Framework first-party packages.

- `dara-core`: The core of the Dara framework, this includes the core framework code for creating applications.
- `dara-components`: Components for the Dara Framework.
- `create-dara-app`: A CLI tool for creating new Dara applications.

And the supporting UI packages and tools.

- `eslint-config` - base ESLint configuration
- `prettier-config` - base Prettier configuration
- `stylelint-config` - base Stylelint configuration
- `styled-components` - styled-components theme
- `ui-causal-graph-editor` - causal graph editor component
- `ui-code-editor` - code editor component
- `ui-components` - base UI components
- `ui-hierarchy-viewer` - hierarchy viewer component
- `ui-icons` - icon components for Dara packages
- `ui-notifications` - notification components
- `ui-utils` - miscellaneous utility functions
- `ui-widgets` - widget components

More information on the repository structure can be found in the [CONTRIBUTING.md](https://github.com/causalens/dara/blob/v1.20.1-alpha.3/CONTRIBUTING.md) file.

## License

Dara is open-source and licensed under the [Apache 2.0 License](https://github.com/causalens/dara/blob/v1.20.1-alpha.3/LICENSE).

