/digitz

Python phone numbers made easy.

Primary LanguagePythonMIT LicenseMIT

digitz

PyPI - Version PyPI - Python Version


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.to_e164() == "+12015550123"
num.to_international() == "+1 201-555-0123"
num.to_rfc3966() == "tel:+1-201-555-0123"

License

digitz is distributed under the terms of the MIT license.