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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
canonical-phone-0.0.6.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for canonical_phone-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0033e7be931b3cb6fad77ec33dc2fb27a194a135a6df9b04d5c7a4dbc30e2d36 |
|
MD5 | 25a00b85f3a6191fa8d8df3332cc02ed |
|
BLAKE2b-256 | 093cee49e869013d70e735db81051cc88bb2881b45acf356e2177edf2fd74717 |