Skip to content

Commit f91ffb6

Browse files
committed
Generated Python files for metadata
1 parent 200c671 commit f91ffb6

81 files changed

Lines changed: 1461 additions & 266 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

python/phonenumbers/carrierdata/__init__.py

Lines changed: 107 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -524,14 +524,17 @@
524524
'22548':{'en': 'Orange'},
525525
'22549':{'en': 'Orange'},
526526
'22555':{'en': 'MTN'},
527+
'22556':{'en': 'MTN'},
527528
'22557':{'en': 'Orange'},
528529
'22558':{'en': 'Orange'},
529530
'22559':{'en': 'Orange'},
530531
'22560':{'en': 'GreenN'},
531532
'22561':{'en': 'GreenN'},
533+
'22565':{'en': 'KoZ'},
532534
'22566':{'en': 'KoZ'},
533535
'22567':{'en': 'KoZ'},
534536
'22569':{'en': 'Aircom'},
537+
'22577':{'en': 'Orange'},
535538
'22660':{'en': 'Telmob'},
536539
'22661':{'en': 'Telmob'},
537540
'22662':{'en': 'Telmob'},
@@ -960,16 +963,20 @@
960963
'25576':{'en': 'Vodacom'},
961964
'25577':{'en': 'Zantel'},
962965
'25578':{'en': 'Airtel'},
963-
'25639':{'en': 'MTN'},
966+
'25670':{'en': 'Warid'},
964967
'25671':{'en': 'UTL'},
968+
'256720':{'en': 'Smile'},
969+
'256730':{'en': 'K2'},
970+
'25674':{'en': 'Sure Telecom'},
965971
'25675':{'en': 'Airtel'},
972+
'25676':{'en': 'i-Tel'},
966973
'25677':{'en': 'MTN'},
967974
'25678':{'en': 'MTN'},
968975
'25679':{'en': 'Orange'},
969976
'25729':{'en': 'Leo'},
970977
'25771':{'en': 'Leo'},
971978
'25775':{'en': 'Smart Mobile'},
972-
'25776':{'en': 'Spacetel'},
979+
'25776':{'en': 'Econet'},
973980
'25777':{'en': 'Onatel'},
974981
'25778':{'en': 'Tempo'},
975982
'25779':{'en': 'Leo'},
@@ -981,6 +988,7 @@
981988
'26132':{'en': 'Orange'},
982989
'26133':{'en': 'Airtel'},
983990
'26134':{'en': 'Telma'},
991+
'26139':{'en': 'Blueline'},
984992
'26371':{'en': 'Net*One'},
985993
'26373':{'en': 'Telecel'},
986994
'26377':{'en': 'Econet'},
@@ -1304,19 +1312,18 @@
13041312
'37495':{'en': 'Orange'},
13051313
'37498':{'en': 'VivaCell-MTS'},
13061314
'37499':{'en': 'Beeline'},
1307-
'375259':{'en': 'life:)'},
1308-
'375291':{'en': 'velcom'},
1309-
'375292':{'en': 'MTS'},
1310-
'375293':{'en': 'velcom'},
1311-
'375295':{'en': 'MTS'},
1312-
'375296':{'en': 'velcom'},
1313-
'375297':{'en': 'MTS'},
1314-
'375298':{'en': 'MTS'},
1315-
'375299':{'en': 'velcom'},
1316-
'375336':{'en': 'MTS'},
1317-
'375444':{'en': 'velcom'},
1318-
'375445':{'en': 'velcom'},
1319-
'375447':{'en': 'velcom'},
1315+
'37525':{'be': u('\u0411\u0435\u0421\u0422'), 'en': 'life:)', 'ru': 'life:)'},
1316+
'375291':{'be': 'Velcom', 'en': 'Velcom', 'ru': 'Velcom'},
1317+
'375292':{'be': u('\u041c\u0422\u0421'), 'en': 'MTS', 'ru': u('\u041c\u0422\u0421')},
1318+
'375293':{'be': 'Velcom', 'en': 'Velcom', 'ru': 'Velcom'},
1319+
'375294':{'be': u('\u0411\u0435\u043b\u0421\u0435\u043b'), 'en': 'Belcel', 'ru': u('\u0411\u0435\u043b\u0421\u0435\u043b')},
1320+
'375295':{'be': u('\u041c\u0422\u0421'), 'en': 'MTS', 'ru': u('\u041c\u0422\u0421')},
1321+
'375296':{'be': 'Velcom', 'en': 'Velcom', 'ru': 'Velcom'},
1322+
'375297':{'be': u('\u041c\u0422\u0421'), 'en': 'MTS', 'ru': u('\u041c\u0422\u0421')},
1323+
'375298':{'be': u('\u041c\u0422\u0421'), 'en': 'MTS', 'ru': u('\u041c\u0422\u0421')},
1324+
'375299':{'be': 'Velcom', 'en': 'Velcom', 'ru': 'Velcom'},
1325+
'37533':{'be': u('\u041c\u0422\u0421'), 'en': 'MTS', 'ru': u('\u041c\u0422\u0421')},
1326+
'37544':{'be': 'Velcom', 'en': 'Velcom', 'ru': 'Velcom'},
13201327
'3763':{'en': 'Mobiland'},
13211328
'38094':{'en': 'IT'},
13221329
'38160':{'en': 'VIP'},
@@ -1348,6 +1355,14 @@
13481355
'38763':{'en': 'HT-ERONET'},
13491356
'38765':{'en': 'm:tel'},
13501357
'38766':{'en': 'm:tel'},
1358+
'38970':{'en': 'T-Mobile'},
1359+
'38971':{'en': 'T-Mobile'},
1360+
'38972':{'en': 'T-Mobile'},
1361+
'389732':{'en': 'Albafone'},
1362+
'38975':{'en': 'One'},
1363+
'38976':{'en': 'One'},
1364+
'38977':{'en': 'vip'},
1365+
'38978':{'en': 'vip'},
13511366
'3932':{'en': 'Wind'},
13521367
'3933':{'en': 'TIM'},
13531368
'3934':{'en': 'Vodafone'},
@@ -12638,17 +12653,26 @@
1263812653
'5699997':{'en': 'entel'},
1263912654
'5699998':{'en': 'entel'},
1264012655
'5699999':{'en': 'entel'},
12641-
'5730':{'en': 'Tigo'},
12656+
'57300':{'en': 'Tigo'},
12657+
'57301':{'en': 'Tigo'},
12658+
'57302':{'en': 'Tigo'},
12659+
'57303':{'en': 'Uff!'},
12660+
'57304':{'en': 'Une'},
12661+
'57305':{'en': 'Movil Exito'},
1264212662
'57310':{'en': 'Claro'},
1264312663
'57311':{'en': 'Claro'},
1264412664
'57312':{'en': 'Claro'},
1264512665
'57313':{'en': 'Claro'},
1264612666
'57314':{'en': 'Claro'},
12647-
'57315':{'en': 'movistar'},
12648-
'57316':{'en': 'movistar'},
12649-
'57317':{'en': 'movistar'},
12650-
'57318':{'en': 'movistar'},
12651-
'5732':{'en': 'Claro'},
12667+
'57315':{'en': 'Movistar'},
12668+
'57316':{'en': 'Movistar'},
12669+
'57317':{'en': 'Movistar'},
12670+
'57318':{'en': 'Movistar'},
12671+
'57319':{'en': 'Virgin Mobile'},
12672+
'57320':{'en': 'Claro'},
12673+
'57321':{'en': 'Claro'},
12674+
'57350':{'en': 'Avantel'},
12675+
'57351':{'en': 'Avantel'},
1265212676
'58412':{'en': 'Digitel GSM'},
1265312677
'58414':{'en': 'movistar'},
1265412678
'58416':{'en': 'Movilnet'},
@@ -12714,6 +12738,34 @@
1271412738
'59897':{'en': 'Claro'},
1271512739
'59898':{'en': 'Antel'},
1271612740
'59899':{'en': 'Antel'},
12741+
'5993181':{'en': 'Eutel/Radcomm'},
12742+
'5993184':{'en': 'Eutel/Radcomm'},
12743+
'5993185':{'en': 'Eutel/Radcomm'},
12744+
'5993186':{'en': 'Eutel/Telcell'},
12745+
'5993188':{'en': 'Eutel N.V.'},
12746+
'5994161':{'en': 'Satel'},
12747+
'5994165':{'en': 'WIC'},
12748+
'5994166':{'en': 'WIC'},
12749+
'5994167':{'en': 'WIC'},
12750+
'5994168':{'en': 'WIC'},
12751+
'5994169':{'en': 'Satel'},
12752+
'599700':{'en': 'Digicel'},
12753+
'599701':{'en': 'Digicel'},
12754+
'599770':{'en': 'Telbo N.V.'},
12755+
'599777':{'en': 'Telbo N.V.'},
12756+
'59978':{'en': 'Digicel'},
12757+
'59979':{'en': 'PCS'},
12758+
'599951':{'en': 'Chippie'},
12759+
'599952':{'en': 'Chippie'},
12760+
'599953':{'en': 'Chippie'},
12761+
'599954':{'en': 'Chippie'},
12762+
'599956':{'en': 'Chippie'},
12763+
'599961':{'en': 'CSC'},
12764+
'599963':{'en': 'GSM Caribbean'},
12765+
'599966':{'en': 'Digicel'},
12766+
'599967':{'en': 'Digicel'},
12767+
'599968':{'en': 'Digicel'},
12768+
'599969':{'en': 'Digicel'},
1271712769
'60102':{'en': 'DiGi'},
1271812770
'601030':{'en': 'Celcom'},
1271912771
'601031':{'en': 'Celcom'},
@@ -12838,48 +12890,50 @@
1283812890
'61422':{'en': 'Optus'},
1283912891
'61423':{'en': 'Optus'},
1284012892
'61424':{'en': 'Vodafone'},
12893+
'61425':{'en': 'Vodafone'},
1284112894
'61426':{'en': 'Vodafone'},
1284212895
'61427':{'en': 'Telstra'},
1284312896
'61428':{'en': 'Telstra'},
1284412897
'61429':{'en': 'Telstra'},
12845-
'61430':{'en': '3'},
12898+
'61430':{'en': 'Vodafone'},
1284612899
'61431':{'en': 'Optus'},
1284712900
'61432':{'en': 'Optus'},
12848-
'61433':{'en': '3'},
12901+
'61433':{'en': 'Vodafone'},
1284912902
'61434':{'en': 'Optus'},
12850-
'61436':{'en': 'Vodafone'},
12903+
'61435':{'en': 'Optus'},
1285112904
'61437':{'en': 'Telstra'},
1285212905
'61438':{'en': 'Telstra'},
1285312906
'61439':{'en': 'Telstra'},
12907+
'614444':{'en': 'Telstra'},
1285412908
'61447':{'en': 'Telstra'},
1285512909
'61448':{'en': 'Telstra'},
1285612910
'61449':{'en': 'Vodafone'},
1285712911
'61450':{'en': 'Vodafone'},
1285812912
'61451':{'en': 'Vodafone'},
12913+
'61452':{'en': 'Vodafone'},
12914+
'61455':{'en': 'Telstra'},
12915+
'61456':{'en': 'Telstra'},
1285912916
'61457':{'en': 'Telstra'},
1286012917
'61458':{'en': 'Telstra'},
12861-
'614590':{'en': 'Telstra'},
12862-
'614591':{'en': 'Telstra'},
12863-
'614592':{'en': 'Telstra'},
12864-
'61462':{'en': 'Telstra'},
12865-
'614660':{'en': 'Optus'},
12866-
'614661':{'en': 'Optus'},
12867-
'614662':{'en': 'Optus'},
12868-
'614663':{'en': 'Optus'},
12869-
'614664':{'en': 'Optus'},
12870-
'614665':{'en': 'Optus'},
12871-
'614666':{'en': 'Optus'},
12872-
'614671':{'en': 'Optus'},
12873-
'614685':{'en': 'Optus'},
12874-
'614686':{'en': 'Optus'},
12875-
'614687':{'en': 'Optus'},
12876-
'614688':{'en': 'Optus'},
12877-
'614689':{'en': 'Optus'},
12878-
'61469':{'en': 'Telstra'},
12879-
'61483':{'en': 'Optus'},
12880-
'61485':{'en': 'Telstra'},
12918+
'61459':{'en': 'Telstra'},
12919+
'61466':{'en': 'Optus'},
12920+
'61467':{'en': 'Telstra'},
12921+
'61468':{'en': 'Optus'},
12922+
'61469':{'en': 'Lycamobile'},
12923+
'61470':{'en': 'Lycamobile'},
12924+
'61474':{'en': 'Telstra'},
12925+
'61475':{'en': 'Telstra'},
12926+
'61477':{'en': 'Telstra'},
12927+
'61478':{'en': 'Optus'},
12928+
'614790':{'en': 'Optus'},
12929+
'614791':{'en': 'Optus'},
12930+
'61481':{'en': 'Optus'},
12931+
'61487':{'en': 'Telstra'},
1288112932
'61488':{'en': 'Telstra'},
12882-
'61489':{'en': 'Telstra'},
12933+
'61490':{'en': 'Telstra'},
12934+
'61497':{'en': 'Telstra'},
12935+
'61498':{'en': 'Telstra'},
12936+
'61499':{'en': 'Telstra'},
1288312937
'62199':{'en': 'Esia'},
1288412938
'6221317':{'en': 'Esia'},
1288512939
'62213430':{'en': 'Esia'},
@@ -14290,8 +14344,9 @@
1429014344
'68572':{'en': 'Digicel'},
1429114345
'68575':{'en': 'Bluesky'},
1429214346
'68577':{'en': 'Digicel'},
14293-
'6866':{'en': 'Kiribati - Frigate Net'},
14294-
'6869':{'en': 'Kiribati - Frigate Net'},
14347+
'6866':{'en': 'TSKL'},
14348+
'6867':{'en': 'TSKL'},
14349+
'6869':{'en': 'TSKL'},
1429514350
'7701':{'en': 'Kcell'},
1429614351
'7702':{'en': 'Kcell'},
1429714352
'7705':{'en': 'Beeline'},
@@ -16243,6 +16298,7 @@
1624316298
'92334':{'en': 'Ufone'},
1624416299
'92335':{'en': 'Ufone'},
1624516300
'92336':{'en': 'Ufone'},
16301+
'92337':{'en': 'Ufone'},
1624616302
'92341':{'en': 'Telenor'},
1624716303
'92342':{'en': 'Telenor'},
1624816304
'92343':{'en': 'Telenor'},
@@ -16272,35 +16328,15 @@
1627216328
'96274':{'en': 'XPress JO'},
1627316329
'96277':{'en': 'Orange'},
1627416330
'96278':{'en': 'Umniah'},
16275-
'96279':{'en': 'zain JO'},
16331+
'96279':{'en': 'Zain JO'},
1627616332
'96475':{'en': 'Korek'},
1627716333
'96476':{'en': 'Omnnea'},
1627816334
'96477':{'en': 'Asia Cell'},
1627916335
'96478':{'en': 'Zain'},
1628016336
'96479':{'en': 'Zain'},
16281-
'965500':{'en': 'Viva'},
16282-
'965501':{'en': 'Wataniya'},
16283-
'965502':{'en': 'Wataniya'},
16284-
'965505':{'en': 'Viva'},
16285-
'965506':{'en': 'Wataniya'},
16286-
'965507':{'en': 'Wataniya'},
16287-
'965508':{'en': 'Wataniya'},
16288-
'965509':{'en': 'Wataniya'},
16289-
'96551':{'en': 'Wataniya'},
16290-
'96555':{'en': 'Viva'},
16291-
'96557':{'en': 'Wataniya'},
16292-
'96558':{'en': 'Wataniya'},
16293-
'96559':{'en': 'Wataniya'},
16294-
'96560':{'en': 'Wataniya'},
16295-
'96565':{'en': 'Wataniya'},
16296-
'96566':{'en': 'Wataniya'},
16297-
'96567':{'en': 'Wataniya'},
16298-
'96570':{'en': 'Wataniya'},
16299-
'96577':{'en': 'Wataniya'},
16300-
'96590':{'en': 'zain KW'},
16301-
'96594':{'en': 'zain KW'},
16302-
'96597':{'en': 'zain KW'},
16303-
'96599':{'en': 'zain KW'},
16337+
'9655':{'ar': u('\u0641\u064a\u0641\u0627'), 'en': 'VIVA'},
16338+
'9656':{'ar': u('\u0627\u0644\u0648\u0637\u0646\u064a\u0629'), 'en': 'Wataniya'},
16339+
'9659':{'ar': u('\u0632\u064a\u0646'), 'en': 'Zain'},
1630416340
'96650':{'en': 'Al Jawal (STC)'},
1630516341
'96653':{'en': 'Al Jawal (STC)'},
1630616342
'96654':{'en': 'Mobily'},

python/phonenumbers/data/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ def _load_region(code):
4040
from .alt_format_36 import PHONE_ALT_FORMAT_36
4141
from .alt_format_372 import PHONE_ALT_FORMAT_372
4242
from .alt_format_373 import PHONE_ALT_FORMAT_373
43-
from .alt_format_375 import PHONE_ALT_FORMAT_375
4443
from .alt_format_380 import PHONE_ALT_FORMAT_380
4544
from .alt_format_385 import PHONE_ALT_FORMAT_385
4645
from .alt_format_43 import PHONE_ALT_FORMAT_43
@@ -63,7 +62,7 @@ def _load_region(code):
6362
from .alt_format_971 import PHONE_ALT_FORMAT_971
6463
from .alt_format_972 import PHONE_ALT_FORMAT_972
6564
from .alt_format_995 import PHONE_ALT_FORMAT_995
66-
_ALT_NUMBER_FORMATS = {30: PHONE_ALT_FORMAT_30, 31: PHONE_ALT_FORMAT_31, 34: PHONE_ALT_FORMAT_34, 350: PHONE_ALT_FORMAT_350, 351: PHONE_ALT_FORMAT_351, 352: PHONE_ALT_FORMAT_352, 358: PHONE_ALT_FORMAT_358, 359: PHONE_ALT_FORMAT_359, 36: PHONE_ALT_FORMAT_36, 372: PHONE_ALT_FORMAT_372, 373: PHONE_ALT_FORMAT_373, 375: PHONE_ALT_FORMAT_375, 380: PHONE_ALT_FORMAT_380, 385: PHONE_ALT_FORMAT_385, 43: PHONE_ALT_FORMAT_43, 44: PHONE_ALT_FORMAT_44, 49: PHONE_ALT_FORMAT_49, 55: PHONE_ALT_FORMAT_55, 58: PHONE_ALT_FORMAT_58, 595: PHONE_ALT_FORMAT_595, 61: PHONE_ALT_FORMAT_61, 62: PHONE_ALT_FORMAT_62, 63: PHONE_ALT_FORMAT_63, 66: PHONE_ALT_FORMAT_66, 675: PHONE_ALT_FORMAT_675, 7: PHONE_ALT_FORMAT_7, 81: PHONE_ALT_FORMAT_81, 84: PHONE_ALT_FORMAT_84, 855: PHONE_ALT_FORMAT_855, 90: PHONE_ALT_FORMAT_90, 94: PHONE_ALT_FORMAT_94, 971: PHONE_ALT_FORMAT_971, 972: PHONE_ALT_FORMAT_972, 995: PHONE_ALT_FORMAT_995}
65+
_ALT_NUMBER_FORMATS = {30: PHONE_ALT_FORMAT_30, 31: PHONE_ALT_FORMAT_31, 34: PHONE_ALT_FORMAT_34, 350: PHONE_ALT_FORMAT_350, 351: PHONE_ALT_FORMAT_351, 352: PHONE_ALT_FORMAT_352, 358: PHONE_ALT_FORMAT_358, 359: PHONE_ALT_FORMAT_359, 36: PHONE_ALT_FORMAT_36, 372: PHONE_ALT_FORMAT_372, 373: PHONE_ALT_FORMAT_373, 380: PHONE_ALT_FORMAT_380, 385: PHONE_ALT_FORMAT_385, 43: PHONE_ALT_FORMAT_43, 44: PHONE_ALT_FORMAT_44, 49: PHONE_ALT_FORMAT_49, 55: PHONE_ALT_FORMAT_55, 58: PHONE_ALT_FORMAT_58, 595: PHONE_ALT_FORMAT_595, 61: PHONE_ALT_FORMAT_61, 62: PHONE_ALT_FORMAT_62, 63: PHONE_ALT_FORMAT_63, 66: PHONE_ALT_FORMAT_66, 675: PHONE_ALT_FORMAT_675, 7: PHONE_ALT_FORMAT_7, 81: PHONE_ALT_FORMAT_81, 84: PHONE_ALT_FORMAT_84, 855: PHONE_ALT_FORMAT_855, 90: PHONE_ALT_FORMAT_90, 94: PHONE_ALT_FORMAT_94, 971: PHONE_ALT_FORMAT_971, 972: PHONE_ALT_FORMAT_972, 995: PHONE_ALT_FORMAT_995}
6766

6867
# A mapping from a country code to the region codes which
6968
# denote the country/region represented by that country code.

python/phonenumbers/data/alt_format_375.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

python/phonenumbers/data/region_AU.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
PHONE_METADATA_AU = PhoneMetadata(id='AU', country_code=61, international_prefix='(?:14(?:1[14]|34|4[17]|[56]6|7[47]|88))?001[14-689]',
55
general_desc=PhoneNumberDesc(national_number_pattern='[1-578]\\d{5,9}', possible_number_pattern='\\d{6,10}'),
66
fixed_line=PhoneNumberDesc(national_number_pattern='[237]\\d{8}|8(?:[68]\\d{3}|7[0-69]\\d{2}|9(?:[02-9]\\d{2}|1(?:[0-57-9]\\d|6[0135-9])))\\d{4}', possible_number_pattern='\\d{8,9}', example_number='212345678'),
7-
mobile=PhoneNumberDesc(national_number_pattern='14(?:5\\d|71)\\d{5}|4(?:[0-2]\\d|3[0-57-9]|4[47-9]|5[0-35-9]|6[6-9]|[79][07-9]|8[17-9])\\d{6}', possible_number_pattern='\\d{9}', example_number='412345678'),
7+
mobile=PhoneNumberDesc(national_number_pattern='14(?:5\\d|71)\\d{5}|4(?:[0-2]\\d|3[0-57-9]|4[47-9]|5[0-25-9]|6[6-9]|7[0457-9]|8[17-9]|9[07-9])\\d{6}', possible_number_pattern='\\d{9}', example_number='412345678'),
88
toll_free=PhoneNumberDesc(national_number_pattern='180(?:0\\d{3}|2)\\d{3}', possible_number_pattern='\\d{7,10}', example_number='1800123456'),
99
premium_rate=PhoneNumberDesc(national_number_pattern='190[0126]\\d{6}', possible_number_pattern='\\d{10}', example_number='1900123456'),
1010
shared_cost=PhoneNumberDesc(national_number_pattern='13(?:00\\d{2})?\\d{4}', possible_number_pattern='\\d{6,10}', example_number='1300123456'),

python/phonenumbers/data/region_BQ.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
PHONE_METADATA_BQ = PhoneMetadata(id='BQ', country_code=599, international_prefix='00',
55
general_desc=PhoneNumberDesc(national_number_pattern='[347]\\d{6}', possible_number_pattern='\\d{7}'),
6-
fixed_line=PhoneNumberDesc(national_number_pattern='(?:318[023]|416[0239]|7(?:1[578]|50)\\d)\\d{3}', possible_number_pattern='\\d{7}', example_number='7151234'),
7-
mobile=PhoneNumberDesc(national_number_pattern='(?:318[1456]|416[15-8]|7(?:0[01]|[89]\\d)\\d)\\d{3}|', possible_number_pattern='\\d{7}', example_number='3181234'),
6+
fixed_line=PhoneNumberDesc(national_number_pattern='(?:318[023]|416[023]|7(?:1[578]|50)\\d)\\d{3}', possible_number_pattern='\\d{7}', example_number='7151234'),
7+
mobile=PhoneNumberDesc(national_number_pattern='(?:318[14-68]|416[15-9]|7(?:0[01]|7[07]|[89]\\d)\\d)\\d{3}', possible_number_pattern='\\d{7}', example_number='3181234'),
88
toll_free=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
99
premium_rate=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
1010
shared_cost=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),

python/phonenumbers/data/region_BY.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
PHONE_METADATA_BY = PhoneMetadata(id='BY', country_code=375, international_prefix='810',
55
general_desc=PhoneNumberDesc(national_number_pattern='[1-4]\\d{8}|[89]\\d{9,10}', possible_number_pattern='\\d{7,11}'),
6-
fixed_line=PhoneNumberDesc(national_number_pattern='(?:1(?:5(?:1[1-5]|2\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d{2})|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:2\\d|3[02-79]|4[024-7]|5[0-7])))\\d{5}', possible_number_pattern='\\d{7,9}', example_number='152450911'),
6+
fixed_line=PhoneNumberDesc(national_number_pattern='(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d{2})|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}', possible_number_pattern='\\d{7,9}', example_number='152450911'),
77
mobile=PhoneNumberDesc(national_number_pattern='(?:2(?:5[5679]|9[1-9])|33\\d|44\\d)\\d{6}', possible_number_pattern='\\d{9}', example_number='294911911'),
88
toll_free=PhoneNumberDesc(national_number_pattern='8(?:0[13]|20\\d)\\d{7}', possible_number_pattern='\\d{10,11}', example_number='8011234567'),
99
premium_rate=PhoneNumberDesc(national_number_pattern='(?:810|902)\\d{7}', possible_number_pattern='\\d{10}', example_number='9021234567'),
@@ -13,11 +13,13 @@
1313
pager=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
1414
uan=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
1515
voicemail=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
16-
no_international_dialling=PhoneNumberDesc(national_number_pattern='8(?:[01]|20)\\d{8}|902\\d{7}', possible_number_pattern='\\d{10,11}', example_number='82012345678'),
16+
no_international_dialling=PhoneNumberDesc(national_number_pattern='8(?:[013]|[12]0)\\d{8}|902\\d{7}', possible_number_pattern='\\d{10,11}', example_number='82012345678'),
1717
preferred_international_prefix='8~10',
1818
national_prefix='8',
1919
national_prefix_for_parsing='8?0?',
20-
number_format=[NumberFormat(pattern='([1-4]\\d)(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['[1-4]'], national_prefix_formatting_rule='8 0\\1'),
20+
number_format=[NumberFormat(pattern='(\\d{2})(\\d{3})(\\d{2})(\\d{2})', format='\\1 \\2-\\3-\\4', leading_digits_pattern=['17[0-3589]|2[4-9]|[34]', '17(?:[02358]|1[0-2]|9[0189])|2[4-9]|[34]'], national_prefix_formatting_rule='8 0\\1'),
21+
NumberFormat(pattern='(\\d{3})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2-\\3-\\4', leading_digits_pattern=['1(?:5[24]|6[235]|7[467])|2(?:1[246]|2[25]|3[26])', '1(?:5[24]|6(?:2|3[04-9]|5[0346-9])|7(?:[46]|7[37-9]))|2(?:1[246]|2[25]|3[26])'], national_prefix_formatting_rule='8 0\\1'),
22+
NumberFormat(pattern='(\\d{4})(\\d{2})(\\d{3})', format='\\1 \\2-\\3', leading_digits_pattern=['1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])', '1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])'], national_prefix_formatting_rule='8 0\\1'),
2123
NumberFormat(pattern='([89]\\d{2})(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['8[01]|9'], national_prefix_formatting_rule='8 \\1'),
2224
NumberFormat(pattern='(8\\d{2})(\\d{4})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['82'], national_prefix_formatting_rule='8 \\1')],
2325
mobile_number_portable_region=True)

python/phonenumbers/data/region_CI.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
33

44
PHONE_METADATA_CI = PhoneMetadata(id='CI', country_code=225, international_prefix='00',
5-
general_desc=PhoneNumberDesc(national_number_pattern='[02-6]\\d{7}', possible_number_pattern='\\d{8}'),
5+
general_desc=PhoneNumberDesc(national_number_pattern='[02-7]\\d{7}', possible_number_pattern='\\d{8}'),
66
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2(?:0[023]|1[02357]|[23][045]|4[03-5])|3(?:0[06]|1[069]|[2-4][07]|5[09]|6[08]))\\d{5}', possible_number_pattern='\\d{8}', example_number='21234567'),
7-
mobile=PhoneNumberDesc(national_number_pattern='(?:0[1-9]|4[0-24-9]|5[05-9]|6[015679])\\d{6}', possible_number_pattern='\\d{8}', example_number='01234567'),
7+
mobile=PhoneNumberDesc(national_number_pattern='(?:0[1-9]|4[0-24-9]|5[5-9]|6[015-79]|77)\\d{6}', possible_number_pattern='\\d{8}', example_number='01234567'),
88
toll_free=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
99
premium_rate=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
1010
shared_cost=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),

python/phonenumbers/data/region_CO.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
PHONE_METADATA_CO = PhoneMetadata(id='CO', country_code=57, international_prefix='00(?:4(?:[14]4|56)|[579])',
55
general_desc=PhoneNumberDesc(national_number_pattern='(?:[13]\\d{0,3}|[24-8])\\d{7}', possible_number_pattern='\\d{7,11}'),
66
fixed_line=PhoneNumberDesc(national_number_pattern='[124-8][2-9]\\d{6}', possible_number_pattern='\\d{8}', example_number='12345678'),
7-
mobile=PhoneNumberDesc(national_number_pattern='3(?:0[0-24]|1\\d|2[01])\\d{7}', possible_number_pattern='\\d{10}', example_number='3211234567'),
7+
mobile=PhoneNumberDesc(national_number_pattern='3(?:0[0-5]|1\\d|[25][01])\\d{7}', possible_number_pattern='\\d{10}', example_number='3211234567'),
88
toll_free=PhoneNumberDesc(national_number_pattern='1800\\d{7}', possible_number_pattern='\\d{11}', example_number='18001234567'),
99
premium_rate=PhoneNumberDesc(national_number_pattern='19(?:0[01]|4[78])\\d{7}', possible_number_pattern='\\d{11}', example_number='19001234567'),
1010
shared_cost=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),

0 commit comments

Comments
 (0)