Labels and compares human languages in a standardized way -- Python 2 backport
langcodes is a toolkit for working with and comparing the standardized codes for languages, such as ‘en’ for English, ‘es’ for Spanish, and ‘zh-Hant’ for Traditional Chinese. These are BCP 47 language codes, formerly known as ISO language codes.
langcodes is designed for Python 3, but this version of langcodes, ‘langcodes-py2’, is a backport to Python 2.7.
The documentation for langcodes lives in its README file, which you can read on GitHub: https://github.com/LuminosoInsight/langcodes