Skip to main content

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

Demo Usage

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit_keypress-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

streamlit_keypress-0.1.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for streamlit_keypress-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2721562660915b2b2e7ca48f094ec8ceaaef4b2c566ce55f3596e3033a9bdf3b
MD5 1f2224e6694ddddf0335279eeafc4071
BLAKE2b-256 aa153e9460fad93fb056caeb737be7ff86109ef83743bec68c7c0e5fdaa253e2

See more details on using hashes here.

File details

Details for the file streamlit_keypress-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_keypress-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ed8bfec09ef288b2ca392672e0ea8dcc133fa095752fd0af6e285389e6bb1a7
MD5 f266678e163900503a2e22b3dc7723f6
BLAKE2b-256 c552060abcb6cfdf6e262cb906492fae5fc32447ce70e436cf3293d222d0ab7e

See more details on using hashes here.

Supported by

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