Skip to main content

Library to get canonical phone number

Project description

Canonical Phone

Purpose

Convert given phone number into a string with hiphenated phone number with country code. Default is assumed to be Indonesian number.

Installation

pip install canonical-phone==0.0.6

How to use?

from canonical_phone.phone import canonical_number
phone_no = canonical_number(phone) # If invalid, returns False
if not phone_no:
    raise Exception("invalid phone number")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for canonical-phone, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size canonical_phone-0.0.6-py3-none-any.whl (3.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size canonical-phone-0.0.6.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page