Skip to main content

A small library to add extra functionality on top of streamlit's experimental_[get/set]_query_string 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.

A note about the experimental API:

Query string interaction within Streamlit is currently experimental, and the API is subject to change at any time This library works with v1.23.1 of Streamlit but may not be forward compatible with future versions when the experimental query string API is either A) removed, B) made standard, or C) modified in some incompatible way.

Please submit an issue if you encounter compatibility issues with future versions of Streamlit.

Installation

First install Streamlit (of course!) then pip-install this library:

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.

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

streamlit-qs-0.1.1.tar.gz (14.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page