Skip to content

Commit

Permalink
Country data updated (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstislon authored Sep 25, 2024
1 parent 3c456c8 commit 16f318c
Show file tree
Hide file tree
Showing 3 changed files with 188 additions and 208 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ black = "==24.8.0"
flake8 = "==7.1.1"
pep8-naming = "==0.14.1"
phonenumbers = "==8.13.45"
pytest = "==8.3.2"
pytest = "==8.3.3"
pytest-cov = "==5.0.0"
requests = "==2.32.3"

Expand Down
125 changes: 51 additions & 74 deletions phone_gen/country_name.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
COUNTRY_NAME: Dict[str, Dict[str, str]] = {
"AFGHANISTAN": {"name": "Afghanistan", "code": "AF"},
"ALANDISLANDS": {"name": "Åland Islands", "code": "AX"},
"ANDORRA": {"name": "Andorra", "code": "AD"},
"UNITEDARABEMIRATES": {"name": "United Arab Emirates", "code": "AE"},
"ANTIGUAANDBARBUDA": {"name": "Antigua and Barbuda", "code": "AG"},
"ANGUILLA": {"name": "Anguilla", "code": "AI"},
"ALBANIA": {"name": "Albania", "code": "AL"},
"ARMENIA": {"name": "Armenia", "code": "AM"},
"ALGERIA": {"name": "Algeria", "code": "DZ"},
"AMERICANSAMOA": {"name": "American Samoa", "code": "AS"},
"ANDORRA": {"name": "Andorra", "code": "AD"},
"ANGOLA": {"name": "Angola", "code": "AO"},
"ANGUILLA": {"name": "Anguilla", "code": "AI"},
"ANTARCTICA": {"name": "Antarctica", "code": "AQ"},
"ANTIGUAANDBARBUDA": {"name": "Antigua and Barbuda", "code": "AG"},
"ARGENTINA": {"name": "Argentina", "code": "AR"},
"ALGERIA": {"name": "Algeria", "code": "DZ"},
"AMERICANSAMOA": {"name": "American Samoa", "code": "AS"},
"ARMENIA": {"name": "Armenia", "code": "AM"},
"ARUBA": {"name": "Aruba", "code": "AW"},
"ASCENSIONISLAND": {"name": "Ascension Island", "code": "AC"},
"AUSTRALIA": {"name": "Australia", "code": "AU"},
"AUSTRIA": {"name": "Austria", "code": "AT"},
"AZERBAIJAN": {"name": "Azerbaijan", "code": "AZ"},
Expand All @@ -35,60 +35,54 @@
"BHUTAN": {"name": "Bhutan", "code": "BT"},
"BOLIVIA": {"name": "Bolivia", "code": "BO"},
"BONAIRE": {"name": "Bonaire", "code": "BQ"},
"SINTEUSTATIUS": {"name": "Sint Eustatius", "code": "BQ"},
"SABA": {"name": "Saba", "code": "BQ"},
"BOSNIAANDHERZEGOVINA": {"name": "Bosnia and Herzegovina", "code": "BA"},
"BOTSWANA": {"name": "Botswana", "code": "BW"},
"BOUVETISLAND": {"name": "Bouvet Island", "code": "BV"},
"BRAZIL": {"name": "Brazil", "code": "BR"},
"BRITISHINDIANOCEANTERRITORY": {
"name": "British Indian Ocean Territory",
"code": "IO",
},
"BRITISHINDIANOCEANTERRITORY": {"name": "British Indian Ocean Territory", "code": "IO"},
"BRITISHVIRGINISLANDS": {"name": "British Virgin Islands", "code": "VG"},
"BRUNEIDARUSSALAM": {"name": "Brunei Darussalam", "code": "BN"},
"BULGARIA": {"name": "Bulgaria", "code": "BG"},
"BURKINAFASO": {"name": "Burkina Faso", "code": "BF"},
"BURMA": {"name": "Myanmar", "code": "MM"},
"BURUNDI": {"name": "Burundi", "code": "BI"},
"CABOVERDE": {"name": "Cabo Verde", "code": "CV"},
"CAPEVERDE": {"name": "Cabo Verde", "code": "CV"},
"CAMBODIA": {"name": "Cambodia", "code": "KH"},
"CAMEROON": {"name": "Cameroon", "code": "CM"},
"CANADA": {"name": "Canada", "code": "CA"},
"CAPEVERDE": {"name": "Cabo Verde", "code": "CV"},
"CAYMANISLANDS": {"name": "Cayman Islands", "code": "KY"},
"CENTRALAFRICANREPUBLIC": {"name": "Central African Republic", "code": "CF"},
"CHAD": {"name": "Chad", "code": "TD"},
"CHILE": {"name": "Chile", "code": "CL"},
"CHINA": {"name": "China", "code": "CN"},
"CHRISTMASISLAND": {"name": "Christmas Island", "code": "CX"},
"COCOSISLANDS": {"name": "Cocos (Keeling) Islands", "code": "CC"},
"KEELINGISLANDS": {"name": "Cocos (Keeling) Islands", "code": "CC"},
"COLOMBIA": {"name": "Colombia", "code": "CO"},
"COMOROS": {"name": "Comoros", "code": "KM"},
"DEMOCRATICREPUBLICOFTHECONGO": {
"name": "Democratic Republic of the Congo",
"code": "CD",
},
"CONGO": {"name": "Republic of the Congo", "code": "CG"},
"REPUBLICOFTHECONGO": {"name": "Republic of the Congo", "code": "CG"},
"COOKISLANDS": {"name": "Cook Islands", "code": "CK"},
"COSTARICA": {"name": "Costa Rica", "code": "CR"},
"CÔTEDIVOIRE": {"name": "Côte d'Ivoire", "code": "CI"},
"COTEDIVOIRE": {"name": "Côte d'Ivoire", "code": "CI"},
"CROATIA": {"name": "Croatia", "code": "HR"},
"CUBA": {"name": "Cuba", "code": "CU"},
"CURAÇAO": {"name": "Curaçao", "code": "CW"},
"CURACAO": {"name": "Curaçao", "code": "CW"},
"CURAÇAO": {"name": "Curaçao", "code": "CW"},
"CYPRUS": {"name": "Cyprus", "code": "CY"},
"CZECHIA": {"name": "Czech Republic", "code": "CZ"},
"CZECHREPUBLIC": {"name": "Czech Republic", "code": "CZ"},
"CÔTEDIVOIRE": {"name": "Côte d'Ivoire", "code": "CI"},
"DEMOCRATICPEOPLESREPUBLICOFKOREA": {"name": "Democratic People's Republic of Korea", "code": "KP"},
"DEMOCRATICREPUBLICOFTHECONGO": {"name": "Democratic Republic of the Congo", "code": "CD"},
"DENMARK": {"name": "Denmark", "code": "DK"},
"DJIBOUTI": {"name": "Djibouti", "code": "DJ"},
"DOMINICA": {"name": "Dominica", "code": "DM"},
"DOMINICANREPUBLIC": {"name": "Dominican Republic", "code": "DO"},
"EASTTIMOR": {"name": "Timor-Leste", "code": "TL"},
"ECUADOR": {"name": "Ecuador", "code": "EC"},
"EGYPT": {"name": "Egypt", "code": "EG"},
"ELSALVADOR": {"name": "El Salvador", "code": "SV"},
"SALVADOR": {"name": "El Salvador", "code": "SV"},
"ENGLAND": {"name": "England", "code": "GB"},
"EQUATORIALGUINEA": {"name": "Equatorial Guinea", "code": "GQ"},
"ERITREA": {"name": "Eritrea", "code": "ER"},
"ESTONIA": {"name": "Estonia", "code": "EE"},
Expand All @@ -104,10 +98,12 @@
"FRENCHSOUTHERNTERRITORIES": {"name": "French Southern Territories", "code": "TF"},
"GABON": {"name": "Gabon", "code": "GA"},
"GAMBIA": {"name": "Gambia", "code": "GM"},
"GAZASTRIP": {"name": "Gaza Strip", "code": "GS"},
"GEORGIA": {"name": "Georgia", "code": "GE"},
"GERMANY": {"name": "Germany", "code": "DE"},
"GHANA": {"name": "Ghana", "code": "GH"},
"GIBRALTAR": {"name": "Gibraltar", "code": "GI"},
"GREATBRITAIN": {"name": "United Kingdom", "code": "GB"},
"GREECE": {"name": "Greece", "code": "GR"},
"GREENLAND": {"name": "Greenland", "code": "GL"},
"GRENADA": {"name": "Grenada", "code": "GD"},
Expand All @@ -119,10 +115,7 @@
"GUINEABISSAU": {"name": "Guinea-Bissau", "code": "GW"},
"GUYANA": {"name": "Guyana", "code": "GY"},
"HAITI": {"name": "Haiti", "code": "HT"},
"HEARDISLANDANDMCDONALDISLANDS": {
"name": "Heard Island and McDonald Islands",
"code": "HM",
},
"HEARDISLANDANDMCDONALDISLANDS": {"name": "Heard Island and McDonald Islands", "code": "HM"},
"HOLYSEE": {"name": "Holy See", "code": "VA"},
"HONDURAS": {"name": "Honduras", "code": "HN"},
"HONGKONG": {"name": "Hong Kong", "code": "HK"},
Expand All @@ -137,25 +130,20 @@
"ISRAEL": {"name": "Israel", "code": "IL"},
"ITALY": {"name": "Italy", "code": "IT"},
"JAMAICA": {"name": "Jamaica", "code": "JM"},
"JANMAYEN": {"name": "Jan Mayen", "code": "SJ"},
"JAPAN": {"name": "Japan", "code": "JP"},
"JERSEY": {"name": "Jersey", "code": "JE"},
"JORDAN": {"name": "Jordan", "code": "JO"},
"KAZAKHSTAN": {"name": "Kazakhstan", "code": "KZ"},
"KEELINGISLANDS": {"name": "Cocos (Keeling) Islands", "code": "CC"},
"KENYA": {"name": "Kenya", "code": "KE"},
"KIRIBATI": {"name": "Kiribati", "code": "KI"},
"DEMOCRATICPEOPLESREPUBLICOFKOREA": {
"name": "Democratic People's Republic of Korea",
"code": "KP",
},
"KOREA": {"name": "Republic of Korea", "code": "KR"},
"REPUBLICOFKOREA": {"name": "Republic of Korea", "code": "KR"},
"KOSOVO": {"name": "Kosovo", "code": "XK"},
"KUWAIT": {"name": "Kuwait", "code": "KW"},
"KYRGYZSTAN": {"name": "Kyrgyzstan", "code": "KG"},
"LAOPEOPLESDEMOCRATICREPUBLIC": {"name": "Lao People's Democratic Republic", "code": "LA"},
"LAOS": {"name": "Lao People's Democratic Republic", "code": "LA"},
"LAOPEOPLESDEMOCRATICREPUBLIC": {
"name": "Lao People's Democratic Republic",
"code": "LA",
},
"LATVIA": {"name": "Latvia", "code": "LV"},
"LEBANON": {"name": "Lebanon", "code": "LB"},
"LESOTHO": {"name": "Lesotho", "code": "LS"},
Expand All @@ -165,7 +153,6 @@
"LITHUANIA": {"name": "Lithuania", "code": "LT"},
"LUXEMBOURG": {"name": "Luxembourg", "code": "LU"},
"MACAO": {"name": "Macao", "code": "MO"},
"NORTHMACEDONIA": {"name": "North Macedonia", "code": "MK"},
"MACEDONIA": {"name": "North Macedonia", "code": "MK"},
"MADAGASCAR": {"name": "Madagascar", "code": "MG"},
"MALAWI": {"name": "Malawi", "code": "MW"},
Expand All @@ -180,6 +167,8 @@
"MAYOTTE": {"name": "Mayotte", "code": "YT"},
"MEXICO": {"name": "Mexico", "code": "MX"},
"MICRONESIA": {"name": "Micronesia", "code": "FM"},
"MIDWAYISLANDS": {"name": "Midway Islands", "code": "MI"},
"MINOROUTLYINGISLANDS": {"name": "United States Minor Outlying Islands", "code": "UM"},
"MOLDOVA": {"name": "Moldova", "code": "MD"},
"MONACO": {"name": "Monaco", "code": "MC"},
"MONGOLIA": {"name": "Mongolia", "code": "MN"},
Expand All @@ -188,19 +177,23 @@
"MOROCCO": {"name": "Morocco", "code": "MA"},
"MOZAMBIQUE": {"name": "Mozambique", "code": "MZ"},
"MYANMAR": {"name": "Myanmar", "code": "MM"},
"BURMA": {"name": "Myanmar", "code": "MM"},
"NAMIBIA": {"name": "Namibia", "code": "NA"},
"NAURU": {"name": "Nauru", "code": "NR"},
"NEPAL": {"name": "Nepal", "code": "NP"},
"NETHERLANDS": {"name": "Netherlands", "code": "NL"},
"NETHERLANDSANTILLES": {"name": "Netherlands Antilles", "code": "AN"},
"NEWCALEDONIA": {"name": "New Caledonia", "code": "NC"},
"NEWZEALAND": {"name": "New Zealand", "code": "NZ"},
"NICARAGUA": {"name": "Nicaragua", "code": "NI"},
"NIGER": {"name": "Niger", "code": "NE"},
"NIGERIA": {"name": "Nigeria", "code": "NG"},
"NIUE": {"name": "Niue", "code": "NU"},
"NORFOLKISLAND": {"name": "Norfolk Island", "code": "NF"},
"NORTHERNCYPRUS": {"name": "Northern Cyprus", "code": "NY"},
"NORTHERNIRELAND": {"name": "Northern Ireland", "code": "GB"},
"NORTHERNMARIANAISLANDS": {"name": "Northern Mariana Islands", "code": "MP"},
"NORTHKOREA": {"name": "Democratic People's Republic of Korea", "code": "KP"},
"NORTHMACEDONIA": {"name": "North Macedonia", "code": "MK"},
"NORWAY": {"name": "Norway", "code": "NO"},
"OMAN": {"name": "Oman", "code": "OM"},
"PAKISTAN": {"name": "Pakistan", "code": "PK"},
Expand All @@ -216,25 +209,24 @@
"PORTUGAL": {"name": "Portugal", "code": "PT"},
"PUERTORICO": {"name": "Puerto Rico", "code": "PR"},
"QATAR": {"name": "Qatar", "code": "QA"},
"RÉUNION": {"name": "Réunion", "code": "RE"},
"REPUBLICOFKOREA": {"name": "Republic of Korea", "code": "KR"},
"REPUBLICOFTHECONGO": {"name": "Republic of the Congo", "code": "CG"},
"REUNION": {"name": "Réunion", "code": "RE"},
"ROMANIA": {"name": "Romania", "code": "RO"},
"RUSSIANFEDERATION": {"name": "Russian Federation", "code": "RU"},
"RUSSIA": {"name": "Russian Federation", "code": "RU"},
"RUSSIANFEDERATION": {"name": "Russian Federation", "code": "RU"},
"RWANDA": {"name": "Rwanda", "code": "RW"},
"SAINTBARTHÉLEMY": {"name": "Saint Barthélemy", "code": "BL"},
"RÉUNION": {"name": "Réunion", "code": "RE"},
"SABA": {"name": "Saba", "code": "BQ"},
"SAINTBARTHELEMY": {"name": "Saint Barthélemy", "code": "BL"},
"SAINTBARTHÉLEMY": {"name": "Saint Barthélemy", "code": "BL"},
"SAINTHELENA": {"name": "Saint Helena", "code": "SH"},
"ASCENSIONISLAND": {"name": "Ascension Island", "code": "SH"},
"TRISTANDACUNHA": {"name": "Tristan da Cunha", "code": "SH"},
"SAINTKITTSANDNEVIS": {"name": "Saint Kitts and Nevis", "code": "KN"},
"SAINTLUCIA": {"name": "Saint Lucia", "code": "LC"},
"SAINTMARTIN": {"name": "Saint Martin", "code": "MF"},
"SAINTPIERREANDMIQUELON": {"name": "Saint Pierre and Miquelon", "code": "PM"},
"SAINTVINCENTANDTHEGRENADINES": {
"name": "Saint Vincent and the Grenadines",
"code": "VC",
},
"SAINTVINCENTANDTHEGRENADINES": {"name": "Saint Vincent and the Grenadines", "code": "VC"},
"SALVADOR": {"name": "El Salvador", "code": "SV"},
"SAMOA": {"name": "Samoa", "code": "WS"},
"SANMARINO": {"name": "San Marino", "code": "SM"},
"SAOTOMEANDPRINCIPE": {"name": "Sao Tome and Principe", "code": "ST"},
Expand All @@ -244,75 +236,60 @@
"SEYCHELLES": {"name": "Seychelles", "code": "SC"},
"SIERRALEONE": {"name": "Sierra Leone", "code": "SL"},
"SINGAPORE": {"name": "Singapore", "code": "SG"},
"SINTEUSTATIUS": {"name": "Sint Eustatius", "code": "BQ"},
"SINTMAARTEN": {"name": "Sint Maarten", "code": "SX"},
"SLOVAKIA": {"name": "Slovakia", "code": "SK"},
"SLOVENIA": {"name": "Slovenia", "code": "SI"},
"SOLOMONISLANDS": {"name": "Solomon Islands", "code": "SB"},
"SOMALIA": {"name": "Somalia", "code": "SO"},
"SOUTHAFRICA": {"name": "South Africa", "code": "ZA"},
"SOUTHGEORGIAANDTHESOUTHSANDWICHISLANDS": {
"name": "South Georgia and the South Sandwich Islands",
"code": "GS",
},
"SOUTHGEORGIAANDTHESOUTHSANDWICHISLANDS": {"name": "South Georgia and the South Sandwich Islands", "code": "GS"},
"SOUTHKOREA": {"name": "Republic of Korea", "code": "KR"},
"SOUTHSUDAN": {"name": "South Sudan", "code": "SS"},
"SPAIN": {"name": "Spain", "code": "ES"},
"SRILANKA": {"name": "Sri Lanka", "code": "LK"},
"SUDAN": {"name": "Sudan", "code": "SD"},
"SURINAME": {"name": "Suriname", "code": "SR"},
"SVALBARD": {"name": "Svalbard", "code": "SJ"},
"JANMAYEN": {"name": "Jan Mayen", "code": "SJ"},
"SWEDEN": {"name": "Sweden", "code": "SE"},
"SWITZERLAND": {"name": "Switzerland", "code": "CH"},
"SYRIANARABREPUBLIC": {"name": "Syrian Arab Republic", "code": "SY"},
"SYRIA": {"name": "Syrian Arab Republic", "code": "SY"},
"SYRIANARABREPUBLIC": {"name": "Syrian Arab Republic", "code": "SY"},
"TAIWAN": {"name": "Taiwan", "code": "TW"},
"TAJIKISTAN": {"name": "Tajikistan", "code": "TJ"},
"TANZANIA": {"name": "Tanzania", "code": "TZ"},
"THAILAND": {"name": "Thailand", "code": "TH"},
"TIMORLESTE": {"name": "Timor-Leste", "code": "TL"},
"EASTTIMOR": {"name": "Timor-Leste", "code": "TL"},
"TOGO": {"name": "Togo", "code": "TG"},
"TOKELAU": {"name": "Tokelau", "code": "TK"},
"TONGA": {"name": "Tonga", "code": "TO"},
"TRINIDADANDTOBAGO": {"name": "Trinidad and Tobago", "code": "TT"},
"TRISTANDACUNHA": {"name": "Tristan da Cunha", "code": "TA"},
"TUNISIA": {"name": "Tunisia", "code": "TN"},
"TURKEY": {"name": "Turkey", "code": "TR"},
"TURKMENISTAN": {"name": "Turkmenistan", "code": "TM"},
"TURKSANDCAICOSISLANDS": {"name": "Turks and Caicos Islands", "code": "TC"},
"TUVALU": {"name": "Tuvalu", "code": "TV"},
"UGANDA": {"name": "Uganda", "code": "UG"},
"UKRAINE": {"name": "Ukraine", "code": "UA"},
"UNITEDARABEMIRATES": {"name": "United Arab Emirates", "code": "AE"},
"UNITEDKINGDOM": {"name": "United Kingdom", "code": "GB"},
"GREATBRITAIN": {"name": "United Kingdom", "code": "GB"},
"UNITEDSTATE": {"name": "United States of America", "code": "US"},
"UNITEDSTATESMINOROUTLYINGISLANDS": {"name": "United States Minor Outlying Islands", "code": "UM"},
"MINOROUTLYINGISLANDS": {
"name": "United States Minor Outlying Islands",
"code": "UM",
},
"UNITEDSTATESOFAMERICA": {"name": "United States of America", "code": "US"},
"USA": {"name": "United States of America", "code": "US"},
"UNITEDSTATE": {"name": "United States of America", "code": "US"},
"UNITEDSTATESVIRGINISLANDS": {"name": "United States Virgin Islands", "code": "VI"},
"URUGUAY": {"name": "Uruguay", "code": "UY"},
"USA": {"name": "United States of America", "code": "US"},
"USVIRGINISLANDS": {"name": "US Virgin Islands", "code": "VI"},
"UZBEKISTAN": {"name": "Uzbekistan", "code": "UZ"},
"VANUATU": {"name": "Vanuatu", "code": "VU"},
"VENEZUELA": {"name": "Venezuela", "code": "VE"},
"VIETNAM": {"name": "Vietnam", "code": "VN"},
"BRITISHVIRGINISLANDS": {"name": "British Virgin Islands", "code": "VG"},
"USVIRGINISLANDS": {"name": "US Virgin Islands", "code": "VI"},
"UNITEDSTATESVIRGINISLANDS": {"name": "United States Virgin Islands", "code": "VI"},
"WALES": {"name": "Wales", "code": "GB"},
"WALLISANDFUTUNA": {"name": "Wallis and Futuna", "code": "WF"},
"WESTBANK": {"name": "West Bank", "code": "WB"},
"WESTERNSAHARA": {"name": "Western Sahara", "code": "EH"},
"YEMEN": {"name": "Yemen", "code": "YE"},
"ZAMBIA": {"name": "Zambia", "code": "ZM"},
"ZIMBABWE": {"name": "Zimbabwe", "code": "ZW"},
"WALES": {"name": "Wales", "code": "GB"},
"SOUTHKOREA": {"name": "Republic of Korea", "code": "KR"},
"NORTHERNIRELAND": {"name": "Northern Ireland", "code": "GB"},
"NORTHKOREA": {"name": "Democratic People's Republic of Korea", "code": "KP"},
"ENGLAND": {"name": "England", "code": "GB"},
"GAZASTRIP": {"name": "Gaza Strip", "code": "GS"},
"WESTBANK": {"name": "West Bank", "code": "WB"},
"NORTHERNCYPRUS": {"name": "Northern Cyprus", "code": "NY"},
"NETHERLANDSANTILLES": {"name": "Netherlands Antilles", "code": "AN"},
"MIDWAYISLANDS": {"name": "Midway Islands", "code": "MI"},
}
Loading

0 comments on commit 16f318c

Please sign in to comment.