A small library to add extra functionality on top of streamlit's st.query_params API
Project description
Query String functions for Streamlit
This app shows off the Query String Utility Functions for Streamlit.
The functions in this library allow you to easily create "permalink-like" functionality in your application, This can let users to share links with others that will populate streamlit with the same set of input values that they were using. Or you can use the query string to pass data into your streamlit application from another website or program.
Installation
First install Streamlit (of course!) then install this library:
pip install streamlit-qs
or
pip install git+https://github.com/Asaurus1/streamlit-qs.git@main
Example
import streamlit as st
import streamlit_qs as stqs
st.markdown("[Click this URL](?input_some_text=Hello+World)")
stqs.text_input_qs("Enter Some Text", key="input_some_text")
For more examples, including :sparkles:customization options:sparkles:, see the demo app.
Version Compatibility
For Streamlit v1.29.0 or below use release v0.2.0 of this app For Streamlit v1.30.0 or above, use the latest released version of this app above v0.2.0
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.