Bindings for libxkbregistry using cffi
Project description
Python bindings for libxkbregistry using cffi.
libxkbregistry is part of libxkbcommon but is commonly packaged separately in distributions.
Example usage:
>>> from xkbregistry import rxkb >>> ctx = rxkb.Context() >>> ctx.models["pc101"].description 'Generic 101-key PC' >>> ctx.layouts["us"] rxkb.Layout('us') >>> ctx.layouts["us"].description 'English (US)' >>> ctx.layouts["us(intl)"].description 'English (US, intl., with dead keys)' >>> ctx.option_groups[0].description 'Switching to another layout'
Version numbering
From release 1.0 onwards, the version numbering of this package will relate to releases of libxkbcommon as follows:
If the Python package version is major.minor[.patch] then it requires at least release major.minor.0 of libxkbcommon and/or libxkbregistry to build and run, and should work with any subsequent release. The patch version of the Python package is unrelated to the patch version of libxkbcommon.
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
File details
Details for the file xkbregistry-1.0.tar.gz
.
File metadata
- Download URL: xkbregistry-1.0.tar.gz
- Upload date:
- Size: 26.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7414ba3b3914e22ba1d5ad78dab60a4c90ab2020e531359a09ed36162073384f |
|
MD5 | 45487fe31274f1fade886af0c41d354c |
|
BLAKE2b-256 | e9245ba66ec4b04dedf249b58cb49724ddd668b8c95f496d43b1000b705dec54 |