Skip to content
rykroonPublic

About

Python phone numbers made easy.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

digitz

PyPI - Version PyPI - Python Version codecov PyPI - Downloads


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'

About

Python phone numbers made easy.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages