From 2e1e1338901842c0e07a783c4be7c2bc938a1984 Mon Sep 17 00:00:00 2001 From: David Drysdale Date: Fri, 19 Apr 2024 06:32:44 +0100 Subject: [PATCH] Generated files for metadata --- python/phonenumbers/carrierdata/data0.py | 18 +++++++++--------- python/phonenumbers/carrierdata/data1.py | 4 ++-- python/phonenumbers/carrierdata/data2.py | 10 +++++++++- python/phonenumbers/data/region_CD.py | 2 +- python/phonenumbers/data/region_GE.py | 2 +- python/phonenumbers/data/region_GY.py | 2 +- python/phonenumbers/data/region_LA.py | 4 ++-- python/phonenumbers/data/region_PT.py | 4 ++-- python/phonenumbers/data/region_RO.py | 2 +- python/phonenumbers/data/region_SG.py | 2 +- python/phonenumbers/data/region_TD.py | 2 +- python/phonenumbers/geodata/data5.py | 2 +- 12 files changed, 31 insertions(+), 23 deletions(-) diff --git a/python/phonenumbers/carrierdata/data0.py b/python/phonenumbers/carrierdata/data0.py index f0330dbc6..f9cc8c5f2 100644 --- a/python/phonenumbers/carrierdata/data0.py +++ b/python/phonenumbers/carrierdata/data0.py @@ -1103,12 +1103,7 @@ '234913':{'en': 'MTN'}, '234915':{'en': 'Glo'}, '234916':{'en': 'MTN'}, - '23560':{'en': 'Airtel'}, - '23562':{'en': 'Airtel'}, - '23563':{'en': 'Airtel'}, - '23565':{'en': 'Airtel'}, - '23566':{'en': 'Airtel'}, - '23568':{'en': 'Airtel'}, + '2356':{'en': 'Airtel'}, '2357':{'en': 'Sotel'}, '2359':{'en': 'Tigo'}, '23670':{'en': 'A-Cell'}, @@ -1188,6 +1183,7 @@ '24383':{'en': 'Vodacom'}, '24384':{'en': 'Orange'}, '24385':{'en': 'Orange'}, + '24386':{'en': 'Vodacom'}, '24388':{'en': 'Yozma Timeturns sprl -YTT'}, '24389':{'en': 'Orange'}, '24390':{'en': 'Africell'}, @@ -1199,7 +1195,7 @@ '24492':{'en': 'UNITEL'}, '24493':{'en': 'UNITEL'}, '24494':{'en': 'UNITEL'}, - '24495':{'en': 'Africell Angola'}, + '24495':{'en': 'Africell'}, '24499':{'en': 'Movicel'}, '24595':{'en': 'Orange'}, '24596':{'en': 'Spacetel'}, @@ -2560,14 +2556,18 @@ '351609230':{'en': 'NOS'}, '35160929':{'en': 'NOS'}, '3516093':{'en': 'NOS'}, + '35163920':{'en': 'Lycamobile'}, '351639230':{'en': 'NOS'}, '351639233':{'en': 'Digi Communications'}, '351639234':{'en': 'G9 Telecom'}, + '35163924':{'en': 'MEO'}, '35163929':{'en': 'NOS'}, '3516393':{'en': 'NOS'}, + '35165920':{'en': 'Lycamobile'}, '351659230':{'en': 'NOS'}, '351659233':{'en': 'Digi Communications'}, '351659234':{'en': 'G9 Telecom'}, + '35165924':{'en': 'MEO'}, '35165929':{'en': 'NOS'}, '3516593':{'en': 'NOS'}, '351669230':{'en': 'NOS'}, @@ -2580,6 +2580,7 @@ '3519203':{'en': 'Lycamobile'}, '3519204':{'en': 'Lycamobile'}, '3519205':{'en': 'Lycamobile'}, + '3519208':{'en': 'Lycamobile'}, '351921':{'en': 'Vodafone'}, '3519220':{'en': 'Vodafone'}, '3519221':{'en': 'MEO'}, @@ -3407,6 +3408,7 @@ '3938':{'en': 'WIND'}, '39383':{'en': 'Vodafone'}, '3939':{'en': '3 Italia'}, + '4060':{'en': 'Telekom'}, '4062':{'en': 'Vodafone'}, '4064':{'en': 'Orange'}, '407000':{'en': 'Enigma-System'}, @@ -10017,6 +10019,4 @@ '55319911':{'en': 'TIM'}, '55319912':{'en': 'TIM'}, '55319913':{'en': 'TIM'}, - '55319914':{'en': 'TIM'}, - '55319915':{'en': 'TIM'}, } diff --git a/python/phonenumbers/carrierdata/data1.py b/python/phonenumbers/carrierdata/data1.py index 57aeb280e..c7c6f9e49 100644 --- a/python/phonenumbers/carrierdata/data1.py +++ b/python/phonenumbers/carrierdata/data1.py @@ -19,6 +19,8 @@ # limitations under the License. data = { + '55319914':{'en': 'TIM'}, + '55319915':{'en': 'TIM'}, '553199161':{'en': 'TIM'}, '553199162':{'en': 'TIM'}, '553199163':{'en': 'TIM'}, @@ -10017,6 +10019,4 @@ '5699586':{'en': 'Claro'}, '5699587':{'en': 'Claro'}, '5699588':{'en': 'Claro'}, - '5699589':{'en': 'Claro'}, - '569959':{'en': 'Entel'}, } diff --git a/python/phonenumbers/carrierdata/data2.py b/python/phonenumbers/carrierdata/data2.py index 1f55dc6b3..eb051f02c 100644 --- a/python/phonenumbers/carrierdata/data2.py +++ b/python/phonenumbers/carrierdata/data2.py @@ -19,6 +19,8 @@ # limitations under the License. data = { + '5699589':{'en': 'Claro'}, + '569959':{'en': 'Entel'}, '5699600':{'en': 'Movistar'}, '5699601':{'en': 'Entel'}, '5699602':{'en': 'Movistar'}, @@ -504,7 +506,10 @@ '592708':{'en': 'GTT'}, '592709':{'en': 'GTT'}, '59271':{'en': 'E-Networks'}, - '59272':{'en': 'GTT'}, + '592721':{'en': 'GTT'}, + '592722':{'en': 'Digicel Guyana'}, + '592725':{'en': 'GTT'}, + '592726':{'en': 'GTT'}, '59273':{'en': 'E-Networks'}, '59274':{'en': 'GTT'}, '59393':{'en': 'Claro'}, @@ -1320,6 +1325,7 @@ '658090':{'en': 'SingTel'}, '658091':{'en': 'M1'}, '658092':{'en': 'Simba'}, + '658094':{'en': 'M1'}, '6581':{'en': 'StarHub'}, '65810':{'en': 'M1'}, '65812':{'en': 'SingTel'}, @@ -4729,6 +4735,7 @@ '856208':{'en': 'Best Telecom'}, '856209':{'en': 'Unitel'}, '856302':{'en': 'ETL'}, + '856304':{'en': 'Unitel'}, '86130':{'en': 'China Unicom', 'zh': u('\u4e2d\u56fd\u8054\u901a'), 'zh_Hant': u('\u4e2d\u570b\u806f\u901a')}, '86131':{'en': 'China Unicom', 'zh': u('\u4e2d\u56fd\u8054\u901a'), 'zh_Hant': u('\u4e2d\u570b\u806f\u901a')}, '86132':{'en': 'China Unicom', 'zh': u('\u4e2d\u56fd\u8054\u901a'), 'zh_Hant': u('\u4e2d\u570b\u806f\u901a')}, @@ -8731,6 +8738,7 @@ '9955055':{'en': 'MagtiCom'}, '995510':{'en': 'Silknet'}, '99551100':{'en': 'MagtiCom'}, + '99551101':{'en': 'Silknet'}, '99551107':{'en': 'Silknet'}, '9955111':{'en': 'MagtiCom'}, '9955112':{'en': 'MagtiCom'}, diff --git a/python/phonenumbers/data/region_CD.py b/python/phonenumbers/data/region_CD.py index 85f4579c1..501c10135 100644 --- a/python/phonenumbers/data/region_CD.py +++ b/python/phonenumbers/data/region_CD.py @@ -4,7 +4,7 @@ PHONE_METADATA_CD = PhoneMetadata(id='CD', country_code=243, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[189]\\d{8}|[1-68]\\d{6}', possible_length=(7, 9)), fixed_line=PhoneNumberDesc(national_number_pattern='12\\d{7}|[1-6]\\d{6}', example_number='1234567', possible_length=(7, 9)), - mobile=PhoneNumberDesc(national_number_pattern='88\\d{5}|(?:8[0-59]|9[017-9])\\d{7}', example_number='991234567', possible_length=(7, 9)), + mobile=PhoneNumberDesc(national_number_pattern='88\\d{5}|(?:8[0-69]|9[017-9])\\d{7}', example_number='991234567', possible_length=(7, 9)), national_prefix='0', national_prefix_for_parsing='0', number_format=[NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['88'], national_prefix_formatting_rule='0\\1'), diff --git a/python/phonenumbers/data/region_GE.py b/python/phonenumbers/data/region_GE.py index 6cf1f77b6..59baf2188 100644 --- a/python/phonenumbers/data/region_GE.py +++ b/python/phonenumbers/data/region_GE.py @@ -4,7 +4,7 @@ PHONE_METADATA_GE = PhoneMetadata(id='GE', country_code=995, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='(?:[3-57]\\d\\d|800)\\d{6}', possible_length=(9,), possible_length_local_only=(6, 7)), fixed_line=PhoneNumberDesc(national_number_pattern='(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}', example_number='322123456', possible_length=(9,), possible_length_local_only=(6, 7)), - mobile=PhoneNumberDesc(national_number_pattern='5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|(?:5(?:0(?:0(?:0\\d|11|22|33|44|5[05]|77|88|9[09])|111)|1(?:1(?:00|[124]\\d|3[01])|4\\d\\d)|(?:44|68)\\d\\d|5(?:[0157-9]\\d\\d|200)|7(?:[0147-9]\\d\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|58[89]|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}|5(?:0(?:0[17]0|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}', example_number='555123456', possible_length=(9,)), + mobile=PhoneNumberDesc(national_number_pattern='5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d|22252[0-4])\\d\\d|(?:5(?:0(?:0(?:0\\d|11|22|33|44|5[05]|77|88|9[09])|111)|1(?:1(?:[03][01]|[124]\\d)|4\\d\\d)|(?:44|6[89])\\d\\d|5(?:[0157-9]\\d\\d|200)|7(?:[0147-9]\\d\\d|5(?:00|[57]5))|8(?:0(?:[018]\\d|2[0-4])|58[89]|8(?:55|88))|9(?:090|[1-35-9]\\d\\d))|790\\d\\d)\\d{4}|5(?:0(?:0[17]0|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|(?:40[04]|900)0|5222)[0-4]\\d{3}', example_number='555123456', possible_length=(9,)), toll_free=PhoneNumberDesc(national_number_pattern='800\\d{6}', example_number='800123456', possible_length=(9,)), voip=PhoneNumberDesc(national_number_pattern='70[67]\\d{6}', example_number='706123456', possible_length=(9,)), no_international_dialling=PhoneNumberDesc(national_number_pattern='70[67]\\d{6}', possible_length=(9,)), diff --git a/python/phonenumbers/data/region_GY.py b/python/phonenumbers/data/region_GY.py index 4e7a7b59f..ba08aecd3 100644 --- a/python/phonenumbers/data/region_GY.py +++ b/python/phonenumbers/data/region_GY.py @@ -4,7 +4,7 @@ PHONE_METADATA_GY = PhoneMetadata(id='GY', country_code=592, international_prefix='001', general_desc=PhoneNumberDesc(national_number_pattern='(?:[2-8]\\d{3}|9008)\\d{3}', possible_length=(7,)), fixed_line=PhoneNumberDesc(national_number_pattern='(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|50[0-6]|77[1-57])\\d{4}', example_number='2201234', possible_length=(7,)), - mobile=PhoneNumberDesc(national_number_pattern='(?:510|6\\d\\d|7(?:[01]\\d|2[156]|3[12]|49))\\d{4}', example_number='6091234', possible_length=(7,)), + mobile=PhoneNumberDesc(national_number_pattern='(?:510|6\\d\\d|7(?:[01]\\d|2[1256]|3[12]|49))\\d{4}', example_number='6091234', possible_length=(7,)), toll_free=PhoneNumberDesc(national_number_pattern='(?:289|8(?:00|6[28]|88|99))\\d{4}', example_number='2891234', possible_length=(7,)), premium_rate=PhoneNumberDesc(national_number_pattern='9008\\d{3}', example_number='9008123', possible_length=(7,)), voip=PhoneNumberDesc(national_number_pattern='515\\d{4}', example_number='5151234', possible_length=(7,)), diff --git a/python/phonenumbers/data/region_LA.py b/python/phonenumbers/data/region_LA.py index 0a3ee7c23..e82787048 100644 --- a/python/phonenumbers/data/region_LA.py +++ b/python/phonenumbers/data/region_LA.py @@ -4,8 +4,8 @@ PHONE_METADATA_LA = PhoneMetadata(id='LA', country_code=856, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}', possible_length=(8, 9, 10), possible_length_local_only=(6,)), fixed_line=PhoneNumberDesc(national_number_pattern='(?:2[13]|[35-7][14]|41|8[1468])\\d{6}', example_number='21212862', possible_length=(8,), possible_length_local_only=(6,)), - mobile=PhoneNumberDesc(national_number_pattern='2088\\d{6}|(?:20[23579]|302)\\d{7}', example_number='2023123456', possible_length=(10,)), - uan=PhoneNumberDesc(national_number_pattern='30[013-9]\\d{6}', example_number='301234567', possible_length=(9,)), + mobile=PhoneNumberDesc(national_number_pattern='(?:20(?:[23579]\\d|88)|30(?:2\\d|4))\\d{6}', example_number='2023123456', possible_length=(9, 10)), + uan=PhoneNumberDesc(national_number_pattern='30[0135-9]\\d{6}', example_number='301234567', possible_length=(9,)), national_prefix='0', national_prefix_for_parsing='0', number_format=[NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['2[13]|3[14]|[4-8]'], national_prefix_formatting_rule='0\\1'), diff --git a/python/phonenumbers/data/region_PT.py b/python/phonenumbers/data/region_PT.py index 3620615d3..02aebbd50 100644 --- a/python/phonenumbers/data/region_PT.py +++ b/python/phonenumbers/data/region_PT.py @@ -4,7 +4,7 @@ PHONE_METADATA_PT = PhoneMetadata(id='PT', country_code=351, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='1693\\d{5}|(?:[26-9]\\d|30)\\d{7}', possible_length=(9,)), fixed_line=PhoneNumberDesc(national_number_pattern='2(?:[12]\\d|3[1-689]|4[1-59]|[57][1-9]|6[1-35689]|8[1-69]|9[1256])\\d{6}', example_number='212345678', possible_length=(9,)), - mobile=PhoneNumberDesc(national_number_pattern='6(?:[06]92(?:30|9\\d)|[35]92(?:3[034]|9\\d))\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}', example_number='912345678', possible_length=(9,)), + mobile=PhoneNumberDesc(national_number_pattern='6(?:[06]92(?:30|9\\d)|[35]92(?:[049]\\d|3[034]))\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}', example_number='912345678', possible_length=(9,)), toll_free=PhoneNumberDesc(national_number_pattern='80[02]\\d{6}', example_number='800123456', possible_length=(9,)), premium_rate=PhoneNumberDesc(national_number_pattern='(?:6(?:0[178]|4[68])\\d|76(?:0[1-57]|1[2-47]|2[237]))\\d{5}', example_number='760123456', possible_length=(9,)), shared_cost=PhoneNumberDesc(national_number_pattern='80(?:8\\d|9[1579])\\d{5}', example_number='808123456', possible_length=(9,)), @@ -12,7 +12,7 @@ voip=PhoneNumberDesc(national_number_pattern='30\\d{7}', example_number='301234567', possible_length=(9,)), pager=PhoneNumberDesc(national_number_pattern='6(?:222\\d|8988)\\d{4}', example_number='622212345', possible_length=(9,)), uan=PhoneNumberDesc(national_number_pattern='70(?:38[01]|596|(?:7\\d|8[17])\\d)\\d{4}', example_number='707123456', possible_length=(9,)), - voicemail=PhoneNumberDesc(national_number_pattern='600\\d{6}|6[06]923[34]\\d{3}', example_number='600110000', possible_length=(9,)), + voicemail=PhoneNumberDesc(national_number_pattern='600\\d{6}|6[06]92(?:0\\d|3[349]|49)\\d{3}', example_number='600110000', possible_length=(9,)), number_format=[NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['2[12]']), NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['16|[236-9]'])], mobile_number_portable_region=True) diff --git a/python/phonenumbers/data/region_RO.py b/python/phonenumbers/data/region_RO.py index ed65d612d..3e5404957 100644 --- a/python/phonenumbers/data/region_RO.py +++ b/python/phonenumbers/data/region_RO.py @@ -4,7 +4,7 @@ PHONE_METADATA_RO = PhoneMetadata(id='RO', country_code=40, international_prefix='00', general_desc=PhoneNumberDesc(national_number_pattern='(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}', possible_length=(6, 9)), fixed_line=PhoneNumberDesc(national_number_pattern='[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d', example_number='211234567', possible_length=(6, 9)), - mobile=PhoneNumberDesc(national_number_pattern='7020\\d{5}|(?:6(?:2\\d|40)|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}', example_number='712034567', possible_length=(9,)), + mobile=PhoneNumberDesc(national_number_pattern='7020\\d{5}|(?:6(?:[04]0|2\\d)|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[0-39]))\\d{6}', example_number='712034567', possible_length=(9,)), toll_free=PhoneNumberDesc(national_number_pattern='800\\d{6}', example_number='800123456', possible_length=(9,)), premium_rate=PhoneNumberDesc(national_number_pattern='90[0136]\\d{6}', example_number='900123456', possible_length=(9,)), shared_cost=PhoneNumberDesc(national_number_pattern='801\\d{6}', example_number='801123456', possible_length=(9,)), diff --git a/python/phonenumbers/data/region_SG.py b/python/phonenumbers/data/region_SG.py index 37f6d81f6..21eaadb8c 100644 --- a/python/phonenumbers/data/region_SG.py +++ b/python/phonenumbers/data/region_SG.py @@ -4,7 +4,7 @@ PHONE_METADATA_SG = PhoneMetadata(id='SG', country_code=65, international_prefix='0[0-3]\\d', general_desc=PhoneNumberDesc(national_number_pattern='(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}', possible_length=(8, 10, 11)), fixed_line=PhoneNumberDesc(national_number_pattern='662[0-24-9]\\d{4}|6(?:[0-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}', example_number='61234567', possible_length=(8,)), - mobile=PhoneNumberDesc(national_number_pattern='8(?:09|95)[0-2]\\d{4}|(?:8(?:0[1-8]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}', example_number='81234567', possible_length=(8,)), + mobile=PhoneNumberDesc(national_number_pattern='8(?:09[0-24]|95[0-2])\\d{4}|(?:8(?:0[1-8]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}', example_number='81234567', possible_length=(8,)), toll_free=PhoneNumberDesc(national_number_pattern='(?:18|8)00\\d{7}', example_number='18001234567', possible_length=(10, 11)), premium_rate=PhoneNumberDesc(national_number_pattern='1900\\d{7}', example_number='19001234567', possible_length=(11,)), voip=PhoneNumberDesc(national_number_pattern='(?:3[12]\\d|666)\\d{5}', example_number='31234567', possible_length=(8,)), diff --git a/python/phonenumbers/data/region_TD.py b/python/phonenumbers/data/region_TD.py index fdbc1f81c..adcae4a4e 100644 --- a/python/phonenumbers/data/region_TD.py +++ b/python/phonenumbers/data/region_TD.py @@ -4,6 +4,6 @@ PHONE_METADATA_TD = PhoneMetadata(id='TD', country_code=235, international_prefix='00|16', general_desc=PhoneNumberDesc(national_number_pattern='(?:22|[69]\\d|77)\\d{6}', possible_length=(8,)), fixed_line=PhoneNumberDesc(national_number_pattern='22(?:[37-9]0|5[0-5]|6[89])\\d{4}', example_number='22501234', possible_length=(8,)), - mobile=PhoneNumberDesc(national_number_pattern='(?:6[0235689]|77|9\\d)\\d{6}', example_number='63012345', possible_length=(8,)), + mobile=PhoneNumberDesc(national_number_pattern='(?:6[0-689]|77|9\\d)\\d{6}', example_number='63012345', possible_length=(8,)), preferred_international_prefix='00', number_format=[NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[2679]'])]) diff --git a/python/phonenumbers/geodata/data5.py b/python/phonenumbers/geodata/data5.py index 8774b128e..5e0c22471 100644 --- a/python/phonenumbers/geodata/data5.py +++ b/python/phonenumbers/geodata/data5.py @@ -7944,7 +7944,7 @@ '492623':{'de': 'Ransbach-Baumbach', 'en': 'Ransbach-Baumbach'}, '492624':{'de': u('H\u00f6hr-Grenzhausen'), 'en': u('H\u00f6hr-Grenzhausen')}, '492625':{'de': 'Ochtendung', 'en': 'Ochtendung'}, - '492626':{'de': 'Selters Westferwald', 'en': 'Selters Westferwald'}, + '492626':{'de': 'Selters Westerwald', 'en': 'Selters Westerwald'}, '492627':{'de': 'Braubach', 'en': 'Braubach'}, '492628':{'de': 'Rhens', 'en': 'Rhens'}, '492630':{'de': u('M\u00fclheim-K\u00e4rlich'), 'en': u('M\u00fclheim-K\u00e4rlich')},