Skip to main content

langtag module

Langtag is a module for working with language tag sets. A tag set is a set of orthographically equivalent tags along with various information. The core data for the database may be found here: [https://ldml.api.sil.org/langtags.json].

Installatino

  • pip install langtag

langtag is only dependent on python3 and its core libraries (including json).

Example

from langtag import lookup, langtag
t = lookup('en-Latn')       # find a tagset returning a TagSet object
l = langtag('en-Latn')      # create an underling LangTag object

See pydoc for details

Release files for langtag 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for langtag 0.2
File Size Uploaded
langtag-0.2.tar.gz 14.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langtag 0.2
File Interpreter ABI Platform
langtag-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 25.4 kB

Release files / langtag-0.2.tar.gz

Download URL langtag-0.2.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f79b12be2b2795ddf3344ad02ad2775158c6ef17c27632216f8f456b31b60596
BLAKE2b-256 checksum
How to use checksums
f9559bb1551f3d7b46215608c1fe8853f80d9fe40590f598489d8bfd90506d82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / langtag-0.2-py3-none-any.whl

Download URL langtag-0.2-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a85003ac77d067d0fff937d55986a757d3fe2a7a3724394a08b0a8e99288e6c
BLAKE2b-256 checksum
How to use checksums
dcd1ff36bf127321ac8a5ecb907499ad92b7fe7b7ec9644dfd13da68f3ffff41
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page