A simple framework in python to create multi page web application using streamlit.
- Clone the repository:
$ git clone git@github.com:upraneelnihar/streamlit-multiapps
$ cd streamlit-multiapps
- Install dependencies:
$ pip install -r requirements.txt
- Start the application:
streamlit run app.py
- Add a new python file in
apps/
folder with a function namedapp
.
# apps/new_app.py
import streamlit as st
def app():
st.title('New App')
- Now add it to
app.py
from apps import newapp # import your app modules here
app = MultiApp()
# Add all your application here
app.add_app("New App", newapp.app)
That's it your new app is added to your application and is live in default browser.