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.1.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.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file streamlit_keypress-0.1.1.tar.gz.

File metadata

  • Download URL: streamlit_keypress-0.1.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for streamlit_keypress-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b018784bf83af254ba0744826bb0d7cb31ac55cd5dbc896da74407d46ba3c346
MD5 35e3d3e54aee8da5b22c67777d38d9a0
BLAKE2b-256 a823e354a9ea9e3effcdf88e876edab106350ff108f596a1eb7f64157e3dd1e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_keypress-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf6c6a4e044d5192e7a4a4a7ee206e5424fbc16e8f4e34faa8a8968ea24356f6
MD5 a9d33a9315da35c5b7123947bb7e8c1e
BLAKE2b-256 9b9fa41bfc351f56c9ea9016eb2b633d64148b4616a78923b7cbb66c4b572ddc

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