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

Uploaded Python 3

File details

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

File metadata

  • Download URL: streamlit_keypress-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a1d2f40f8e99831d3049b0d43c0ef1edeed65fdfed72c00aef15ff2040edf9ae
MD5 e56d2d8a80e7bbe3333ac59583c05a85
BLAKE2b-256 9eab97c558973f36979bcd8b5e9a37f8c9e6f1f1d208b168948e3bc565ed6fe1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streamlit_keypress-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc3abb77ebcaf0d6d528836fbda5225b7e115c447372a1603ca7eaae86c71db6
MD5 637fc82a3c054291c020c0631641aa56
BLAKE2b-256 fad59cf9c7a6529da46ffdfdf5602c12b35c4a79b1c410892db6024ea5fb7f51

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