streamlit-hotkeys


Namestreamlit-hotkeys JSON
Version 0.5.0 PyPI version JSON
download
home_pageNone
SummaryKeyboard hotkeys for Streamlit (Ctrl/Cmd/Alt/Shift combos) with edge-triggered events.
upload_time2025-08-10 13:42:18
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseMIT License Copyright (c) 2025 Your Name Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords streamlit hotkeys shortcuts keyboard keypress component
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Streamlit Hotkeys

[![PyPI](https://img.shields.io/pypi/v/streamlit-hotkeys.svg)](https://pypi.org/project/streamlit-hotkeys/)
[![Python Versions](https://img.shields.io/pypi/pyversions/streamlit-hotkeys.svg)](https://pypi.org/project/streamlit-hotkeys/)
[![License](https://img.shields.io/pypi/l/streamlit-hotkeys.svg)](LICENSE)
[![Wheel](https://img.shields.io/pypi/wheel/streamlit-hotkeys.svg)](https://pypi.org/project/streamlit-hotkeys/)
![Streamlit Component](https://img.shields.io/badge/streamlit-component-FF4B4B?logo=streamlit\&logoColor=white)
[![Downloads](https://static.pepy.tech/badge/streamlit-hotkeys)](https://pepy.tech/project/streamlit-hotkeys)

**Streamlit Hotkeys** lets you wire up fast, app-wide keyboard shortcuts in seconds. Bind `Ctrl/Cmd/Alt/Shift + key` to actions and get **edge-triggered** events with a clean, Pythonic API (`if hotkeys.pressed("save"):` or multiple `on_pressed(...)` callbacks). It runs through a **single invisible manager**—no widget clutter, no flicker—and can scope reruns to the **whole page or just a fragment**. Reuse the same `id` across combos (e.g., Cmd+K **or** Ctrl+K → `palette`), block browser defaults like `Ctrl/Cmd+S`, and use physical key codes for layout-independent bindings.

---

## Installation

```bash
pip install streamlit-hotkeys
```

## Quick start

```python
import streamlit as st
import streamlit_hotkeys as hotkeys

# Activate early (top of the script)
hotkeys.activate([
    hotkeys.hk("palette", "k", meta=True),              # Cmd+K (mac)
    hotkeys.hk("palette", "k", ctrl=True),              # Ctrl+K (win/linux)
    hotkeys.hk("save", "s", ctrl=True, prevent_default=True),  # Ctrl+S
])

st.title("Hotkeys quick demo")

if hotkeys.pressed("palette"):
    st.write("Open palette")

if hotkeys.pressed("save"):
    st.write("Saved!")

st.caption("Try Cmd/Ctrl+K and Ctrl+S")
```

## Features

* Single invisible **manager** (one iframe per page/fragment)
* Activate early; CSS auto-collapses the iframe to avoid flicker
* **Edge-triggered across reruns**, and **non-consuming within a rerun**
  (you can call `pressed(id)` multiple times and each will see `True`)
* **Callbacks API:** register multiple `on_pressed(id, ...)` handlers (deduped, run in order)
* Each shortcut match **triggers a rerun** — whole page or just the fragment where the manager lives
* Bind single keys or combos (`ctrl`, `alt`, `shift`, `meta`)
* Reuse the **same `id`** across bindings (e.g., Cmd+K **or** Ctrl+K → `palette`)
* `prevent_default` to block browser shortcuts (e.g., Ctrl/Cmd+S)
* Layout-independent physical keys via `code="KeyK"` / `code="Digit1"`
* `ignore_repeat` to suppress repeats while a key is held
* Built-in legend: add `help="..."` in `hk(...)` and call `hotkeys.legend()`
* Multi-page / multi-manager friendly via `key=`
* Optional `debug=True` to log matches in the browser console

## API

### `hk(...)` — define a binding

```python
hk(
  id: str,
  key: str | None = None,           # e.g., "k", "Enter", "ArrowDown"
  *,
  code: str | None = None,          # e.g., "KeyK" (if set, 'key' is ignored)
  alt: bool | None = False,         # True=require, False=forbid, None=ignore
  ctrl: bool | None = False,
  shift: bool | None = False,
  meta: bool | None = False,
  ignore_repeat: bool = True,
  prevent_default: bool = False,
  help: str | None = None,          # optional text shown in legend
) -> dict
```

Defines one shortcut. You may reuse the **same `id`** across multiple bindings (e.g., Cmd+K **or** Ctrl+K → `palette`). Use `code="KeyK"` for layout-independent physical keys.

### `activate(*bindings, key="global", debug=False) -> None`

Registers bindings and renders the single invisible manager. Accepted forms:

* Positional `hk(...)` dicts
* A single list/tuple of `hk(...)` dicts
* A mapping: `id -> spec` **or** `id -> [spec, spec, ...]`

Notes: call **as early as possible** on each page/fragment. The `key` scopes events; if the manager lives inside a fragment, only that fragment reruns on a match. `debug=True` logs matches in the browser console.

### `pressed(id, *, key="global") -> bool`

Returns `True` **once per new key press** (edge-triggered across reruns). Within the **same rerun**, you can call `pressed(id)` multiple times in different places and each will see `True`.

### `on_pressed(id, callback=None, *, key="global", args=(), kwargs=None)`

Registers a callback to run **once per key press**. Multiple callbacks can be registered for the same `id` (deduped across reruns). You can use decorator or direct form. Callbacks run **before** any subsequent `pressed(...)` checks in the same rerun.

### `legend(*, key="global") -> None`

Renders a grouped list of shortcuts for the given manager key. Bindings that share the same `id` are merged; the first non-empty `help` string per `id` is shown.

## Examples

### Basic: simple hotkeys with `if ... pressed(...)`

```python
import streamlit as st
import streamlit_hotkeys as hotkeys

st.title("Basic hotkeys")

hotkeys.activate([
    hotkeys.hk("hello", "h"),     # press H
    hotkeys.hk("enter", "Enter"), # press Enter
])

if hotkeys.pressed("hello"):
    st.write("Hello 👋")

if hotkeys.pressed("enter"):
    st.write("You pressed Enter")
```

### Cross-platform binding (same `id` for Cmd+K / Ctrl+K)

```python
import streamlit as st
import streamlit_hotkeys as hotkeys

st.title("Cross-platform palette (Cmd/Ctrl+K)")

hotkeys.activate([
    hotkeys.hk("palette", "k", meta=True),  # macOS
    hotkeys.hk("palette", "k", ctrl=True),  # Windows/Linux
])

if hotkeys.pressed("palette"):
    st.success("Open command palette")
```

### Block browser default (Ctrl/Cmd+S)

```python
import streamlit as st
import streamlit_hotkeys as hotkeys

st.title("Prevent default on Ctrl/Cmd+S")

hotkeys.activate([
    hotkeys.hk("save", "s", ctrl=True, prevent_default=True),  # Ctrl+S
    hotkeys.hk("save", "s", meta=True,  prevent_default=True), # Cmd+S
])

if hotkeys.pressed("save"):
    st.success("Saved (browser Save dialog was blocked)")
```

### Shortcuts Legend (dialog)

```python
import streamlit as st
import streamlit_hotkeys as hotkeys

st.title("Legend example")

hotkeys.activate({
    "palette": [
        {"key": "k", "meta": True,  "help": "Open command palette"},
        {"key": "k", "ctrl": True},
    ],
    "save": {"key": "s", "ctrl": True, "prevent_default": True, "help": "Save document"},
}, key="global")

@st.dialog("Keyboard Shortcuts")
def _shortcuts():
    hotkeys.legend()  # grouped legend (uses help=...)

if hotkeys.pressed("palette"):
    _shortcuts()

st.caption("Press Cmd/Ctrl+K to open the legend")
```

### Fragment-local reruns (only the fragment updates)

```python
import streamlit as st
import streamlit_hotkeys as hotkeys

st.title("Fragment-local rerun")

st.write("Outside the fragment: no rerun on Ctrl+S")

@st.fragment
def editor_panel():
    hotkeys.activate([hotkeys.hk("save", "s", ctrl=True)], key="editor")
    st.text_area("Document", height=120, key="doc")
    if hotkeys.pressed("save", key="editor"):
        st.success("Saved inside fragment only")

editor_panel()
```

### Hold-to-repeat (`ignore_repeat=False`)

```python
import streamlit as st
import streamlit_hotkeys as hotkeys

st.title("Hold ArrowDown to increment")

hotkeys.activate([
    hotkeys.hk("down", "ArrowDown", ignore_repeat=False),
])

st.session_state.setdefault("count", 0)

if hotkeys.pressed("down"):
    st.session_state["count"] += 1

st.metric("Count", st.session_state["count"])
st.caption("Hold ArrowDown to spam events (ignore_repeat=False)")
```

### Multiple callbacks on the same event

```python
import streamlit as st
import streamlit_hotkeys as hotkeys

st.title("Multiple callbacks")

hotkeys.activate([
    hotkeys.hk("save", "s", ctrl=True, prevent_default=True),
])

def save_doc():
    st.write("Saving...")

def toast_saved():
    st.toast("Saved!")

# register both; each runs once per key press
hotkeys.on_pressed("save", save_doc)
hotkeys.on_pressed("save", toast_saved)

# you can still branch with pressed() afterwards
if hotkeys.pressed("save"):
    st.info("Thank you for saving")
```

## Notes and limitations

* Browsers reserve some shortcuts. Use `prevent_default=True` to keep the event for your app when allowed.
* Combos mean modifiers + one key. The platform does not treat two non-modifier keys pressed together (for example, `A+S`) as a single combo.
* The page must have focus; events are captured at the document level.

## Similar projects

* [streamlit-keypress] - Original "keypress to Python" component by Sudarsan.
* [streamlit-shortcuts] - Keyboard shortcuts for buttons and widgets; supports multiple bindings and hints.
* [streamlit-keyup] - Text input that emits on every keyup (useful for live filtering).
* [keyboard\_to\_url][keyboard_to_url] - Bind a key to open a URL in a new tab.

[streamlit-keypress]: https://pypi.org/project/streamlit-keypress/
[streamlit-shortcuts]: https://pypi.org/project/streamlit-shortcuts/
[streamlit-keyup]: https://pypi.org/project/streamlit-keyup/
[keyboard_to_url]: https://arnaudmiribel.github.io/streamlit-extras/extras/keyboard_url/

## Credits

Inspired by [streamlit-keypress] by **Sudarsan**. This implementation adds a multi-binding manager, edge-triggered events, modifier handling, `preventDefault`, `KeyboardEvent.code` and many more features.

## Contributing

Issues and PRs are welcome.

## License

MIT. See `LICENSE`.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "streamlit-hotkeys",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "Viktor Shcherbakov <viktoroo.sch@gmail.com>",
    "keywords": "streamlit, hotkeys, shortcuts, keyboard, keypress, component",
    "author": null,
    "author_email": "Viktor Shcherbakov <viktoroo.sch@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/36/e6/28344631094d03feb96dd320a9f8f0892f5eb5fc8fd5673ca72d633c6aec/streamlit_hotkeys-0.5.0.tar.gz",
    "platform": null,
    "description": "# Streamlit Hotkeys\n\n[![PyPI](https://img.shields.io/pypi/v/streamlit-hotkeys.svg)](https://pypi.org/project/streamlit-hotkeys/)\n[![Python Versions](https://img.shields.io/pypi/pyversions/streamlit-hotkeys.svg)](https://pypi.org/project/streamlit-hotkeys/)\n[![License](https://img.shields.io/pypi/l/streamlit-hotkeys.svg)](LICENSE)\n[![Wheel](https://img.shields.io/pypi/wheel/streamlit-hotkeys.svg)](https://pypi.org/project/streamlit-hotkeys/)\n![Streamlit Component](https://img.shields.io/badge/streamlit-component-FF4B4B?logo=streamlit\\&logoColor=white)\n[![Downloads](https://static.pepy.tech/badge/streamlit-hotkeys)](https://pepy.tech/project/streamlit-hotkeys)\n\n**Streamlit Hotkeys** lets you wire up fast, app-wide keyboard shortcuts in seconds. Bind `Ctrl/Cmd/Alt/Shift + key` to actions and get **edge-triggered** events with a clean, Pythonic API (`if hotkeys.pressed(\"save\"):` or multiple `on_pressed(...)` callbacks). It runs through a **single invisible manager**\u2014no widget clutter, no flicker\u2014and can scope reruns to the **whole page or just a fragment**. Reuse the same `id` across combos (e.g., Cmd+K **or** Ctrl+K \u2192 `palette`), block browser defaults like `Ctrl/Cmd+S`, and use physical key codes for layout-independent bindings.\n\n---\n\n## Installation\n\n```bash\npip install streamlit-hotkeys\n```\n\n## Quick start\n\n```python\nimport streamlit as st\nimport streamlit_hotkeys as hotkeys\n\n# Activate early (top of the script)\nhotkeys.activate([\n    hotkeys.hk(\"palette\", \"k\", meta=True),              # Cmd+K (mac)\n    hotkeys.hk(\"palette\", \"k\", ctrl=True),              # Ctrl+K (win/linux)\n    hotkeys.hk(\"save\", \"s\", ctrl=True, prevent_default=True),  # Ctrl+S\n])\n\nst.title(\"Hotkeys quick demo\")\n\nif hotkeys.pressed(\"palette\"):\n    st.write(\"Open palette\")\n\nif hotkeys.pressed(\"save\"):\n    st.write(\"Saved!\")\n\nst.caption(\"Try Cmd/Ctrl+K and Ctrl+S\")\n```\n\n## Features\n\n* Single invisible **manager** (one iframe per page/fragment)\n* Activate early; CSS auto-collapses the iframe to avoid flicker\n* **Edge-triggered across reruns**, and **non-consuming within a rerun**\n  (you can call `pressed(id)` multiple times and each will see `True`)\n* **Callbacks API:** register multiple `on_pressed(id, ...)` handlers (deduped, run in order)\n* Each shortcut match **triggers a rerun** \u2014 whole page or just the fragment where the manager lives\n* Bind single keys or combos (`ctrl`, `alt`, `shift`, `meta`)\n* Reuse the **same `id`** across bindings (e.g., Cmd+K **or** Ctrl+K \u2192 `palette`)\n* `prevent_default` to block browser shortcuts (e.g., Ctrl/Cmd+S)\n* Layout-independent physical keys via `code=\"KeyK\"` / `code=\"Digit1\"`\n* `ignore_repeat` to suppress repeats while a key is held\n* Built-in legend: add `help=\"...\"` in `hk(...)` and call `hotkeys.legend()`\n* Multi-page / multi-manager friendly via `key=`\n* Optional `debug=True` to log matches in the browser console\n\n## API\n\n### `hk(...)` \u2014 define a binding\n\n```python\nhk(\n  id: str,\n  key: str | None = None,           # e.g., \"k\", \"Enter\", \"ArrowDown\"\n  *,\n  code: str | None = None,          # e.g., \"KeyK\" (if set, 'key' is ignored)\n  alt: bool | None = False,         # True=require, False=forbid, None=ignore\n  ctrl: bool | None = False,\n  shift: bool | None = False,\n  meta: bool | None = False,\n  ignore_repeat: bool = True,\n  prevent_default: bool = False,\n  help: str | None = None,          # optional text shown in legend\n) -> dict\n```\n\nDefines one shortcut. You may reuse the **same `id`** across multiple bindings (e.g., Cmd+K **or** Ctrl+K \u2192 `palette`). Use `code=\"KeyK\"` for layout-independent physical keys.\n\n### `activate(*bindings, key=\"global\", debug=False) -> None`\n\nRegisters bindings and renders the single invisible manager. Accepted forms:\n\n* Positional `hk(...)` dicts\n* A single list/tuple of `hk(...)` dicts\n* A mapping: `id -> spec` **or** `id -> [spec, spec, ...]`\n\nNotes: call **as early as possible** on each page/fragment. The `key` scopes events; if the manager lives inside a fragment, only that fragment reruns on a match. `debug=True` logs matches in the browser console.\n\n### `pressed(id, *, key=\"global\") -> bool`\n\nReturns `True` **once per new key press** (edge-triggered across reruns). Within the **same rerun**, you can call `pressed(id)` multiple times in different places and each will see `True`.\n\n### `on_pressed(id, callback=None, *, key=\"global\", args=(), kwargs=None)`\n\nRegisters a callback to run **once per key press**. Multiple callbacks can be registered for the same `id` (deduped across reruns). You can use decorator or direct form. Callbacks run **before** any subsequent `pressed(...)` checks in the same rerun.\n\n### `legend(*, key=\"global\") -> None`\n\nRenders a grouped list of shortcuts for the given manager key. Bindings that share the same `id` are merged; the first non-empty `help` string per `id` is shown.\n\n## Examples\n\n### Basic: simple hotkeys with `if ... pressed(...)`\n\n```python\nimport streamlit as st\nimport streamlit_hotkeys as hotkeys\n\nst.title(\"Basic hotkeys\")\n\nhotkeys.activate([\n    hotkeys.hk(\"hello\", \"h\"),     # press H\n    hotkeys.hk(\"enter\", \"Enter\"), # press Enter\n])\n\nif hotkeys.pressed(\"hello\"):\n    st.write(\"Hello \ud83d\udc4b\")\n\nif hotkeys.pressed(\"enter\"):\n    st.write(\"You pressed Enter\")\n```\n\n### Cross-platform binding (same `id` for Cmd+K / Ctrl+K)\n\n```python\nimport streamlit as st\nimport streamlit_hotkeys as hotkeys\n\nst.title(\"Cross-platform palette (Cmd/Ctrl+K)\")\n\nhotkeys.activate([\n    hotkeys.hk(\"palette\", \"k\", meta=True),  # macOS\n    hotkeys.hk(\"palette\", \"k\", ctrl=True),  # Windows/Linux\n])\n\nif hotkeys.pressed(\"palette\"):\n    st.success(\"Open command palette\")\n```\n\n### Block browser default (Ctrl/Cmd+S)\n\n```python\nimport streamlit as st\nimport streamlit_hotkeys as hotkeys\n\nst.title(\"Prevent default on Ctrl/Cmd+S\")\n\nhotkeys.activate([\n    hotkeys.hk(\"save\", \"s\", ctrl=True, prevent_default=True),  # Ctrl+S\n    hotkeys.hk(\"save\", \"s\", meta=True,  prevent_default=True), # Cmd+S\n])\n\nif hotkeys.pressed(\"save\"):\n    st.success(\"Saved (browser Save dialog was blocked)\")\n```\n\n### Shortcuts Legend (dialog)\n\n```python\nimport streamlit as st\nimport streamlit_hotkeys as hotkeys\n\nst.title(\"Legend example\")\n\nhotkeys.activate({\n    \"palette\": [\n        {\"key\": \"k\", \"meta\": True,  \"help\": \"Open command palette\"},\n        {\"key\": \"k\", \"ctrl\": True},\n    ],\n    \"save\": {\"key\": \"s\", \"ctrl\": True, \"prevent_default\": True, \"help\": \"Save document\"},\n}, key=\"global\")\n\n@st.dialog(\"Keyboard Shortcuts\")\ndef _shortcuts():\n    hotkeys.legend()  # grouped legend (uses help=...)\n\nif hotkeys.pressed(\"palette\"):\n    _shortcuts()\n\nst.caption(\"Press Cmd/Ctrl+K to open the legend\")\n```\n\n### Fragment-local reruns (only the fragment updates)\n\n```python\nimport streamlit as st\nimport streamlit_hotkeys as hotkeys\n\nst.title(\"Fragment-local rerun\")\n\nst.write(\"Outside the fragment: no rerun on Ctrl+S\")\n\n@st.fragment\ndef editor_panel():\n    hotkeys.activate([hotkeys.hk(\"save\", \"s\", ctrl=True)], key=\"editor\")\n    st.text_area(\"Document\", height=120, key=\"doc\")\n    if hotkeys.pressed(\"save\", key=\"editor\"):\n        st.success(\"Saved inside fragment only\")\n\neditor_panel()\n```\n\n### Hold-to-repeat (`ignore_repeat=False`)\n\n```python\nimport streamlit as st\nimport streamlit_hotkeys as hotkeys\n\nst.title(\"Hold ArrowDown to increment\")\n\nhotkeys.activate([\n    hotkeys.hk(\"down\", \"ArrowDown\", ignore_repeat=False),\n])\n\nst.session_state.setdefault(\"count\", 0)\n\nif hotkeys.pressed(\"down\"):\n    st.session_state[\"count\"] += 1\n\nst.metric(\"Count\", st.session_state[\"count\"])\nst.caption(\"Hold ArrowDown to spam events (ignore_repeat=False)\")\n```\n\n### Multiple callbacks on the same event\n\n```python\nimport streamlit as st\nimport streamlit_hotkeys as hotkeys\n\nst.title(\"Multiple callbacks\")\n\nhotkeys.activate([\n    hotkeys.hk(\"save\", \"s\", ctrl=True, prevent_default=True),\n])\n\ndef save_doc():\n    st.write(\"Saving...\")\n\ndef toast_saved():\n    st.toast(\"Saved!\")\n\n# register both; each runs once per key press\nhotkeys.on_pressed(\"save\", save_doc)\nhotkeys.on_pressed(\"save\", toast_saved)\n\n# you can still branch with pressed() afterwards\nif hotkeys.pressed(\"save\"):\n    st.info(\"Thank you for saving\")\n```\n\n## Notes and limitations\n\n* Browsers reserve some shortcuts. Use `prevent_default=True` to keep the event for your app when allowed.\n* Combos mean modifiers + one key. The platform does not treat two non-modifier keys pressed together (for example, `A+S`) as a single combo.\n* The page must have focus; events are captured at the document level.\n\n## Similar projects\n\n* [streamlit-keypress] - Original \"keypress to Python\" component by Sudarsan.\n* [streamlit-shortcuts] - Keyboard shortcuts for buttons and widgets; supports multiple bindings and hints.\n* [streamlit-keyup] - Text input that emits on every keyup (useful for live filtering).\n* [keyboard\\_to\\_url][keyboard_to_url] - Bind a key to open a URL in a new tab.\n\n[streamlit-keypress]: https://pypi.org/project/streamlit-keypress/\n[streamlit-shortcuts]: https://pypi.org/project/streamlit-shortcuts/\n[streamlit-keyup]: https://pypi.org/project/streamlit-keyup/\n[keyboard_to_url]: https://arnaudmiribel.github.io/streamlit-extras/extras/keyboard_url/\n\n## Credits\n\nInspired by [streamlit-keypress] by **Sudarsan**. This implementation adds a multi-binding manager, edge-triggered events, modifier handling, `preventDefault`, `KeyboardEvent.code` and many more features.\n\n## Contributing\n\nIssues and PRs are welcome.\n\n## License\n\nMIT. See `LICENSE`.\n",
    "bugtrack_url": null,
    "license": "MIT License\n        \n        Copyright (c) 2025 Your Name\n        \n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n        \n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n        \n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.",
    "summary": "Keyboard hotkeys for Streamlit (Ctrl/Cmd/Alt/Shift combos) with edge-triggered events.",
    "version": "0.5.0",
    "project_urls": {
        "Issue Tracker": "https://github.com/viktor-shcherb/streamlit-hotkeys/issues",
        "Similar: keyboard_to_url": "https://arnaudmiribel.github.io/streamlit-extras/extras/keyboard_url/",
        "Similar: streamlit-keypress": "https://pypi.org/project/streamlit-keypress/",
        "Similar: streamlit-keyup": "https://pypi.org/project/streamlit-keyup/",
        "Similar: streamlit-shortcuts": "https://pypi.org/project/streamlit-shortcuts/",
        "Source": "https://github.com/viktor-shcherb/streamlit-hotkeys"
    },
    "split_keywords": [
        "streamlit",
        " hotkeys",
        " shortcuts",
        " keyboard",
        " keypress",
        " component"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "346cae623724b300198be7771bdb3a82316a3d51532d096a94e66e1734586245",
                "md5": "72db7ec9eab4a21175d47585ba0836d7",
                "sha256": "bb13b3eacab0a0d40961b1f8a57885faea7c8e2e51da56e8eac49774744ee81f"
            },
            "downloads": -1,
            "filename": "streamlit_hotkeys-0.5.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "72db7ec9eab4a21175d47585ba0836d7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 15710,
            "upload_time": "2025-08-10T13:42:17",
            "upload_time_iso_8601": "2025-08-10T13:42:17.654251Z",
            "url": "https://files.pythonhosted.org/packages/34/6c/ae623724b300198be7771bdb3a82316a3d51532d096a94e66e1734586245/streamlit_hotkeys-0.5.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "36e628344631094d03feb96dd320a9f8f0892f5eb5fc8fd5673ca72d633c6aec",
                "md5": "c49ee646a03004e3b45dac5e6021da8e",
                "sha256": "66c03eaa5fc3ce9c714efde3463af8d4ef5dc013616fa1068a50d85375fbc223"
            },
            "downloads": -1,
            "filename": "streamlit_hotkeys-0.5.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c49ee646a03004e3b45dac5e6021da8e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 17682,
            "upload_time": "2025-08-10T13:42:18",
            "upload_time_iso_8601": "2025-08-10T13:42:18.682272Z",
            "url": "https://files.pythonhosted.org/packages/36/e6/28344631094d03feb96dd320a9f8f0892f5eb5fc8fd5673ca72d633c6aec/streamlit_hotkeys-0.5.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-10 13:42:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "viktor-shcherb",
    "github_project": "streamlit-hotkeys",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "streamlit-hotkeys"
}
        
Elapsed time: 2.37171s