Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to get back all available countries? #24

Open
ieshaan12 opened this issue Nov 25, 2020 · 3 comments
Open

A way to get back all available countries? #24

ieshaan12 opened this issue Nov 25, 2020 · 3 comments

Comments

@ieshaan12
Copy link

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

@ieshaan12
Copy link
Author

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

@dpfinch
Copy link

dpfinch commented Feb 4, 2021

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?

@nicolaoe
Copy link

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants