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 29, 2023
1 parent 1f13816 commit c760aa4
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 26 deletions.
20 changes: 10 additions & 10 deletions python/phonenumbers/carrierdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,9 @@
'22897':{'en': 'TOGOCEL'},
'22898':{'en': 'Moov'},
'22899':{'en': 'Moov'},
'2294':{'en': 'SBIN'},
'22940':{'en': 'SBIN'},
'22941':{'en': 'SBIN'},
'22942':{'en': 'MTN'},
'2295':{'en': 'MTN'},
'22955':{'en': 'Moov'},
'22956':{'en': 'Moov'},
Expand Down Expand Up @@ -1094,7 +1096,12 @@
'234913':{'en': 'MTN'},
'234915':{'en': 'Glo'},
'234916':{'en': 'MTN'},
'2356':{'en': 'Airtel'},
'23560':{'en': 'Airtel'},
'23562':{'en': 'Airtel'},
'23563':{'en': 'Airtel'},
'23565':{'en': 'Airtel'},
'23566':{'en': 'Airtel'},
'23568':{'en': 'Airtel'},
'2357':{'en': 'Sotel'},
'2359':{'en': 'Tigo'},
'23670':{'en': 'A-Cell'},
Expand Down Expand Up @@ -5732,6 +5739,7 @@
'4672754':{'en': 'Telenor Sverige'},
'4672755':{'en': 'FINK TELECOM SERVIC'},
'4672756':{'en': 'FINK TELECOM SERVIC'},
'4672758':{'en': 'Lancelot Telecom'},
'467276':{'en': 'Lycamobile Sweden'},
'467277':{'en': 'Lycamobile Sweden'},
'467278':{'en': 'Lycamobile Sweden'},
Expand Down Expand Up @@ -10011,12 +10019,4 @@
'553199722':{'en': 'Telemig Celular'},
'553199723':{'en': 'Telemig Celular'},
'553199724':{'en': 'Telemig Celular'},
'553199725':{'en': 'Telemig Celular'},
'553199726':{'en': 'Telemig Celular'},
'553199728':{'en': 'Telemig Celular'},
'553199729':{'en': 'Telemig Celular'},
'553199731':{'en': 'Telemig Celular'},
'553199732':{'en': 'Telemig Celular'},
'553199733':{'en': 'Telemig Celular'},
'553199734':{'en': 'Telemig Celular'},
}
16 changes: 8 additions & 8 deletions python/phonenumbers/carrierdata/data1.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
# limitations under the License.

data = {
'553199725':{'en': 'Telemig Celular'},
'553199726':{'en': 'Telemig Celular'},
'553199728':{'en': 'Telemig Celular'},
'553199729':{'en': 'Telemig Celular'},
'553199731':{'en': 'Telemig Celular'},
'553199732':{'en': 'Telemig Celular'},
'553199733':{'en': 'Telemig Celular'},
'553199734':{'en': 'Telemig Celular'},
'553199735':{'en': 'Telemig Celular'},
'553199736':{'en': 'Telemig Celular'},
'553199737':{'en': 'Telemig Celular'},
Expand Down Expand Up @@ -10011,12 +10019,4 @@
'5730474':{'en': 'Tigo'},
'5730475':{'en': 'Tigo'},
'5730520':{'en': 'Tigo'},
'57305210':{'en': 'Tigo'},
'57305211':{'en': 'Tigo'},
'57305212':{'en': 'Tigo'},
'57305213':{'en': 'Tigo'},
'57305214':{'en': 'Tigo'},
'57305215':{'en': 'Tigo'},
'57305216':{'en': 'Tigo'},
'5730522':{'en': 'Tigo'},
}
12 changes: 11 additions & 1 deletion python/phonenumbers/carrierdata/data2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
# limitations under the License.

data = {
'57305210':{'en': 'Tigo'},
'57305211':{'en': 'Tigo'},
'57305212':{'en': 'Tigo'},
'57305213':{'en': 'Tigo'},
'57305214':{'en': 'Tigo'},
'57305215':{'en': 'Tigo'},
'57305216':{'en': 'Tigo'},
'5730522':{'en': 'Tigo'},
'5730523':{'en': 'Tigo'},
'5730524':{'en': 'Tigo'},
'5730525':{'en': 'Tigo'},
Expand Down Expand Up @@ -8138,7 +8146,9 @@
'97577':{'en': 'TashiCell of Tashi InfoComm'},
'97650':{'en': 'Unitel'},
'97655':{'en': 'Unitel'},
'9766':{'en': 'ONDO'},
'97660':{'en': 'ONDO'},
'97666':{'en': 'ONDO'},
'97669':{'en': 'Skytel'},
'97680':{'en': 'Unitel'},
'97681':{'en': 'ONDO'},
'97683':{'en': 'G-Mobile'},
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_BJ.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_BJ = PhoneMetadata(id='BJ', country_code=229, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[24-689]\\d{7}', possible_length=(8,)),
fixed_line=PhoneNumberDesc(national_number_pattern='2(?:02|1[037]|2[45]|3[68]|4\\d)\\d{5}', example_number='20211234', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:4[01]|5[1-9]|6\\d|9[013-9])\\d{6}', example_number='90011234', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:4[0-2]|[56]\\d|9[013-9])\\d{6}', example_number='90011234', possible_length=(8,)),
voip=PhoneNumberDesc(national_number_pattern='857[58]\\d{4}', example_number='85751234', possible_length=(8,)),
uan=PhoneNumberDesc(national_number_pattern='81\\d{6}', example_number='81123456', possible_length=(8,)),
number_format=[NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[24-689]'])])
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_EE.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_EE = PhoneMetadata(id='EE', country_code=372, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}', possible_length=(7, 8, 10)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}', example_number='3212345', possible_length=(7,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:5\\d{5}|8(?:1(?:0(?:000|[3-9]\\d\\d)|(?:1(?:0[236]|1\\d)|(?:23|[3-79]\\d)\\d)\\d)|2(?:0(?:000|(?:19|[2-7]\\d)\\d)|(?:(?:[124-6]\\d|3[5-9])\\d|7(?:[3679]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}', example_number='51234567', possible_length=(7, 8)),
mobile=PhoneNumberDesc(national_number_pattern='(?:5\\d{5}|8(?:1(?:0(?:000|[3-9]\\d\\d)|(?:1(?:0[236]|1\\d)|(?:2[0-59]|[3-79]\\d)\\d)\\d)|2(?:0(?:000|(?:19|[2-7]\\d)\\d)|(?:(?:[124-6]\\d|3[5-9])\\d|7(?:[3679]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}', example_number='51234567', possible_length=(7, 8)),
toll_free=PhoneNumberDesc(national_number_pattern='800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}', example_number='80012345', possible_length=(7, 8, 10)),
premium_rate=PhoneNumberDesc(national_number_pattern='(?:40\\d\\d|900)\\d{4}', example_number='9001234', possible_length=(7, 8)),
personal_number=PhoneNumberDesc(national_number_pattern='70[0-2]\\d{5}', example_number='70012345', possible_length=(8,)),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_GI.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PHONE_METADATA_GI = PhoneMetadata(id='GI', country_code=350, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:[25]\\d\\d|606)\\d{5}', possible_length=(8,)),
fixed_line=PhoneNumberDesc(national_number_pattern='21(?:6[24-9]\\d|90[0-2])\\d{3}|2(?:00|2[2-5])\\d{5}', example_number='20012345', possible_length=(8,)),
fixed_line=PhoneNumberDesc(national_number_pattern='2190[0-2]\\d{3}|2(?:0(?:0\\d|20)|16[24-9]|2[2-5]\\d)\\d{4}', example_number='20012345', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='525(?:0\\d|1[0-4])\\d{3}|(?:5[146-8]\\d|606)\\d{5}', example_number='57123456', possible_length=(8,)),
number_format=[NumberFormat(pattern='(\\d{3})(\\d{5})', format='\\1 \\2', leading_digits_pattern=['2'])],
mobile_number_portable_region=True)
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_GP.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

PHONE_METADATA_GP = PhoneMetadata(id='GP', country_code=590, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='(?:590|(?:69|80)\\d|976)\\d{6}', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1289]|5[3-579]|6[0-389]|7[08]|8[0-689]|9\\d)\\d{4}', example_number='590201234', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1289]|5[3-579]|6[0-489]|7[08]|8[0-689]|9\\d)\\d{4}', example_number='590201234', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}', example_number='690001234', 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='976[01]\\d{5}', example_number='976012345', possible_length=(9,)),
Expand Down
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_MN.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
PHONE_METADATA_MN = PhoneMetadata(id='MN', country_code=976, international_prefix='001',
general_desc=PhoneNumberDesc(national_number_pattern='[12]\\d{7,9}|[5-9]\\d{7}', possible_length=(8, 9, 10), possible_length_local_only=(4, 5, 6)),
fixed_line=PhoneNumberDesc(national_number_pattern='[12]2[1-3]\\d{5,6}|7(?:0[0-5]\\d|128)\\d{4}|(?:[12](?:1|27)|5[368])\\d{6}|[12](?:3[2-8]|4[2-68]|5[1-4689])\\d{6,7}', example_number='53123456', possible_length=(8, 9, 10), possible_length_local_only=(4, 5, 6)),
mobile=PhoneNumberDesc(national_number_pattern='(?:83[01]|920)\\d{5}|(?:5[05]|6[06]|8[015689]|9[013-9])\\d{6}', example_number='88123456', possible_length=(8,)),
voip=PhoneNumberDesc(national_number_pattern='712[0-79]\\d{4}|7(?:1[013-9]|[25-8]\\d)\\d{5}', example_number='75123456', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:83[01]|920)\\d{5}|(?:5[05]|6[069]|8[015689]|9[013-9])\\d{6}', example_number='88123456', possible_length=(8,)),
voip=PhoneNumberDesc(national_number_pattern='712[0-79]\\d{4}|7(?:1[013-9]|[25-9]\\d)\\d{5}', example_number='75123456', possible_length=(8,)),
national_prefix='0',
national_prefix_for_parsing='0',
number_format=[NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['[12]1'], national_prefix_formatting_rule='0\\1'),
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_TD.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[023568]|77|9\\d)\\d{6}', example_number='63012345', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:6[0235689]|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]'])])

0 comments on commit c760aa4

Please sign in to comment.