langtable
Guessing reasonable defaults for locale, keyboard layout, territory, and language.
Purpose of this package
langtable is used to guess reasonable defaults for locale, keyboard, territory, …, if part of that information is already known. For example, guess the territory and the keyboard layout if the language is known or guess the language and keyboard layout if the territory is already known.
License
GPLv3+, see the included file “COPYING”.
Translations for languages and territory names are from CLDR which is governed by the Unicode Terms of Use, see the included file “unicode-license.txt”. The short name for this Unicode license is “MIT”. See:
Installation
To install langtable, run
make install DESTDIR=/usr
To create a distribution tarball run
make dist
To run the test cases in the source directory:
make check
How to use it
import langtable
Functions in the public API:
parse_locale()
list_locales()
list_keyboards()
list_common_languages()
list_common_locales()
list_common_keyboards()
list_consolefonts()
list_inputmethods()
list_timezones()
list_scripts()
language_name()
territory_name()
timezone_name()
languageId()
territoryId()
supports_ascii()
list_all_languages()
list_all_locales()
list_all_keyboards()
list_all_territories()
list_all_timezones()
list_all_scripts()
list_all_input_methods()
list_all_console_fonts()
Some examples to show the usage are found in the documentation of the public functions in langtable.py.
Some more examples are in the test cases in the file test_cases.py.
Metadata
Release files for langtable 0.0.71
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langtable-0.0.71.tar.gz | 1.6 MB | Without provenance | Details for langtable-0.0.71.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langtable-0.0.71-py3-none-any.whl | Python 3 | none | any | Details for langtable-0.0.71-py3-none-any.whl |
Total release size: 3.2 MB
Release files / langtable-0.0.71.tar.gz
| Download URL | langtable-0.0.71.tar.gz |
|---|---|
| Size | 1.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9d39c06d5182ea14eb4576bf1da8875af1d44efb166e55d6865b3b59b8ac617
|
|
BLAKE2b-256 checksum How to use checksums |
5b0038ddba0c45ef10d801cdb341841f518c5b6943a33a00ad4d8adfe3bc9d30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / langtable-0.0.71-py3-none-any.whl
| Download URL | langtable-0.0.71-py3-none-any.whl |
|---|---|
| Size | 1.6 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35bfe8c9de1399c9f36f40c7e96050d6818ddeb19866d966e3401b360c02cffa
|
|
BLAKE2b-256 checksum How to use checksums |
a72ac4663fee4c3d842d8d7844feaba1231e336ff47aaa11803a1a267070ac0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for langtable 0.0.71
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.