Python phone numbers made easy.
Project description
digitz
Table of Contents
Installation
pip install digitz
Quickstart
>>> from digitz import PhoneNumber
>>> num = PhoneNumber.parse("+1 (201) 555-0123")
>>> num.region_code
'US'
>>> num.is_possible
True
>>> num.national_destination_code
'201'
>>> num.to_e164()
'+12015550123'
>>> num.to_national()
'(201) 555-0123'
>>> num.to_international()
'+1 201-555-0123'
License
digitz is distributed under the terms of the MIT license.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
digitz-0.5.0.tar.gz
(10.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file digitz-0.5.0.tar.gz.
File metadata
- Download URL: digitz-0.5.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67b8370d7fc8ade7a13a10f8d491f51209e4a221b27587a736b7fa588f0bcc58
|
|
| MD5 |
dbbff78aa715e3e0e713a0f358366857
|
|
| BLAKE2b-256 |
955fd7c8d4b21d315eb392ed57c841f9acac21bf48f0f013d15bcd3bc3e109d4
|
File details
Details for the file digitz-0.5.0-py3-none-any.whl.
File metadata
- Download URL: digitz-0.5.0-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed592b0128fae2b627d54e02529f76ad205417ef8c73fcbed68027c895ef7668
|
|
| MD5 |
84a7b614034b21fafe23ce724dd4e054
|
|
| BLAKE2b-256 |
62f6d565efe42f8744316f76578ffd91409a67a5bf3be0a6bfad1b9d21873ac9
|