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.national_destination_code
'201'
>>> num.to_e164()
'+12015550123'
>>> num.to_national()
'(201) 555-0123'
>>> num.to_international()
'+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.6.0.tar.gz (11.3 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.6.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for digitz-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c173737b228acc1d7bcef7c1d207e5e0a2fc169c70974d49ffaca81bd8602acc
MD5 611f9a428a9e124d95781c98fee169e7
BLAKE2b-256 d3e3ed78eb3ccae6cd45417841caa7ae062e3ff6749e4a658c53e9a1a0fbc935

See more details on using hashes here.

File details

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

File metadata

  • Download URL: digitz-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6fb6b04d6347923a087cc9f4dd2cab85c7a68358369810673ffc456f13e357ec
MD5 1a3aee7463fddb495ef07de4aaa19ed1
BLAKE2b-256 7d370ded2fd5a2f2f123021d4844bf9b642c247cc632f8e931a812ab9290ef13

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