keysymdef
X11 keysym data for Python
What it is and what it does
keysymdef is a static data package that bundles X11 and XF86 keysym definitions for use in Python. It exposes two main data structures—keysymdef and xf86keysym—each containing tuples of (mnemonic name, integer value, unicode code point). The data is hard-coded into the package, so there are no external dependencies; you simply import and look up key definitions by index or iterate through them.
This is useful for applications that need to map keyboard symbols to their numeric codes or vice versa, particularly in X11-based environments or tools that work with keyboard input at a low level. Since the data is static and bundled, the package is lightweight and has no runtime overhead beyond the import.
Use it for:
- Map X11 keyboard symbols to their numeric codes in terminal emulators or X11 input handlers.
- Build keyboard configuration tools that need to reference standard keysym mnemonics and their values.
- Implement XF86 multimedia key handling in applications running on X11 desktops.
- Create keyboard layout documentation or debugging tools that display keysym names and codes.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides X11 and XF86 keysym definitions as Python data structures, mapping mnemonic names to integer values and optional Unicode code points.
Yes, if you need X11 keysym data in Python and are comfortable with abandoned maintenance. The package is lightweight, dependency-free, and has no known vulnerabilities. However, the last update was in February 2023 and the repository shows no recent commits, so expect no bug fixes or updates. Use it only if the static keysym data meets your needs and you don't require ongoing support.
Install
keysymdef on PyPI
pip
pip install keysymdefuv
uv add keysymdefpoetry
poetry add keysymdefInstalling keysymdef
Before you install
Installation is frictionless—the package is a pure Python wheel with no runtime dependencies. However, maintenance is stalled: the last release was in February 2023 and the repository shows no recent activity, so bug fixes or updates are unlikely.
License in practice
The package is licensed under X11, which is a permissive open-source license. However, the license treatment is marked unclear in the metadata, so you may want to verify the exact terms before using it in a commercial or redistributed context.
Quickstart
from keysymdef import keysymdef, xf86keysym
print(keysymdef[1]) # ('BackSpace', 65288, None)
print(xf86keysym[1]) # ('MonBrightnessUp', 269025026, None)
Verify before relying
- Whether the X11 keysym data is complete and current for modern keyboard layouts and XF86 extensions.
- Exact compatibility with different Python versions, since python_support is unspecified.
Package facts
| License | X11 (unclear) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | abandoned — 1,266 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 75,313/month — #14,730 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: keysymdef-1.2.0-py2.py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
mnemonicGenerates mnemonic word sequences and converts…
permissive · top 5,000 on PyPI
python-yakhCaptures individual keypresses from terminal…
permissive · top 15,000 on PyPI
py-bip39-bindingsProvides Python bindings to the tiny-bip39 Rust…
permissive · top 15,000 on PyPI
python-xlibA pure-Python X11 client library that…
copyleft · top 5,000 on PyPI
xlibProvides a pure-Python X11 client library for…
copyleft · top 15,000 on PyPI
hexdumpConverts binary data to hexadecimal text…
permissive · top 15,000 on PyPI
EWMHlibQuery and control window managers that…
permissive · top 15,000 on PyPI
readcharReads single characters and keystrokes from…
permissive · top 5,000 on PyPI
currency-symbolsMaps ISO 4217 currency codes to their symbols…
permissive · top 5,000 on PyPI
attrdictProvides dictionary-like objects that allow…
permissive · top 5,000 on PyPI