Releases: Asaurus1/streamlit-qs
Releases · Asaurus1/streamlit-qs
v0.3.2
v0.3.0
Update library for streamlit 1.30.0+
- Uses new st.query_params API
- Add update_qs and add_qs callbacks to example page. Allows all X_qs_callback functions to take no arguments by default.
- Resolves an issue with stqs.multiselect_qs where session_state would get updated even when no elements changed. Now session_state is only updated if the list of options we get from the query string doesn't match what is already in session_state.
v0.2.0
Update library for streamlit 1.27.0+
- Allow None default values/indices
- Widgets only pull values from the query string when they are first loaded on a per-session basis (whenever there isn't another value in session_state already), leading to a user experience more consistent with the standard streamlit widgets.
- add/update_qs_callback functions are renamed to better match what they actually do
- clear_qs_callback accepts optional arguments to only clear a certain subset of keys from the URL.
- string->value deserialization is inferred for some common OptionSequence types (ints, floats, Enums)
- Warnings are shown by default when using non-str OptionSequence types without an unformat_func (inferred or explicit)
- Reorganized the example.py demo
v0.1.2
- Minor fixes to function type annotations
- Minor improvements to demo site (example.py)
- Additional unit tests for some of the private functions.
Install with pip install streamlit-qs
.
Full Changelog: v0.1.1...v0.1.2