forked from daviddrysdale/python-phonenumbers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
65 lines (63 loc) · 2.19 KB
/
Copy path__init__.py
File metadata and controls
65 lines (63 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
"""Auto-generated file, do not edit by hand."""
# Copyright (C) 2010-2013 The Libphonenumber Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from .region_800 import PHONE_METADATA_800
from .region_979 import PHONE_METADATA_979
from .region_AD import PHONE_METADATA_AD
from .region_AE import PHONE_METADATA_AE
from .region_AO import PHONE_METADATA_AO
from .region_AR import PHONE_METADATA_AR
from .region_AU import PHONE_METADATA_AU
from .region_BR import PHONE_METADATA_BR
from .region_BS import PHONE_METADATA_BS
from .region_BY import PHONE_METADATA_BY
from .region_DE import PHONE_METADATA_DE
from .region_GB import PHONE_METADATA_GB
from .region_IT import PHONE_METADATA_IT
from .region_JP import PHONE_METADATA_JP
from .region_KR import PHONE_METADATA_KR
from .region_MX import PHONE_METADATA_MX
from .region_NZ import PHONE_METADATA_NZ
from .region_PL import PHONE_METADATA_PL
from .region_RE import PHONE_METADATA_RE
from .region_SG import PHONE_METADATA_SG
from .region_US import PHONE_METADATA_US
from .region_YT import PHONE_METADATA_YT
# A mapping from a country code to the region codes which
# denote the country/region represented by that country code.
# In the case of multiple countries sharing a calling code,
# such as the NANPA countries, the one indicated with
# "main_country_for_code" in the metadata should be first.
_COUNTRY_CODE_TO_REGION_CODE = {
1: ("US", "BS",),
39: ("IT",),
44: ("GB",),
48: ("PL",),
49: ("DE",),
52: ("MX",),
54: ("AR",),
55: ("BR",),
61: ("AU",),
64: ("NZ",),
65: ("SG",),
81: ("JP",),
82: ("KR",),
244: ("AO",),
262: ("RE", "YT",),
375: ("BY",),
376: ("AD",),
800: ("001",),
971: ("AE",),
979: ("001",),
}