Text input that renders on keyup
Project description
streamlit-keyup
If you're collecting text input from your users in your streamlit app, st.text_input
works well -- as long as you're happy with
waiting to get the response when they're finished typing.
But, what if you want to get the input out, and do something with it every time they type a new key (AKA "on keyup")?
Installation
pip install streamlit-keyup
Usage
from st_keyup import st_keyup
value = st_keyup("Enter a value")
# Notice that value updates after every key press
st.write(value)
# If you want to set a default value, you can pass one
with_default = st_keyup("Enter a value", value="Example")
# If you want to limit how often the value gets updated, pass `debounce` value, which
# will force the value to only update after that many milliseconds have passed
with_debounce = st_keyup("Enter a value", debounce=500)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
streamlit-keyup-0.1.8.tar.gz
(62.0 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_keyup-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bdf111dcfce7685203544a1c987fb366194e409fa21cb03f308bd0ef745aaa1 |
|
MD5 | f18d956e042f6971015ec28360fc4500 |
|
BLAKE2b-256 | 8f534ac0c7e8518aee04521729800eaed4829df6f8e0425dcf03abf4379bcc55 |