ngkabra/parsephoneno
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A simple function that takes a string representing an Indian phone number, and returns it in a canonical format '91dddddddddd'. Usage: >>> from parsephoneno import canonical_number >>> canonical_number('98220-12345') 919822012345 >>> canonical_number('98220 1234') Traceback (most recent call last): ... NumberTooShortError: 982201234 >>> phone_number('98220 1234') # Does not throw an exception >>> See docstrings for more examples
About
Parse an Indian Phone number and return it in a canonical format
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published