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.7.tar.gz
(61.6 kB
view hashes)
Built Distribution
Close
Hashes for streamlit_keyup-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 851b6da2f82ea3127140ad3c729d299d5b131dd9d602f0ae026844f2cd0d302b |
|
MD5 | 9e478c3398c97c61d70554e3ae032265 |
|
BLAKE2b-256 | 50e19a1eecd89003b3d807dbbe059d394e33ae2bfcc387ce148cd2d2b6c01bf3 |