Skip to main content

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

xkbregistry-0.2.tar.gz (8.7 kB view details)

Uploaded Source

File details

Details for the file xkbregistry-0.2.tar.gz.

File metadata

  • Download URL: xkbregistry-0.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.31.0 rfc3986/1.5.0 tqdm/4.65.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for xkbregistry-0.2.tar.gz
Algorithm Hash digest
SHA256 eb882ca31f49cab95c674147e356399d1e1d6fe8d1eb7ef68e21346eb59babe9
MD5 fb8e618b8961ebfe269b35fdc0ea17df
BLAKE2b-256 7c85076022035787d7f13724b4f1660bba7078deeecec94d0d60992e510f04bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page