porimol / countryinfo

A python module for returning data about countries, ISO info and states/provinces within them.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A way to get back all available countries?

ieshaan12 opened this issue · comments

As the title says.
If not we can have another function say that. Probably a separate json file with all country names.

Function .all() brings back way too much, instead of that, possibly a simpler list with all country names should do.

Added to this - could this be filtered by keywords such as region? So you could get a list of all the countries in a continent for instance?

Function .all() brings back way too much, instead of that, possibly a simpler list with all country names should do.

You can list only the keys of the dictionary from .all(), e.g. with CountryInfo().all().keys()