-
-
Notifications
You must be signed in to change notification settings - Fork 73
Closed
Description
In the credentials.yml example, country names are used in full form (e.g., "germany",...), but in the API code (like marketplaces.py), countries are referenced using their ISO codes (e.g., "DE", "GB").
In the whole API docs, is there any file with mapping between country codes and full country names ?
MARKET_CODE_TO_NAME = {
'UK': 'united_kingdom',
'GB': 'united_kingdom',
'DE': 'germany',
'FR': 'france',
# etc.
}
My questions:
- Is there an existing mapping function or constant in the library that I've missed?
- If not, would it make sense to add this mapping to the library to maintain consistency?
This would greatly simplify implementation for users who wouldn't need to create and maintain this mapping in every script they write.
Thank you!
Metadata
Metadata
Assignees
Labels
No labels