Skip to content

Commit c1314d2

Browse files
committed
Generated files for metadata
1 parent 7490463 commit c1314d2

122 files changed

Lines changed: 2452 additions & 2241 deletions

File tree

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/data0.py

Lines changed: 288 additions & 288 deletions
Large diffs are not rendered by default.

python/phonenumbers/carrierdata/data1.py

Lines changed: 126 additions & 126 deletions
Large diffs are not rendered by default.

python/phonenumbers/carrierdata/data2.py

Lines changed: 74 additions & 99 deletions
Large diffs are not rendered by default.

python/phonenumbers/data/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,15 @@ def _load_region(code):
6868
from .alt_format_81 import PHONE_ALT_FORMAT_81
6969
from .alt_format_84 import PHONE_ALT_FORMAT_84
7070
from .alt_format_855 import PHONE_ALT_FORMAT_855
71+
from .alt_format_856 import PHONE_ALT_FORMAT_856
7172
from .alt_format_90 import PHONE_ALT_FORMAT_90
7273
from .alt_format_91 import PHONE_ALT_FORMAT_91
7374
from .alt_format_94 import PHONE_ALT_FORMAT_94
7475
from .alt_format_95 import PHONE_ALT_FORMAT_95
7576
from .alt_format_971 import PHONE_ALT_FORMAT_971
7677
from .alt_format_972 import PHONE_ALT_FORMAT_972
7778
from .alt_format_995 import PHONE_ALT_FORMAT_995
78-
_ALT_NUMBER_FORMATS = {255: PHONE_ALT_FORMAT_255, 27: PHONE_ALT_FORMAT_27, 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, 381: PHONE_ALT_FORMAT_381, 385: PHONE_ALT_FORMAT_385, 39: PHONE_ALT_FORMAT_39, 43: PHONE_ALT_FORMAT_43, 44: PHONE_ALT_FORMAT_44, 49: PHONE_ALT_FORMAT_49, 505: PHONE_ALT_FORMAT_505, 506: PHONE_ALT_FORMAT_506, 52: PHONE_ALT_FORMAT_52, 54: PHONE_ALT_FORMAT_54, 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, 64: PHONE_ALT_FORMAT_64, 66: PHONE_ALT_FORMAT_66, 675: PHONE_ALT_FORMAT_675, 676: PHONE_ALT_FORMAT_676, 679: PHONE_ALT_FORMAT_679, 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, 91: PHONE_ALT_FORMAT_91, 94: PHONE_ALT_FORMAT_94, 95: PHONE_ALT_FORMAT_95, 971: PHONE_ALT_FORMAT_971, 972: PHONE_ALT_FORMAT_972, 995: PHONE_ALT_FORMAT_995}
79+
_ALT_NUMBER_FORMATS = {255: PHONE_ALT_FORMAT_255, 27: PHONE_ALT_FORMAT_27, 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, 381: PHONE_ALT_FORMAT_381, 385: PHONE_ALT_FORMAT_385, 39: PHONE_ALT_FORMAT_39, 43: PHONE_ALT_FORMAT_43, 44: PHONE_ALT_FORMAT_44, 49: PHONE_ALT_FORMAT_49, 505: PHONE_ALT_FORMAT_505, 506: PHONE_ALT_FORMAT_506, 52: PHONE_ALT_FORMAT_52, 54: PHONE_ALT_FORMAT_54, 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, 64: PHONE_ALT_FORMAT_64, 66: PHONE_ALT_FORMAT_66, 675: PHONE_ALT_FORMAT_675, 676: PHONE_ALT_FORMAT_676, 679: PHONE_ALT_FORMAT_679, 7: PHONE_ALT_FORMAT_7, 81: PHONE_ALT_FORMAT_81, 84: PHONE_ALT_FORMAT_84, 855: PHONE_ALT_FORMAT_855, 856: PHONE_ALT_FORMAT_856, 90: PHONE_ALT_FORMAT_90, 91: PHONE_ALT_FORMAT_91, 94: PHONE_ALT_FORMAT_94, 95: PHONE_ALT_FORMAT_95, 971: PHONE_ALT_FORMAT_971, 972: PHONE_ALT_FORMAT_972, 995: PHONE_ALT_FORMAT_995}
7980

8081
# A mapping from a country code to the region codes which
8182
# denote the country/region represented by that country code.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""Auto-generated file, do not edit by hand. 856 metadata"""
2+
from ..phonemetadata import NumberFormat
3+
4+
PHONE_ALT_FORMAT_856 = [NumberFormat(pattern='(20\\d)(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['20']), NumberFormat(pattern='(20)(\\d{4})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['20']), NumberFormat(pattern='(20)(\\d{8})', format='\\1 \\2', leading_digits_pattern=['20'])]

python/phonenumbers/data/region_BF.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
PHONE_METADATA_BF = PhoneMetadata(id='BF', country_code=226, international_prefix='00',
55
general_desc=PhoneNumberDesc(national_number_pattern='[25-7]\\d{7}', possible_length=(8,)),
66
fixed_line=PhoneNumberDesc(national_number_pattern='2(?:0(?:49|5[23]|6[56]|9[016-9])|4(?:4[569]|5[4-6]|6[56]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}', example_number='20491234', possible_length=(8,)),
7-
mobile=PhoneNumberDesc(national_number_pattern='(?:5[156]\\d|[67]\\d{2})\\d{5}', example_number='70123456', possible_length=(8,)),
7+
mobile=PhoneNumberDesc(national_number_pattern='(?:5[1568]\\d|[67]\\d{2})\\d{5}', example_number='70123456', possible_length=(8,)),
88
number_format=[NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4')])

python/phonenumbers/data/region_FI.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
preferred_international_prefix='00',
1313
national_prefix='0',
1414
national_prefix_for_parsing='0',
15-
number_format=[NumberFormat(pattern='(\\d{3})(\\d{3,7})', format='\\1 \\2', leading_digits_pattern=['(?:[16-8]0|300)'], national_prefix_formatting_rule='0\\1'),
15+
number_format=[NumberFormat(pattern='(\\d{3})(\\d{3,7})', format='\\1 \\2', leading_digits_pattern=['(?:[1-3]00|[6-8]0)'], national_prefix_formatting_rule='0\\1'),
1616
NumberFormat(pattern='(116\\d{3})', format='\\1', leading_digits_pattern=['116'], national_prefix_formatting_rule='\\1'),
17-
NumberFormat(pattern='(\\d{2})(\\d{3,9})', format='\\1 \\2', leading_digits_pattern=['1[3-9]|2[09]|4|50|7(?:[13]|5[03-9])'], national_prefix_formatting_rule='0\\1'),
17+
NumberFormat(pattern='(\\d{2})(\\d{3,9})', format='\\1 \\2', leading_digits_pattern=['1(?:0[1-9]|[3-9])|2(?:0[1-9]|9)|30[1-9]|4|50|7(?:[13]|5[03-9])'], national_prefix_formatting_rule='0\\1'),
1818
NumberFormat(pattern='(75\\d{3})', format='\\1', leading_digits_pattern=['75[12]'], national_prefix_formatting_rule='0\\1'),
19-
NumberFormat(pattern='(\\d)(\\d{5,9})', format='\\1 \\2', leading_digits_pattern=['[25689][1-8]|3(?:0[1-9]|[1-8])'], national_prefix_formatting_rule='0\\1'),
19+
NumberFormat(pattern='(\\d)(\\d{5,9})', format='\\1 \\2', leading_digits_pattern=['[235689][1-8]'], national_prefix_formatting_rule='0\\1'),
2020
NumberFormat(pattern='(39\\d)(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['39'], national_prefix_formatting_rule='0\\1')],
21-
intl_number_format=[NumberFormat(pattern='(\\d{3})(\\d{3,7})', format='\\1 \\2', leading_digits_pattern=['(?:[16-8]0|300)']),
21+
intl_number_format=[NumberFormat(pattern='(\\d{3})(\\d{3,7})', format='\\1 \\2', leading_digits_pattern=['(?:[1-3]00|[6-8]0)']),
2222
NumberFormat(pattern='(116\\d{3})', format='\\1', leading_digits_pattern=['116']),
23-
NumberFormat(pattern='(\\d{2})(\\d{3,9})', format='\\1 \\2', leading_digits_pattern=['1[3-9]|2[09]|4|50|7(?:[13]|5[03-9])']),
24-
NumberFormat(pattern='(\\d)(\\d{5,9})', format='\\1 \\2', leading_digits_pattern=['[25689][1-8]|3(?:0[1-9]|[1-8])']),
23+
NumberFormat(pattern='(\\d{2})(\\d{3,9})', format='\\1 \\2', leading_digits_pattern=['1(?:0[1-9]|[3-9])|2(?:0[1-9]|9)|30[1-9]|4|50|7(?:[13]|5[03-9])']),
24+
NumberFormat(pattern='(\\d)(\\d{5,9})', format='\\1 \\2', leading_digits_pattern=['[235689][1-8]']),
2525
NumberFormat(pattern='(39\\d)(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['39'])],
2626
main_country_for_code=True,
2727
mobile_number_portable_region=True)

python/phonenumbers/data/region_GG.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313
pager=PhoneNumberDesc(national_number_pattern='76(?:0[012]|2[356]|4[0134]|5[49]|6[0-369]|77|81|9[39])\\d{6}', example_number='7640123456', possible_length=(10,)),
1414
uan=PhoneNumberDesc(national_number_pattern='(?:3[0347]|55)\\d{8}', example_number='5512345678', possible_length=(10,)),
1515
national_prefix='0',
16-
preferred_extn_prefix=' x',
1716
national_prefix_for_parsing='0')

python/phonenumbers/data/region_HK.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
premium_rate=PhoneNumberDesc(national_number_pattern='900(?:[0-24-9]\\d{7}|3\\d{1,4})', example_number='90012345678', possible_length=(5, 6, 7, 8, 11)),
1010
personal_number=PhoneNumberDesc(national_number_pattern='8(?:1[1-4679]|2[0-367]|3[02-47])\\d{5}', example_number='81123456', possible_length=(8,)),
1111
pager=PhoneNumberDesc(national_number_pattern='7(?:1[0-369]|[23][0-37-9]|47|5[1578]|6[0235]|7[278]|8[236-9]|9[025-9])\\d{5}', example_number='71234567', possible_length=(8,)),
12+
uan=PhoneNumberDesc(national_number_pattern='30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}', example_number='30161234', possible_length=(8,)),
1213
preferred_international_prefix='00',
1314
number_format=[NumberFormat(pattern='(\\d{4})(\\d{4})', format='\\1 \\2', leading_digits_pattern=['[235-7]|[89](?:0[1-9]|[1-9])']),
1415
NumberFormat(pattern='(800)(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['800']),

python/phonenumbers/data/region_IM.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@
1313
pager=PhoneNumberDesc(national_number_pattern='7624[01689]\\d{5}', example_number='7624012345', possible_length=(10,)),
1414
uan=PhoneNumberDesc(national_number_pattern='3(?:08162\\d|3\\d{5}|4(?:40[49]06|5624\\d)|7(?:0624\\d|2299\\d))\\d{3}|55\\d{8}', example_number='5512345678', possible_length=(10,)),
1515
national_prefix='0',
16-
preferred_extn_prefix=' x',
1716
national_prefix_for_parsing='0')

0 commit comments

Comments
 (0)