{"library":"pycountry","type":"library","category":null,"description":"pycountry is a Python library that provides access to various ISO standards databases, including ISO 3166 (countries and their subdivisions), ISO 639 (languages), ISO 4217 (currencies), and ISO 15924 (scripts). It acts as a pure wrapper around Debian's `pkg-isocodes` database, making this data accessible through a Python API, complete with translation files. The library is actively maintained, with data updates typically following the `pkg-isocodes` updates rather than a fixed release schedule. The current version is 26.2.16.","language":"python","status":"active","version":"26.2.16","tags":["ISO","country","language","currency","subdivision","script","data","internationalization","i18n","l10n"],"install":[{"cmd":"pip install pycountry","imports":["import pycountry\ncountry = pycountry.countries.get(alpha_2='US')","import pycountry\nsubdivision = pycountry.subdivisions.get(code='US-CA')","import pycountry\nlanguage = pycountry.languages.get(alpha_3='eng')","import pycountry\ncurrency = pycountry.currencies.get(alpha_3='USD')","import pycountry\nscript = pycountry.scripts.get(alpha_4='Latn')","import pycountry\nhistoric_country = pycountry.historic_countries.get(alpha_3='SUN')","import pycountry\ncountry = pycountry.countries.lookup('United States')"]}],"homepage":"https://pypi.org/project/pycountry/","github":"https://github.com/pycountry/pycountry","docs":null,"changelog":"https://github.com/pycountry/pycountry/blob/main/HISTORY.txt","pypi":"https://pypi.org/project/pycountry/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":1.8,"avg_import_s":0.13,"wheel_type":"wheel"},"url":"https://checklist.day/v1/registry/pycountry/compatibility"},"provenance":{"verified_status":"passing","verified_at":"Sun Jun 28","last_verified":"Sun Jun 28","next_check":"Tue Jul 28","install_tag":"verified"}}