vikinganalytics / daeploy-issues

0 stars 0 forks source link

Native streamlit integration #50

Open zanpak opened 3 years ago

OskarLiew commented 3 years ago

Streamlit integration

Syntax

To enable gui for an entrypoint

@service.entrypoint(ui=True)
def ui_entrypoint(data: str):
    ...

Implementation

If there are any ui=True entrypoints we generate a base streamlit app and add components based on the input and output types of the entrypoint. We then connect the app to the service API.

This is too much for now

OskarLiew commented 3 years ago

Make it possible for a user to write a dashboard.py file that when we detect it we start as a streamlit app and routes to a URL. Use the API to talk between dashboard and service