python3-countrynames

Map country names to ISO codes
  https://github.com/occrp/countrynames
  0
  no reviews



This library helps with the mapping of country names to their respective two or three letter codes. The idea is to incorporate common names for countries, and even some limited misspellings, as they occur in source data.

There is also support for fuzzy matching, which uses a heuristic based on Levenshtein distance.