Skip to main content

Language tags made easy

Project description

BCP47

Language tags are not your everyday ISO standard, but instead composed of an ISO-639 language code, and an ISO-3166 country/region code (and occationally an ISO-15924 script tag for the written language).

The file is generated from Microsoft's seminal piece, [MS-LCID].pdf.

Easy installation

$ pip install bcp47

Example

>>> import bcp47
>>> [v for k,v in bcp47.languages.items() if 'English' in k]
['en', 'en-AS', 'en-AI', 'en-AG', 'en-AU', 'en-AT', 'en-BS', 'en-BB', 'en-BE', 'en-BZ', 'en-BM', 'en-BW', 'en-IO', ...]

Enjoy!

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

bcp47-0.0.3.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

bcp47-0.0.3-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file bcp47-0.0.3.tar.gz.

File metadata

  • Download URL: bcp47-0.0.3.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.7

File hashes

Hashes for bcp47-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a4c6cfad201a65800ea134e2751fec1602b68e441d2c98379bfb5a8755d0673f
MD5 d59c9bc23e625885cee24a58bd8c1c7f
BLAKE2b-256 1fca9f3c9d47badfa00a28902c9c7dfc406dba2477a3ac5483acae149db768a7

See more details on using hashes here.

File details

Details for the file bcp47-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: bcp47-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.7

File hashes

Hashes for bcp47-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1bc87057791756c85a8bb2e8e7bb189161dd58a73ebfdda6db16238d6066b71d
MD5 dcf1a35fd56a38472fc845a3f389fac1
BLAKE2b-256 186f12cc24108a31c7e7fb8640afa00269594c79181feb4b1c20bb8dd78ebad1

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