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 is True
num.national_destination_code == "201"

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

digitz-0.4.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: digitz-0.4.0.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for digitz-0.4.0.tar.gz
Algorithm Hash digest
SHA256 50430fa2449791ff91b8537c7ba857e070bd0b70e1dc03a5c5c3c2d99acd3982
MD5 f55e94d65e55072bc9bc233fe82ea5cd
BLAKE2b-256 d376543d93e84c1266fd953bae4af5e7632c6aa6f1d51060166d71b7125ffb9d

See more details on using hashes here.

File details

Details for the file digitz-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: digitz-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.15

File hashes

Hashes for digitz-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53d8d6c9b9c3f5cd11f9f945ef4d81c0e59543c67130234f6ea9cc022e0ed468
MD5 0c7d309cf4e2366b14964490974ea489
BLAKE2b-256 836074ee805ec87e42ebede80092efd02faf35a2de577bce2ac93e5db05f2b5d

See more details on using hashes here.

Supported by

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