A Streamlit component to capture keyboard events
Project description
Streamlit Keypress
A Streamlit component that captures keyboard events in your Streamlit app.
Installation
pip install streamlit-keypress
Usage
import streamlit as st
from streamlit_keypress import key_press_events
st.title("Keyboard Event Listener")
key = key_press_events()
if key:
st.write(f"You pressed: {key}")
Features
- Captures keyboard events throughout your Streamlit app
- Returns the key that was pressed
- Simple and lightweight
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file streamlit_keypress-0.1.0.tar.gz.
File metadata
- Download URL: streamlit_keypress-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2721562660915b2b2e7ca48f094ec8ceaaef4b2c566ce55f3596e3033a9bdf3b
|
|
| MD5 |
1f2224e6694ddddf0335279eeafc4071
|
|
| BLAKE2b-256 |
aa153e9460fad93fb056caeb737be7ff86109ef83743bec68c7c0e5fdaa253e2
|
File details
Details for the file streamlit_keypress-0.1.0-py3-none-any.whl.
File metadata
- Download URL: streamlit_keypress-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ed8bfec09ef288b2ca392672e0ea8dcc133fa095752fd0af6e285389e6bb1a7
|
|
| MD5 |
f266678e163900503a2e22b3dc7723f6
|
|
| BLAKE2b-256 |
c552060abcb6cfdf6e262cb906492fae5fc32447ce70e436cf3293d222d0ab7e
|