Skip to content

Commit

Permalink
Generated files for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddrysdale committed Jan 26, 2024
1 parent 87adbb9 commit 7224ed4
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 17 deletions.
4 changes: 2 additions & 2 deletions python/phonenumbers/carrierdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -3549,6 +3549,7 @@
'4207057':{'en': 'T-Mobile'},
'4207058':{'en': 'T-Mobile'},
'4207059':{'en': 'T-Mobile'},
'420706':{'en': 'DataCell'},
'42072':{'en': 'O2'},
'4207300':{'en': 'T-Mobile'},
'4207301':{'en': 'T-Mobile'},
Expand Down Expand Up @@ -3683,6 +3684,7 @@
'4207951':{'en': 'Vectone Distribution Czech Republic s.r.o(Mundio)'},
'4207952':{'en': 'O2'},
'4207953':{'en': 'O2'},
'4207954':{'en': 'Tesco Mobile CR'},
'42079750':{'en': 'Dial Telecom'},
'4207976':{'en': 'T-Mobile'},
'42079770':{'en': 'T-Mobile'},
Expand Down Expand Up @@ -10017,6 +10019,4 @@
'553199604':{'en': 'Telemig Celular'},
'553199605':{'en': 'Telemig Celular'},
'553199606':{'en': 'Telemig Celular'},
'553199607':{'en': 'Telemig Celular'},
'553199608':{'en': 'Telemig Celular'},
}
4 changes: 2 additions & 2 deletions python/phonenumbers/carrierdata/data1.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
# limitations under the License.

data = {
'553199607':{'en': 'Telemig Celular'},
'553199608':{'en': 'Telemig Celular'},
'553199609':{'en': 'Telemig Celular'},
'553199611':{'en': 'Telemig Celular'},
'553199612':{'en': 'Telemig Celular'},
Expand Down Expand Up @@ -10017,6 +10019,4 @@
'5699966':{'en': 'Entel'},
'5699967':{'en': 'Entel'},
'5699968':{'en': 'Entel'},
'5699969':{'en': 'Entel'},
'5699970':{'en': 'Movistar'},
}
7 changes: 4 additions & 3 deletions python/phonenumbers/carrierdata/data2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
# limitations under the License.

data = {
'5699969':{'en': 'Entel'},
'5699970':{'en': 'Movistar'},
'5699971':{'en': 'Movistar'},
'5699972':{'en': 'Movistar'},
'5699973':{'en': 'Movistar'},
Expand Down Expand Up @@ -1030,6 +1032,7 @@
'61460':{'en': 'Telstra'},
'61461':{'en': 'Telstra'},
'61462':{'en': 'Telstra'},
'61463':{'en': 'Telstra'},
'61466':{'en': 'Optus'},
'61467':{'en': 'Telstra'},
'61468':{'en': 'Optus'},
Expand Down Expand Up @@ -2572,9 +2575,7 @@
'69197':{'en': 'FSMTC'},
'69223':{'en': 'National Telecommunications Authority'},
'6923':{'en': 'National Telecommunications Authority'},
'692453':{'en': 'National Telecommunications Authority'},
'692455':{'en': 'National Telecommunications Authority'},
'692456':{'en': 'National Telecommunications Authority'},
'6924':{'en': 'National Telecommunications Authority'},
'69254':{'en': 'National Telecommunications Authority'},
'7700':{'en': 'Altel', 'ru': u('\u0410\u041b\u0422\u0415\u041b')},
'7701':{'en': 'Kcell/Activ', 'ru': 'Kcell/Activ'},
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_AU.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_AU = PhoneMetadata(id='AU', country_code=61, international_prefix='001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011',
general_desc=PhoneNumberDesc(national_number_pattern='1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}', possible_length=(5, 6, 7, 8, 9, 10, 12)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}', example_number='212345678', possible_length=(9,), possible_length_local_only=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}', example_number='412345678', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}', example_number='412345678', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='180(?:0\\d{3}|2)\\d{3}', example_number='1800123456', possible_length=(7, 10)),
premium_rate=PhoneNumberDesc(national_number_pattern='190[0-26]\\d{6}', example_number='1900123456', possible_length=(10,)),
shared_cost=PhoneNumberDesc(national_number_pattern='13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}', example_number='1300123456', possible_length=(6, 8, 10, 12)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_CC.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_CC = PhoneMetadata(id='CC', country_code=61, international_prefix='001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011',
general_desc=PhoneNumberDesc(national_number_pattern='1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}', possible_length=(6, 7, 8, 9, 10, 12)),
fixed_line=PhoneNumberDesc(national_number_pattern='8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}', example_number='891621234', possible_length=(9,), possible_length_local_only=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}', example_number='412345678', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}', example_number='412345678', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='180(?:0\\d{3}|2)\\d{3}', example_number='1800123456', possible_length=(7, 10)),
premium_rate=PhoneNumberDesc(national_number_pattern='190[0-26]\\d{6}', example_number='1900123456', possible_length=(10,)),
shared_cost=PhoneNumberDesc(national_number_pattern='13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}', example_number='1300123456', possible_length=(6, 8, 10, 12)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_CX.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_CX = PhoneMetadata(id='CX', country_code=61, international_prefix='001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011',
general_desc=PhoneNumberDesc(national_number_pattern='1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}', possible_length=(6, 7, 8, 9, 10, 12)),
fixed_line=PhoneNumberDesc(national_number_pattern='8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}', example_number='891641234', possible_length=(9,), possible_length_local_only=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}', example_number='412345678', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-36-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}', example_number='412345678', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='180(?:0\\d{3}|2)\\d{3}', example_number='1800123456', possible_length=(7, 10)),
premium_rate=PhoneNumberDesc(national_number_pattern='190[0-26]\\d{6}', example_number='1900123456', possible_length=(10,)),
shared_cost=PhoneNumberDesc(national_number_pattern='13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}', example_number='1300123456', possible_length=(6, 8, 10, 12)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_CZ.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_CZ = PhoneMetadata(id='CZ', country_code=420, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}', possible_length=(9, 10, 11, 12)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}', example_number='212345678', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}', example_number='601123456', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='7060\\d{5}|(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}', example_number='601123456', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{6}', example_number='800123456', possible_length=(9,)),
premium_rate=PhoneNumberDesc(national_number_pattern='9(?:0[05689]|76)\\d{6}', example_number='900123456', possible_length=(9,)),
shared_cost=PhoneNumberDesc(national_number_pattern='8[134]\\d{7}', example_number='811234567', possible_length=(9,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_GF.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PHONE_METADATA_GF = PhoneMetadata(id='GF', country_code=594, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[56]94\\d{6}|(?:80|9\\d)\\d{7}', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='594(?:[02-49]\\d|1[0-4]|5[6-9]|6[0-3]|80)\\d{4}', example_number='594101234', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='594(?:[02-49]\\d|1[0-5]|5[6-9]|6[0-3]|80)\\d{4}', example_number='594101234', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='694(?:[0-249]\\d|3[0-8])\\d{4}', example_number='694201234', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='80[0-5]\\d{6}', example_number='800012345', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='9(?:(?:396|76\\d)\\d|476[0-5])\\d{4}', example_number='976012345', possible_length=(9,)),
Expand Down
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_MH.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

PHONE_METADATA_MH = PhoneMetadata(id='MH', country_code=692, international_prefix='011',
general_desc=PhoneNumberDesc(national_number_pattern='329\\d{4}|(?:[256]\\d|45)\\d{5}', possible_length=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:247|45[78]|528|625)\\d{4}', example_number='2471234', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:(?:23|54)5|329|45[356])\\d{4}', example_number='2351234', possible_length=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:247|528|625)\\d{4}', example_number='2471234', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:(?:23|54)5|329|45[35-8])\\d{4}', example_number='2351234', possible_length=(7,)),
voip=PhoneNumberDesc(national_number_pattern='635\\d{4}', example_number='6351234', possible_length=(7,)),
national_prefix='1',
national_prefix_for_parsing='1',
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_MQ.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PHONE_METADATA_MQ = PhoneMetadata(id='MQ', country_code=596, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='596\\d{6}|(?:69|80|9\\d)\\d{7}', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='596(?:[03-7]\\d|10|2[7-9]|8[0-39]|9[04-9])\\d{4}', example_number='596301234', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='596(?:[03-7]\\d|1[05]|2[7-9]|8[0-39]|9[04-9])\\d{4}', example_number='596301234', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='69(?:6(?:[0-46-9]\\d|5[0-6])|727)\\d{4}', example_number='696201234', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='80[0-5]\\d{6}', example_number='800012345', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='9(?:397[0-3]|477[0-5]|76(?:6\\d|7[0-367]))\\d{4}', example_number='976612345', possible_length=(9,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_TH.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_TH = PhoneMetadata(id='TH', country_code=66, international_prefix='00[1-9]',
general_desc=PhoneNumberDesc(national_number_pattern='(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}', possible_length=(8, 9, 10, 13)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}', example_number='21234567', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='671[0-8]\\d{5}|(?:14|6[1-6]|[89]\\d)\\d{7}', example_number='812345678', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='67(?:1[0-8]|2[4-7])\\d{5}|(?:14|6[1-6]|[89]\\d)\\d{7}', example_number='812345678', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='(?:001800\\d|1800)\\d{6}', example_number='1800123456', possible_length=(10, 13)),
premium_rate=PhoneNumberDesc(national_number_pattern='1900\\d{6}', example_number='1900123456', possible_length=(10,)),
voip=PhoneNumberDesc(national_number_pattern='6[08]\\d{7}', example_number='601234567', possible_length=(9,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_YT.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PHONE_METADATA_YT = PhoneMetadata(id='YT', country_code=262, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='269(?:0[0-467]|5[0-4]|6\\d|[78]0)\\d{4}', example_number='269601234', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}', example_number='269601234', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}', example_number='639012345', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='80\\d{7}', example_number='801234567', possible_length=(9,)),
voip=PhoneNumberDesc(national_number_pattern='9(?:(?:39|47)8[01]|769\\d)\\d{4}', example_number='939801234', possible_length=(9,)),
Expand Down

0 comments on commit 7224ed4

Please sign in to comment.