Skip to content

bvenkatesh-ai/streamlit_pages

Repository files navigation

streamlit_pages

Installation

$ pip install streamlit-pages

Features

  • Adding multiple pages to streamlit
  • Sharing specific pages

Usage

 import streamlit as st
 from 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.

Credits

About

Addons like multipages for streamlit webapp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages