|
73 | 73 | # I'll use regular expressions." Now they have two problems.' |
74 | 74 | # -- jwz 1997-08-12 |
75 | 75 |
|
76 | | -# Version number is taken from the upstream libphonenumber version |
77 | | -# together with an indication of the version of the Python-specific code. |
78 | | -__version__ = "4.5b1" |
79 | | - |
80 | 76 | # Data class definitions |
81 | 77 | from .phonenumber import PhoneNumber, CountryCodeSource, FrozenPhoneNumber |
82 | 78 | from .phonemetadata import REGION_CODE_FOR_NON_GEO_ENTITY, NumberFormat, PhoneNumberDesc, PhoneMetadata |
83 | 79 | # Functionality |
84 | 80 | from .asyoutypeformatter import AsYouTypeFormatter |
85 | | -from .phonenumberutil import * |
| 81 | +from .phonenumberutil import (COUNTRY_CODE_TO_REGION_CODE, SUPPORTED_REGIONS, UNKNOWN_REGION, |
| 82 | + MatchType, NumberParseException, PhoneNumberFormat, |
| 83 | + PhoneNumberType, ValidationResult, |
| 84 | + convert_alpha_characters_in_number, |
| 85 | + country_code_for_region, |
| 86 | + example_number, |
| 87 | + example_number_for_type, |
| 88 | + example_number_for_non_geo_entity, |
| 89 | + format_by_pattern, |
| 90 | + format_in_original_format, |
| 91 | + format_national_number_with_carrier_code, |
| 92 | + format_national_number_with_preferred_carrier_code, |
| 93 | + format_number_for_mobile_dialing, |
| 94 | + format_number, |
| 95 | + format_out_of_country_calling_number, |
| 96 | + format_out_of_country_keeping_alpha_chars, |
| 97 | + is_alpha_number, |
| 98 | + is_nanpa_country, |
| 99 | + is_number_match, |
| 100 | + is_possible_number, |
| 101 | + is_possible_number_string, |
| 102 | + is_possible_number_with_reason, |
| 103 | + is_valid_number, |
| 104 | + is_valid_number_for_region, |
| 105 | + length_of_geographical_area_code, |
| 106 | + length_of_national_destination_code, |
| 107 | + national_significant_number, |
| 108 | + ndd_prefix_for_region, |
| 109 | + normalize_digits_only, |
| 110 | + number_type, |
| 111 | + parse, |
| 112 | + region_code_for_country_code, |
| 113 | + region_code_for_number, |
| 114 | + truncate_too_long_number,) |
86 | 115 | from .shortnumberutil import connects_to_emergency_number, is_emergency_number |
87 | 116 | from .phonenumbermatcher import PhoneNumberMatch, PhoneNumberMatcher, Leniency |
88 | 117 | from .geocoder import (area_description_for_number, country_name_for_number, |
89 | 118 | description_for_number, description_for_valid_number) |
90 | 119 |
|
| 120 | + |
| 121 | +# Version number is taken from the upstream libphonenumber version |
| 122 | +# together with an indication of the version of the Python-specific code. |
| 123 | +__version__ = "4.5b1" |
| 124 | + |
91 | 125 | __all__ = ['PhoneNumber', 'CountryCodeSource', 'FrozenPhoneNumber', |
92 | 126 | 'REGION_CODE_FOR_NON_GEO_ENTITY', 'NumberFormat', 'PhoneNumberDesc', 'PhoneMetadata', |
93 | 127 | 'AsYouTypeFormatter', |
|
126 | 160 | 'region_code_for_country_code', |
127 | 161 | 'region_code_for_number', |
128 | 162 | 'truncate_too_long_number', |
| 163 | + # end of items from phonenumberutil.py |
129 | 164 | 'connects_to_emergency_number', 'is_emergency_number', |
130 | 165 | 'PhoneNumberMatch', 'PhoneNumberMatcher', 'Leniency', |
131 | 166 | 'area_description_for_number', |
|
0 commit comments