Python port of Google’s libphonenumber
Original Java code is Copyright (C) 2009-2015 The Libphonenumber Authors.
Install using pip with:
pip install phonenumbers
The main object that the library deals with is a
PhoneNumber object. You can create this from a string representing a phone number using the
parse function, but you also need to specify the country that the phone number is being dialled from (unless the number is in E.164 format, which is