libb.format_phone

format_phone(phone)[source]

Reformat phone numbers for display.

Parameters:

phone – Phone number as string or integer.

Returns:

Formatted phone number with dashes.

Return type:

str

Example:

>>> format_phone('6877995559')
'687-799-5559'