Skip to main content

Text input that renders on keyup

Project description

streamlit-keyup

PyPI version PyPI downloads GitHub Code style: Black

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")?

Open in Streamlit

filtering

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


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.9.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

streamlit_keyup-0.1.9-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file streamlit-keyup-0.1.9.tar.gz.

File metadata

  • Download URL: streamlit-keyup-0.1.9.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for streamlit-keyup-0.1.9.tar.gz
Algorithm Hash digest
SHA256 701cc517d200e6ab62c9f2338e86384ba31a778427e0cf14e45871ba8a976b09
MD5 2d219d81e6d4e342d1c0faa654b49ad3
BLAKE2b-256 4a2984259df91fe5b01d6f34d0f377387d6784ffc1846dc0538c5daa61b3c30b

See more details on using hashes here.

Provenance

File details

Details for the file streamlit_keyup-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_keyup-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 7984317ba9b3e5e77e9a58bab7083b46482e906d09f619b815c2639d09db1ad9
MD5 898bbd2bb21e8f7573e0a64d7ea335fb
BLAKE2b-256 34c7df4bd71efe7fa01413d3daa6a7811af9bf61b583c9eaf2cba0f00df8cbab

See more details on using hashes here.

Provenance

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