A small library to add extra functionality on top of streamlit's st.query_params API
Project description
QueryParams Widgets 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, to install the latest source:
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.
Source Distribution
Built Distribution
File details
Details for the file streamlit_qs-0.3.3.tar.gz
.
File metadata
- Download URL: streamlit_qs-0.3.3.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.15.2 CPython/3.12.3 Linux/6.5.0-35-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aac40b8fd7f20b5393658576a40de2bfef1ffbab5d9dc1ec145038b992d1d15b |
|
MD5 | 69890d901ffe76ceb4aa2c38d74b026b |
|
BLAKE2b-256 | a225a9d9ebe4f7f4a1c2c1c4f8d43036ebe7489d7cb90afefbed8a182c17af52 |
File details
Details for the file streamlit_qs-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: streamlit_qs-0.3.3-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.15.2 CPython/3.12.3 Linux/6.5.0-35-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31c6e0e4f8d31ba7e799c0445b2f33f38fcde2814db53c696d84faab444de8cf |
|
MD5 | c913b44b5bc318d2cec7751d072d6b01 |
|
BLAKE2b-256 | f0be993d59a2907f5e62f417bbe75e157c0c02baa76e90dc4457e4469c45cf53 |