streamlit_pages

Installation

$ pip install streamlit-pages

Features

  • Adding multiple pages to streamlit
  • Sharing specific pages

Usage

 import streamlit as st
 import streamlit_pages.streamlit_pages import MultiPage
def home():
    st.write("Welcome to home page")
    if st.button("Click Home"):
        st.write("Welcome to home page")


def about():
    st.write("Welcome to about page")
    if st.button("Click about"):
        st.write("Welcome to About page")


def contact():
    st.write("Welcome to contact page")
    if st.button("Click Contact"):
        st.write("Welcome to contact page")


# call app class object
app = MultiPage()
# Add pages
app.add_page("Home",home)
app.add_page("About",about)
app.add_page("Contact",contact)
app.run()
Alt text

Contributors

We welcome and recognize all contributions. You can see a list of current contributors in the contributors tab.

GitHub

GitHub - bvenkatesh-ai/streamlit_pages: Addons like multipages for streamlit webapp
Addons like multipages for streamlit webapp. Contribute to bvenkatesh-ai/streamlit_pages development by creating an account on GitHub.