Skip to main content

BCP47 language tags and tag sets

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

langtag-0.2.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langtag-0.2-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: langtag-0.2.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for langtag-0.2.tar.gz
Algorithm Hash digest
SHA256 f79b12be2b2795ddf3344ad02ad2775158c6ef17c27632216f8f456b31b60596
MD5 20037be8e34f7fd17e8eb1a6f33f7fee
BLAKE2b-256 f9559bb1551f3d7b46215608c1fe8853f80d9fe40590f598489d8bfd90506d82

See more details on using hashes here.

File details

Details for the file langtag-0.2-py3-none-any.whl.

File metadata

  • Download URL: langtag-0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for langtag-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2a85003ac77d067d0fff937d55986a757d3fe2a7a3724394a08b0a8e99288e6c
MD5 0d340a76b337449276fe5644326bc8d4
BLAKE2b-256 dcd1ff36bf127321ac8a5ecb907499ad92b7fe7b7ec9644dfd13da68f3ffff41

See more details on using hashes here.

Supported by

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