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 Aug 26, 2024
1 parent 1066b15 commit c20d99a
Show file tree
Hide file tree
Showing 39 changed files with 1,803 additions and 1,868 deletions.
12 changes: 6 additions & 6 deletions python/phonenumbers/carrierdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -804,6 +804,9 @@
'21896':{'en': 'Libya Telecom & Technology'},
'2202':{'en': 'Africell'},
'2203':{'en': 'QCell'},
'22040':{'en': 'Africell'},
'22041':{'en': 'Africell'},
'22045':{'en': 'Africell'},
'22050':{'en': 'QCell'},
'22051':{'en': 'QCell'},
'22052':{'en': 'QCell'},
Expand Down Expand Up @@ -881,6 +884,7 @@
'22601':{'en': 'Onatel'},
'22602':{'en': 'Onatel'},
'22603':{'en': 'Onatel'},
'22604':{'en': 'Orange'},
'22605':{'en': 'Orange'},
'22606':{'en': 'Orange'},
'22607':{'en': 'Orange'},
Expand Down Expand Up @@ -1851,7 +1855,8 @@
'31685':{'en': 'Lycamobile'},
'31686':{'en': 'Lycamobile'},
'31687':{'en': 'Lycamobile'},
'3245001':{'en': 'Gateway Communications'},
'3245001':{'en': 'GATEWAY COMMUNICATIONS S.A.'},
'324510':{'en': 'DIGI Communications'},
'32455':{'en': 'VOO'},
'32456':{'en': 'Mobile Vikings/JIM Mobile'},
'32460':{'en': 'Proximus'},
Expand Down Expand Up @@ -3420,7 +3425,6 @@
'4060':{'en': 'Telekom'},
'4062':{'en': 'Vodafone'},
'4063':{'en': 'Digi Mobil'},
'4064':{'en': 'Orange'},
'407000':{'en': 'Enigma-System'},
'407013':{'en': 'Lycamobile'},
'407014':{'en': 'Lycamobile'},
Expand Down Expand Up @@ -10015,8 +10019,4 @@
'552899994':{'en': 'Vivo'},
'552899995':{'en': 'Vivo'},
'552899996':{'en': 'Vivo'},
'552899997':{'en': 'Vivo'},
'552899998':{'en': 'Vivo'},
'55319820':{'en': 'Claro'},
'55319821':{'en': 'Claro'},
}
8 changes: 4 additions & 4 deletions python/phonenumbers/carrierdata/data1.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
# limitations under the License.

data = {
'552899997':{'en': 'Vivo'},
'552899998':{'en': 'Vivo'},
'55319820':{'en': 'Claro'},
'55319821':{'en': 'Claro'},
'55319822':{'en': 'Claro'},
'55319823':{'en': 'Claro'},
'553198240':{'en': 'Claro'},
Expand Down Expand Up @@ -10015,8 +10019,4 @@
'569936':{'en': 'Movistar'},
'569937':{'en': 'Movistar'},
'5699380':{'en': 'Movistar'},
'5699381':{'en': 'Movistar'},
'5699382':{'en': 'Entel'},
'5699383':{'en': 'Entel'},
'5699385':{'en': 'Claro'},
}
39 changes: 22 additions & 17 deletions python/phonenumbers/carrierdata/data2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
# limitations under the License.

data = {
'5699381':{'en': 'Movistar'},
'5699382':{'en': 'Entel'},
'5699383':{'en': 'Entel'},
'5699385':{'en': 'Claro'},
'5699386':{'en': 'Claro'},
'5699387':{'en': 'Claro'},
'5699388':{'en': 'Claro'},
Expand Down Expand Up @@ -1349,6 +1353,7 @@
'658095':{'en': 'SingTel'},
'658096':{'en': 'Simba'},
'658098':{'en': 'Simba'},
'658099':{'en': 'SingTel'},
'6581':{'en': 'StarHub'},
'65810':{'en': 'M1'},
'65812':{'en': 'SingTel'},
Expand All @@ -1366,6 +1371,7 @@
'658228':{'en': 'SingTel'},
'65826':{'en': 'SingTel'},
'65827':{'en': 'M1'},
'658274':{'en': 'Simba'},
'65828':{'en': 'SingTel'},
'658282':{'en': 'M1'},
'658288':{'en': 'M1'},
Expand Down Expand Up @@ -2368,18 +2374,21 @@
'67238':{'en': 'Norfolk Telecom'},
'673228':{'en': 'DSTCom'},
'673229':{'en': 'DSTCom'},
'67371':{'en': 'DSTCom'},
'67372':{'en': 'DSTCom'},
'67373':{'en': 'DSTCom'},
'67374':{'en': 'Imagine'},
'67377':{'en': 'DSTCom'},
'67381':{'en': 'Progresif Cellular'},
'67382':{'en': 'Progresif Cellular'},
'67383':{'en': 'Progresif Cellular'},
'67386':{'en': 'DSTCom'},
'67387':{'en': 'DSTCom'},
'67388':{'en': 'DSTCom'},
'67389':{'en': 'DSTCom'},
'67371':{'en': 'UNN'},
'67372':{'en': 'UNN'},
'67373':{'en': 'UNN'},
'67374':{'en': 'UNN'},
'67376':{'en': 'UNN'},
'67377':{'en': 'UNN'},
'67379':{'en': 'UNN'},
'67381':{'en': 'UNN'},
'67382':{'en': 'UNN'},
'67383':{'en': 'UNN'},
'67384':{'en': 'UNN'},
'67386':{'en': 'UNN'},
'67387':{'en': 'UNN'},
'67388':{'en': 'UNN'},
'67389':{'en': 'UNN'},
'674553':{'en': 'Digicel'},
'674554':{'en': 'Digicel'},
'674556':{'en': 'Digicel'},
Expand Down Expand Up @@ -8677,15 +8686,11 @@
'9899997':{'en': 'Rightel', 'fa': u('\u0631\u0627\u06cc\u062a\u0644')},
'9899998':{'en': 'Rightel', 'fa': u('\u0631\u0627\u06cc\u062a\u0644')},
'9899999':{'en': 'Rightel', 'fa': u('\u0631\u0627\u06cc\u062a\u0644')},
'9920':{'en': 'ZET-MOBILE'},
'99200':{'en': 'Megafon'},
'99201':{'en': 'Megafon'},
'99202':{'en': 'Megafon'},
'99203':{'en': 'ZET-MOBILE'},
'99204':{'en': 'ZET-MOBILE'},
'99205':{'en': 'ZET-MOBILE'},
'99207':{'en': 'Megafon'},
'99208':{'en': 'ZET-MOBILE'},
'99209':{'en': 'ZET-MOBILE'},
'99210':{'en': 'O-Mobile'},
'99211':{'en': 'Tcell'},
'99217':{'en': 'Babilon-M'},
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_BF.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
PHONE_METADATA_BF = PhoneMetadata(id='BF', country_code=226, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[025-7]\\d{7}', possible_length=(8,)),
fixed_line=PhoneNumberDesc(national_number_pattern='2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}', example_number='20491234', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:0[1-35-7]|5[0-8]|[67]\\d)\\d{6}', example_number='70123456', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:0[1-7]|5[0-8]|[67]\\d)\\d{6}', example_number='70123456', possible_length=(8,)),
number_format=[NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[025-7]'])])
8 changes: 5 additions & 3 deletions python/phonenumbers/data/region_CD.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata

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)),
general_desc=PhoneNumberDesc(national_number_pattern='(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}', possible_length=(7, 8, 9, 10)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:(?:12|573)\\d\\d|276)\\d{5}|[1-6]\\d{6}', example_number='1234567', possible_length=(7, 8, 9, 10)),
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'),
NumberFormat(pattern='(\\d{2})(\\d{5})', format='\\1 \\2', leading_digits_pattern=['[1-6]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['2'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['1'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['[89]'], national_prefix_formatting_rule='0\\1')])
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['[89]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{3})(\\d{3})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['5'], national_prefix_formatting_rule='0\\1')])
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_GM.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
PHONE_METADATA_GM = PhoneMetadata(id='GM', country_code=220, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[2-9]\\d{6}', possible_length=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8\\d{3})\\d{3}', example_number='5661234', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:[23679]\\d|5[0-489])\\d{5}', example_number='3012345', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:[23679]\\d|4[015]|5[0-489])\\d{5}', example_number='3012345', possible_length=(7,)),
number_format=[NumberFormat(pattern='(\\d{3})(\\d{4})', format='\\1 \\2', leading_digits_pattern=['[2-9]'])])
8 changes: 3 additions & 5 deletions python/phonenumbers/data/region_NG.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata

PHONE_METADATA_NG = PhoneMetadata(id='NG', country_code=234, international_prefix='009',
general_desc=PhoneNumberDesc(national_number_pattern='2[0-24-9]\\d{8}|[78]\\d{10,13}|[7-9]\\d{9}|[1-9]\\d{7}|[124-7]\\d{6}', possible_length=(7, 8, 10, 11, 12, 13, 14), possible_length_local_only=(5, 6)),
fixed_line=PhoneNumberDesc(national_number_pattern='20(?:[1259]\\d|3[013-9]|4[1-8]|6[024-689]|7[1-79]|8[2-9])\\d{6}|(?:(?:[1-356]\\d|4[02-8]|8[2-9])\\d|9(?:0[3-9]|[1-9]\\d))\\d{5}|7(?:0(?:[013-689]\\d|2[0-24-9])\\d{3,4}|[1-79]\\d{6})|(?:[12]\\d|4[147]|5[14579]|6[1578]|7[1-3578])\\d{5}', example_number='18040123', possible_length=(7, 8, 10), possible_length_local_only=(5, 6)),
general_desc=PhoneNumberDesc(national_number_pattern='38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}', possible_length=(8, 10, 11, 12, 13, 14), possible_length_local_only=(6, 7)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:20(?:[1259]\\d|3[013-9]|4[1-8]|6[024-689]|7[1-79]|8[2-9])|38)\\d{6}', example_number='2033123456', possible_length=(8, 10), possible_length_local_only=(6, 7)),
mobile=PhoneNumberDesc(national_number_pattern='(?:702[0-24-9]|819[01])\\d{6}|(?:7(?:0[13-9]|[12]\\d)|8(?:0[1-9]|1[0-8])|9(?:0[1-9]|1[1-6]))\\d{7}', example_number='8021234567', possible_length=(10,)),
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{7,11}', example_number='80017591759', possible_length=(10, 11, 12, 13, 14)),
uan=PhoneNumberDesc(national_number_pattern='700\\d{7,11}', example_number='7001234567', possible_length=(10, 11, 12, 13, 14)),
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=['78'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d)(\\d{3})(\\d{3,4})', format='\\1 \\2 \\3', leading_digits_pattern=['[12]|9(?:0[3-9]|[1-9])'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{2,3})', format='\\1 \\2 \\3', leading_digits_pattern=['[3-6]|7(?:0[0-689]|[1-79])|8[2-9]'], national_prefix_formatting_rule='0\\1'),
number_format=[NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{2,3})', format='\\1 \\2 \\3', leading_digits_pattern=['3'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{3,4})', format='\\1 \\2 \\3', leading_digits_pattern=['[7-9]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['20[129]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{4})(\\d{2})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['2'], national_prefix_formatting_rule='0\\1'),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_RO.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='(?:630|702)0\\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,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:630|702)0\\d{5}|(?:6(?:00|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,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_SG.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[0-68]|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-689]|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,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_SN.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_SN = PhoneMetadata(id='SN', country_code=221, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[378]\\d|93)\\d{7}', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}', example_number='301012345', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='7(?:(?:[06-8]\\d|21|90)\\d|5(?:01|[19]0|25|[38]3|[4-7]\\d))\\d{5}', example_number='701234567', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='7(?:(?:[06-8]\\d|21|90)\\d|5(?:0[01]|[19]0|2[25]|[38]3|[4-7]\\d))\\d{5}', example_number='701234567', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{6}', example_number='800123456', possible_length=(9,)),
premium_rate=PhoneNumberDesc(national_number_pattern='88[4689]\\d{6}', example_number='884123456', possible_length=(9,)),
shared_cost=PhoneNumberDesc(national_number_pattern='81[02468]\\d{6}', example_number='810123456', possible_length=(9,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_TJ.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_TJ = PhoneMetadata(id='TJ', country_code=992, international_prefix='810',
general_desc=PhoneNumberDesc(national_number_pattern='[0-57-9]\\d{8}', possible_length=(9,), possible_length_local_only=(3, 5, 6, 7)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}', example_number='372123456', possible_length=(9,), possible_length_local_only=(3, 5, 6, 7)),
mobile=PhoneNumberDesc(national_number_pattern='(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:0[0-57-9]|1[017]|2[02]|[34]0|5[05]|7[01578]|8[078]|9\\d)\\d{7}', example_number='917123456', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])\\d{6}|(?:[09]\\d|1[017]|2[02]|[34]0|5[05]|7[01578]|8[078])\\d{7}', example_number='917123456', possible_length=(9,)),
preferred_international_prefix='8~10',
number_format=[NumberFormat(pattern='(\\d{6})(\\d)(\\d{2})', format='\\1 \\2 \\3', leading_digits_pattern=['331', '3317']),
NumberFormat(pattern='(\\d{3})(\\d{2})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['44[02-479]|[34]7']),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_UY.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PHONE_METADATA_UY = PhoneMetadata(id='UY', country_code=598, international_prefix='0(?:0|1[3-9]\\d)',
general_desc=PhoneNumberDesc(national_number_pattern='0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}', possible_length=(6, 7, 8, 9, 10, 11, 12, 13)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:1(?:770|9(?:20|87))|(?:2\\d|4[2-7])\\d\\d)\\d{4}', example_number='21231234', possible_length=(8,), possible_length_local_only=(7,)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:1(?:770|9(?:20|[89]7))|(?:2\\d|4[2-7])\\d\\d)\\d{4}', example_number='21231234', possible_length=(8,), possible_length_local_only=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='9[1-9]\\d{6}', example_number='94231234', possible_length=(8,)),
toll_free=PhoneNumberDesc(national_number_pattern='0004\\d{2,9}|(?:405|80[05])\\d{4}', example_number='8001234', possible_length=(6, 7, 8, 9, 10, 11, 12, 13)),
premium_rate=PhoneNumberDesc(national_number_pattern='90[0-8]\\d{4}', example_number='9001234', possible_length=(7,)),
Expand Down
Loading

0 comments on commit c20d99a

Please sign in to comment.