Skip to main content

Build Machine Learning prototypes web applications lightning fast.

Project description

Overview

Release Status CI Status MIT License Documentation

Fast Dash logo

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



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

Fast Dash logo

Simple example

Run your app with three simple steps:

from fast_dash import FastDash
from fast_dash.Components import Text

# Step 1: Define your model inference
def text_to_text_function(input_text):
    return input_text

# Step 2: Specify the input and output components
app = FastDash(callback_fn=text_to_text_function, 
                inputs=Text, 
                outputs=Text, 
                title='App title')

# Step 3: Run your app!
app.run()

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

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

Output:

Simple example


In a similar way, we can add multiple input as well as output components at the same time.

from fast_dash import FastDash
from fast_dash.Components import Text, Slider

# Step 1: Define your model inference
def text_to_text_function(input_text, slider_value):
    processed_text = f'{input_text}. Slider value is {slider_value}.'
    return processed_text

# Step 2: Specify the input and output components
app = FastDash(callback_fn=text_to_text_function, 
                inputs=[Text, Slider], 
                outputs=Text,
                title='App title')

# Step 3: Run your app!
app.run()

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

Simple example with multiple inputs

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

...

app = FastDash(callback_fn=text_to_text_function, 
                inputs=[Text, Slider], 
                outputs=Text,
                title='App title',
                title_image_path='https://raw.githubusercontent.com/dkedar7/fast_dash/main/docs/assets/favicon.jpg',
                subheader='Build a proof-of-concept UI for your Python functions lightning fast.',
                github_url='https://github.com/dkedar7/fast_dash',
                linkedin_url='https://linkedin.com/in/dkedar7',
                twitter_url='https://twitter.com/dkedar')

...

Output:

Simple example with multiple inputs and details


Key features

  • Launch an app only by specifying the types of inputs and outputs.
  • Multiple input and output components simultaneously.
  • Flask-based backend allows easy scalability and customizability.
  • Build fast and iterate.

Some features are coming up in future releases:

  • More input and output components.
  • Deploy to Heroku and Google Cloud.
  • and many more.

Community

Fast Dash is built on open-source. You are encouraged to share your own projects, which will be highlighted on a common community gallery that's upcoming. Join us on Discord.

Credits

Fast Dash is inspired from gradio and built using Plotly Dash. Dash's Flask-based backend enables Fast Dash apps to scale easily and makes them highly compatibility with other integration services. Many documentation ideas and concepts are borrowed from FastAPI's docs project template.

The project template was created with Cookiecutter and zillionare/cookiecutter-pypackage.

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.1.5.tar.gz (38.2 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.1.5-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fast_dash-0.1.5.tar.gz
  • Upload date:
  • Size: 38.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for fast_dash-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6317ebccc6a40e7682340bf335e989e633c8e964fa89103c5c01d74947840d87
MD5 afb8f277727ce8f22976a6bf792e6dd7
BLAKE2b-256 cdba664b08e5e4087a10d07722fa484203aa12db2a4477f40b05fe8ad4fb753b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fast_dash-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 33.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for fast_dash-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 30a89aa766e8e1a86b690639f4444daefe95457c4e5cd9eb39129efd532729c3
MD5 b96aa5c0ebc198007e986fc555162652
BLAKE2b-256 84dd211db94c1da4131adc7a1a6dda12c044c5076f583d490325c85dd65439c3

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