Python: module phonenumbers.phonenumber

phonenumbers.phonenumber | index phonenumbers/phonenumber.py

`PhoneNumber object definition`

Classes
`` |  | builtins.object CountryCodeSource phonenumbers.util.UnicodeMixin(builtins.object) PhoneNumber FrozenPhoneNumber(PhoneNumber, phonenumbers.util.ImmutableMixin)
class CountryCodeSource(builtins.object)
`` | `The source from which a country code is derived.`
| Class methods defined here: to_string(val) from builtins.type `Return a string representation of a CountryCodeSource value` Data descriptors defined here: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)` Data and other attributes defined here: FROM_DEFAULT_COUNTRY = 20 FROM_NUMBER_WITHOUT_PLUS_SIGN = 10 FROM_NUMBER_WITH_IDD = 5 FROM_NUMBER_WITH_PLUS_SIGN = 1 UNSPECIFIED = 0
class FrozenPhoneNumber(PhoneNumber, phonenumbers.util.ImmutableMixin)
`` | `FrozenPhoneNumber(*__args, **__kwargs) Immutable version of PhoneNumber`
| Method resolution order: FrozenPhoneNumber PhoneNumber phonenumbers.util.UnicodeMixin phonenumbers.util.ImmutableMixin builtins.object Methods defined here: __hash__(self) `Return hash(self).` __init__ = wrapper(self, *__args, **__kwargs) Methods inherited from PhoneNumber: __eq__(self, other) `Return self==value.` __ne__(self, other) `Return self!=value.` __repr__(self) `Return repr(self).` __unicode__(self) clear(self) `Erase the contents of the object` merge_from(self, other) `Merge information from another PhoneNumber object into this one.` Methods inherited from phonenumbers.util.UnicodeMixin: __str__(self) `Return str(self).` Data descriptors inherited from phonenumbers.util.UnicodeMixin: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)` Methods inherited from phonenumbers.util.ImmutableMixin: __delattr__(self, name) `Implement delattr(self, name).` __setattr__(self, name, value) `Implement setattr(self, name, value).`
class PhoneNumber(phonenumbers.util.UnicodeMixin)
`` | `PhoneNumber(country_code=None, national_number=None, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, raw_input=None, country_code_source=0, preferred_domestic_carrier_code=None) Class representing international telephone numbers. This class is hand-created based on phonenumber.proto. Please refer to that file for detailed descriptions of the meaning of each field.`
| Method resolution order: PhoneNumber phonenumbers.util.UnicodeMixin builtins.object Methods defined here: __eq__(self, other) `Return self==value.` __init__(self, country_code=None, national_number=None, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, raw_input=None, country_code_source=0, preferred_domestic_carrier_code=None) `Initialize self. See help(type(self)) for accurate signature.` __ne__(self, other) `Return self!=value.` __repr__(self) `Return repr(self).` __unicode__(self) clear(self) `Erase the contents of the object` merge_from(self, other) `Merge information from another PhoneNumber object into this one.` Data and other attributes defined here: __hash__ = None Methods inherited from phonenumbers.util.UnicodeMixin: __str__(self) `Return str(self).` Data descriptors inherited from phonenumbers.util.UnicodeMixin: __dict__ `dictionary for instance variables (if defined)` __weakref__ `list of weak references to the object (if defined)`