Skip to content

use country_converter instead of pycountry #58

@irm-codebase

Description

@irm-codebase

Is your feature request related to a problem? Please describe.
pycountry follows ISO standards to a T.
While this is pretty stable, it also makes fetching non-standard countries difficult (e.g., Kosovo).
This affects datasources that need to be fetched using alpha 2 codes.

Describe the solution you'd like
Using country_converter instead of pycountry. It's more flexible, and it cedes support to another tool.
While it still raises the issue of whether or not the non-standard code matches in said database, it's better than nothing.

Describe alternatives you've considered
Adding a custom country list.
https://github.com/pycountry/pycountry#custom-countries

This would result in extra work, though, so I am not a fan of this approach.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions