Skip to main content
IANA Language Tags for Python
_____________________________
.. image:: https://badge.fury.io/py/language_tags.png
:target: http://badge.fury.io/py/language_tags
.. image:: https://travis-ci.org/OnroerendErfgoed/language-tags.png?branch=master
:target: https://travis-ci.org/OnroerendErfgoed/language-tags
.. image:: https://coveralls.io/repos/OnroerendErfgoed/language-tags/badge.png
:target: https://coveralls.io/r/OnroerendErfgoed/language-tags
.. image:: https://readthedocs.org/projects/language-tags/badge/?version=latest
:target: https://readthedocs.org/projects/language-tags/?badge=latest

This Python API offers a way to validate and lookup languages tags.

Standard
________

It is based on `BCP 47 <http://tools.ietf.org/html/bcp47>`_ (`RFC 5646 <http://tools.ietf.org/html/rfc5646>`_) and the latest `IANA language subtag registry <http://www.iana.org/assignments/language-subtag-registry>`_.

This project will be updated as the standards change.

JSON data
_________

See the `language-subtag-registry <https://github.com/mattcg/language-subtag-registry>`_ project for the underlying JSON data.

Javascript version
__________________

This project is a Python version of the `language-tags <https://github.com/mattcg/language-tags>`_ Javascript project.

0.1.1
_____

- Added string and Unicode functions to make it easy to print Tags and Subtags.

.. code-block:: python

> print(tags.tag('nl-BE'))
{"tag": "nl-be"}

- Added functions to easily select either the language, region or script subtags strings of a Tag.

.. code-block:: python

> tags.tag('nl-BE').language
['nl']

0.1.0
_____

- Initial version

Metadata

Release files for language-tags 0.1.1

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

Source distribution (sdist)

Source distribution for language-tags 0.1.1
File Size Uploaded
language_tags-0.1.1.tar.gz 195.0 kB Details

Release files / language_tags-0.1.1.tar.gz

Download URL language_tags-0.1.1.tar.gz
Size 195.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5f3be4cc972628f95f1cd0674c0b572b15af4fed568cbf8671e2e093e54289e3
BLAKE2b-256 checksum
How to use checksums
5ef2f457e4822ee7e0e9f67c9236d01bcfe146a76e9079d3abbdde66a7b37ed5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

1 release file

0.5.0

1 release file

0.4.6

1 release file

0.4.5

1 release file

0.4.4

1 release file

0.4.3

1 release file

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

1 release file

0.3.0

1 release file

0.2.0

1 release file

This release

0.1.1 This release

1 release file

0.1.0

1 release file

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