Metadata-Version: 2.4
Name: fast_dash
Version: 0.2.14
Summary: Turn your Python functions into interactive web applications. Fast Dash is an innovative way to build and deploy your Python code as interactive apps with minimal changes to your original code.
License-Expression: MIT
License-File: LICENSE
Keywords: webdevelopment,python,machine-learning,data-science,data-visualization,dash
Author: Kedar Dabhadkar
Author-email: <kedar@fastdash.app>
Requires-Python: >=3.9,<3.14
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
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
Classifier: Programming Language :: Python :: 3.13
Provides-Extra: dev
Provides-Extra: doc
Provides-Extra: test
Requires-Dist: Pillow (>=9.2.0)
Requires-Dist: black ; extra == "test"
Requires-Dist: dash (>=2.11.0)
Requires-Dist: dash-bootstrap-components (>=2.0.0)
Requires-Dist: dash-iconify (>=0.1.2)
Requires-Dist: dash-mantine-components (>=1.0.0)
Requires-Dist: dash-socketio (>=1.1.1,<2.0.0)
Requires-Dist: dill (>=0.3.9,<0.4.0)
Requires-Dist: docstring-parser (>=0.15)
Requires-Dist: flake8 ; extra == "test"
Requires-Dist: flake8-docstrings ; extra == "test"
Requires-Dist: flask-socketio (>=5.5.1,<6.0.0)
Requires-Dist: griffe ; extra == "doc"
Requires-Dist: isort ; extra == "test"
Requires-Dist: livereload ; extra == "doc"
Requires-Dist: matplotlib (>=3.5.0)
Requires-Dist: mkdocs ; extra == "doc"
Requires-Dist: mkdocs-autorefs ; extra == "doc"
Requires-Dist: mkdocs-include-markdown-plugin ; extra == "doc"
Requires-Dist: mkdocs-jupyter ; extra == "doc"
Requires-Dist: mkdocs-material ; extra == "doc"
Requires-Dist: mkdocstrings-python ; extra == "doc"
Requires-Dist: pandas (>=1.0.0)
Requires-Dist: pre-commit ; extra == "dev"
Requires-Dist: pyreadline3 (>=3.5.4,<4.0.0)
Requires-Dist: pytest ; extra == "test"
Requires-Dist: pytest-cov ; extra == "test"
Requires-Dist: selenium ; extra == "test"
Requires-Dist: toml ; extra == "dev"
Requires-Dist: tox ; extra == "dev"
Requires-Dist: twine ; extra == "dev"
Requires-Dist: virtualenv ; extra == "dev"
Description-Content-Type: text/markdown

<p align="center">
  <a href="https://fastdash.app/"><img src="https://storage.googleapis.com/fast_dash/0.1.8/logo.png" alt="Fast Dash" width=300></a>
</p>
<p align="center">
    <em>Open source, Python-based tool to build prototypes lightning fast ⚡</em>
</p>
<p align="center">
<a href="https://pypi.python.org/pypi/fast_dash">
    <img src="https://img.shields.io/pypi/v/fast_dash?color=%2334D058&labelColor=black"
        alt = "Release Status">
</a>
<a href="https://github.com/dkedar7/fast_dash/actions">
    <img src="https://github.com/dkedar7/fast_dash/actions/workflows/release.yml/badge.svg?labelColor=black" alt="CI Status">
</a>
<a href="https://github.com/dkedar7/fast_dash/blob/main/LICENSE">
    <img src="https://img.shields.io/github/license/dkedar7/fast_dash?color=2334D058&labelColor=black" alt="MIT License">
</a>
<a href="https://docs.fastdash.app/">
    <img src="https://img.shields.io/badge/Docs-MkDocs-<COLOR>.svg?labelColor=black&color=%2334D058" alt="Documentation">
</a>
<a href="https://pepy.tech/project/fast-dash">
    <img src="https://static.pepy.tech/personalized-badge/fast-dash?period=total&units=international_system&left_color=black&right_color=brightgreen&left_text=Downloads" alt="Downloads">
</a>

<a href="https://codecov.io/gh/dkedar7/fast_dash" > 
 <img src="https://codecov.io/gh/dkedar7/fast_dash/graph/badge.svg?token=9QJvbeQ1g8"/> 
 </a>


</p>


---

* **Documentation**: [https://docs.fastdash.app](https://docs.fastdash.app)
* **Source code**: [github.com/dkedar7/fast_dash](https://github.com/dkedar7/fast_dash/)
* **Installation**: `pip install fast-dash`

---

Fast Dash is a Python module that makes the development of web applications fast and easy. It can build web interfaces for Machine Learning models or to showcase any proof of concept without the hassle of developing UI from scratch.

![FastDashDemo](https://storage.googleapis.com/fast_dash/0.2.6/FastDashDemo.png)

## Examples

With Fast Dash's decorator `@fastdash`, it's a breeze to deploy any Python function as a web app. Here's how to use it to write your first Fast Dash app:
```python
from fast_dash import fastdash

@fastdash
def text_to_text_function(input_text):
    return input_text

# * Running on http://127.0.0.1:8080/ (Press CTRL+C to quit)
```

And just like that, we have a completely functional interactive app!

Output:
![Simple example](https://storage.googleapis.com/fast_dash/0.2.7/Simple%20text%20to%20text.png)
---

Fast Dash can read all the function details, like its name, input and output types, docstring, and uses this information to infer which components to use.

For example, here's how to deploy an app that takes a string and an integer as inputs and returns some text.

```python
from fast_dash import fastdash

@fastdash
def display_selected_text_and_number(text: str, number: int) -> str:
    "Simply display the selected text and number"

    processed_text = f'Selected text is {text} and the number is {number}.'
    
    return processed_text

# * Running on http://127.0.0.1:8080/ (Press CTRL+C to quit)
```

Output:
![Simple example with multiple inputs](https://storage.googleapis.com/fast_dash/0.2.7/Simple%20example%202.png)

And with just a few more lines, we can add a title icon, subheader and other social branding details.

---

Output components can be arranged using a mosaic layout (ASCII art), inspired from Matplotlib's `subplot_mosaic` feature.

```python
from fast_dash import fastdash, UploadImage, Graph
import matplotlib.pyplot as plt

mosaic = """
AB
AC
"""

@fastdash(mosaic=mosaic, theme="BOOTSTRAP")
def multiple_output_components(start_date: datetime.date, # Adds a date component
                            upload_image: UploadImage, # Adds an upload component
                            fips: str = [List of FIPs]) # Adds a single select dropdown
                            -> (Graph, plt.Figure, plt.Figure): 
                            # Output components are a Plotly graph, and two figure components

    "Fast Dash allows using mosaic arrays to arrange output components"

    choropleth_map = ...
    histogram = ...
    radar_chart = ...
    
    return chloropleth_map, histogram, radar_chart

# * Running on http://127.0.0.1:8080/ (Press CTRL+C to quit)
```
![Simple example with multiple inputs](https://storage.googleapis.com/fast_dash/0.2.7/Multiple%20components%20using%20mosaic.png)

In just a few lines of code, you can also add a chat component.

![Simple chat](https://storage.googleapis.com/fast_dash/0.2.8/FD%20chat.png)

You can use your favorite Python libraries. Here's an example of an advanced geospatial application built using `geemap` and Google Earth Engine.

![Water spectral indices](https://storage.googleapis.com/fast_dash/0.2.8/FD%20water%20spectral%20indices.png)

## About

Read different ways to build Fast Dash apps and additional details by navigating to the [project documentation](https://docs.fastdash.app/).

### Key features

  Duild and deploy a web app by adding a decorator only.
- Components are inferred from function type hints. Allows using Dash components as type hints.
- Use multiple input and output components simultaneously.
- Build fast, share and iterate.

## Community

Fast Dash is built using [Plotly Dash](https://github.com/plotly/dash) and it's completely open-source.
