Skip to main content

Python phone numbers made easy.

Project description

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.

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.3.0.tar.gz (6.6 kB view details)

Uploaded Source

File details

Details for the file digitz-0.3.0.tar.gz.

File metadata

  • Download URL: digitz-0.3.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for digitz-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5f50b08908ac3ae7741eb7346c1b686ed915ccf3349f78635de69e86395f5abf
MD5 2c265e49a9677d2cf11f03329d3a0381
BLAKE2b-256 a1a45ab50d198891f24d8e525f423593b2b17c64da5b69799e7de88d582cbc6c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page