countrynames
countrynames copied to clipboard
Utility library to turn country names into ISO two-letter codes
Thanks so much for this great package. However, I'm having some issues trying to view the log.DEBUG info for _fuzzy_search. Any guidance on where to find this logging info would...
Adding a post-intall action seems impossible with pip installs and wheel packages (see https://stackoverflow.com/questions/24263774/post-install-script-after-installing-a-wheel). This patch allows the user to manually compile a cached version of the names dictionnary using...
Python yaml loader is way slower than the json loader. Replacing data.yaml file with a json file would speed up considerably the loading time of this library (several seconds on...
Added real world examples added based on Companies House data. These additions were based on issues found here: https://www.opensanctions.org/issues/gb_coh_psc/ This pull request should resolve over 600 errors/warnings on jurisdiction, country...
We have a ton of aliases now, and transliterating leads to a loss of precision. For this reason we should first try and match a lightly normalised (e.g. lowercased) country...
this is because مصر transliterates to MSR which is included under montserrat as its 3-letter ISO-3166 code. https://github.com/opensanctions/countrynames/blob/main/countrynames/data.yaml#L7435