Open detrin opened 3 months ago
I prepared a repo where you can use the CLI to fetch the newest ISO 3166 list or use the countries.json
file. https://github.com/detrin/download-iso3166-list
Kosovo is a mistake in python-iso3166 since it is not in https://en.wikipedia.org/wiki/ISO_3166-1 so disregard this example.
I would dispute that is a mistake. ISO 3166 allows for user-assignments for x
codes, and so xk
is compliant, plus it's the defacto country code until specific UN publications list Kosovo, and currently used by a significant number of international organisations.
@mjpieters well, if it would be presented this way in the README of the repo that it is xk
is compliant, I have no issue with that.
There is another package https://github.com/deactivated/python-iso3166 for and using example
we get
Kosovo is a mistake in
python-iso3166
since it is not in https://en.wikipedia.org/wiki/ISO_3166-1 so disregard this example. I opened an issue in the package for that. https://github.com/deactivated/python-iso3166/issues/37I could open a PR and I could try prepare github action for checking the wiki for ISO