digitz
What is it?
digitz is a phone number parsing, validating, and formatting library built on top of python-phonenumbers. The goal of digitz is to bring a modern Python developer experience to working with phone numbers.
Table of Contents
Getting Started
Installing
Install digitz using pip.
pip install digitz
Documentation
The official documentation can be found here
Running the tests
It is recommended to run the tests using hatch.
hatch test
License
digitz is distributed under the terms of the MIT license.
Example Usage
>>> 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'
Metadata
Release files for digitz 0.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| digitz-0.8.0.tar.gz | 14.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| digitz-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.8 kB
Release files / digitz-0.8.0.tar.gz
| Download URL | digitz-0.8.0.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b9bf38b29af9d28b1da389208baf51d7b2e8ca827773a9694facbd8e5af49690
|
|
BLAKE2b-256 checksum How to use checksums |
8314cee0b37ce53244f135372163fe6209a1e8804a8b79a1c576ab42eb401035
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|
Release files / digitz-0.8.0-py3-none-any.whl
| Download URL | digitz-0.8.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6b024547554efd5f98ecd43f01606a22838be8e6ea8d949ebeb97e48a77da92
|
|
BLAKE2b-256 checksum How to use checksums |
b58d406d063cc0f69408f46b471566d3e35ff4001923f14081a2a98b75b6fd88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-httpx/0.28.1
|