An all-in-one place, to find complex or just natively unavailable components on streamlit.
Low maintenance activity. Last release 15 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
Consider insteadstreamlit-extrasPythie’s Index: 62207.5K downloads/moCompare →
pip install extra-streamlit-componentsExtra-Streamlit-Components
An all-in-one place, to find complex or just not available components by default on streamlit.
Explained in details in my book Web Application Development with Streamlit
Components
Firstly, add import extra_streamlit_components as stx
-
Router
-
Route to specific pages in Streamlit. This leverages the use of query parameters to make custom routes in your Streamlit application. For best experience, make sure to include the st.cache_resource function decorator while initializing the Router object.
@st.cache_resource(hash_funcs={"_thread.RLock": lambda _: None}) def init_router(): return stx.Router({"/home": home, "/landing": landing}) def home(): return st.write("This is a home page") def landing(): return st.write("This is the landing page") router = init_router() router.show_route_view() c1, c2, c3 = st.columns(3) with c1: st.header("Current route") current_route = router.get_url_route() st.write(f"{current_route}") with c2: st.header("Set route") new_route = st.text_input("route") if st.button("Route now!"): router.route(new_route) with c3: st.header("Session state") st.write(st.session_state) -
Cookie Manager
A browser cookie store and manager. Built on universal-cookie with the capability of using its options
Security Note: In shared domains such as share.streamlit.io, other web developers can have access to the cookies you set and the same goes for you. This is not to be treaded as security bug but a circumstance the developer need to be aware of.





