Skip to main content

Build Machine Learning prototypes web applications lightning fast.

Project description

Fast Dash

Open source, Python-based tool to build prototypes lightning fast ⚡

Release Status CI Status MIT License Documentation Downloads



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.

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:

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

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.

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

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.

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

About

Read different ways to build Fast Dash apps and additional details by navigating to the project documentation.

Key features

  • Deploy an app just by adding a decorator
  • 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 and it's completely open-source.

Citation

Please cite Fast Dash it if you use it in your work.

@software{Kedar_Dabhadkar_Fast_Dash,
author = {Kedar Dabhadkar},
title = {{Fast Dash}}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fast_dash-0.2.3.tar.gz (50.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fast_dash-0.2.3-py3-none-any.whl (42.7 kB view details)

Uploaded Python 3

File details

Details for the file fast_dash-0.2.3.tar.gz.

File metadata

  • Download URL: fast_dash-0.2.3.tar.gz
  • Upload date:
  • Size: 50.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for fast_dash-0.2.3.tar.gz
Algorithm Hash digest
SHA256 bf931f63d97b55d816e59c12ddea881a49359056e81e0bba968f8898b4c9c9c3
MD5 1c01d4acd0c5306c5f602df1da6b0e0f
BLAKE2b-256 aca691b8d835e32a4391fe6eb4a9fd7c6cf6bc34cc5528c39641c720c653013e

See more details on using hashes here.

File details

Details for the file fast_dash-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: fast_dash-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 42.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for fast_dash-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 576cb235a391cc3589512030d7be3425719d46c57db4fef774518e0a88daca31
MD5 909b85e5c9245b0c0638cc3a9be0be8a
BLAKE2b-256 af5bcae092501af4ab9b622f8d45902e5585ba4928dd948cb476f6192795e12a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page