Country grouping

I saw that continents have a code (List of sovereign states and dependent territories by continent (data file) - Wikipedia). And maybe some group could have an abbreviation. So code could be called abbreviation ?

Not sure is useful. We don’t predict the future. Brexit is an isolated case. Most of the time groups exists and there’s no validity date. I mean, a country will not leave a continent and also there’s no versioning on the group. (European community V1 with Great Britain, EC V2 without Great Britain). Seems easier to manage manually such cases (which, i think, are not so frequent). You don’t know if Belgium will leave NATO or if spain will join OPEC…

Some defaults values could be the continents and doing the association of countries on each continent. This could be done in a script like import_countries and with python-restcountries · PyPI which allows to get continents and the countries related. Some other regional blocs are also referenced on this API (European Union, Pacific Alliance, …)

Would be easier. :slight_smile: