Skip to main content

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

import streamlit as st
from st_keyup import st_keyup

value = st_keyup("Enter a value", key="0")

# 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", key="1")

# 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, key="2")

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

streamlit_keyup-0.4.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_keyup-0.4.0.tar.gz.

File metadata

  • Download URL: streamlit_keyup-0.4.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for streamlit_keyup-0.4.0.tar.gz
Algorithm Hash digest
SHA256 193c7fcd204695375024612e0506f3398421a1bc298830e45275e310352d8709
MD5 95d1b5c27e2905b6d1dbc9a1b1c82af6
BLAKE2b-256 10a2cabf198f57f00780c9a51120027ba5d7b5496234dd097950e906a2eb5502

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_keyup-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 40f888368060acb83e0d4e68a3b4e430a9fec7bf6c1187024fe85dfdba00b6e8
MD5 46d39b9d522a47aef181d3b6526ee919
BLAKE2b-256 ea5a50ccfc560020a1db45a407ba5e6e8c4552365c7b6a3aa1cb3e08c3902edb

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.0

2 files

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.0

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page