Skip to main content

represent phone numbers as easy to remember words

Project description

Callword

Represent phone numbers as easy to remember words!

Setup

pip install callword

Usage

Map digits to possible words

>>> word_dict = callword.read_word_dict()
>>> word_dict['7246837']
['PAINTER']

Find wordified version of phone numbers

>>> phone_number = '1-800-724-6837'
>>> wordified_number = callword.number_to_words(phone_number, word_dict)
>>> wordified_number
'1-800-PAINTER'

Find all wordified versions of phone numbers

>>> all_wordifications = callword.all_wordifications(phone_number, word_dict)
>>> all_wordifications
['1-800-PAINTER',  '1-800-PAINT-DR', '1-800-SAINT-DR', '1-800-PAINT-37', '1-800-SAINT-37', 
 '1-800-RAG-MUDS', '1-800-RAG-OVER', '1-800-SAG-MUDS', '1-800-SAG-OVER' ...]

Convert wordified phone numbers back to numbers

>>> callword.words_to_number(wordified_number) 
'1-800-724-6837'

More Examples

Checkout our tests for more features...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

callword-0.11-py3-none-any.whl (166.6 kB view details)

Uploaded Python 3

File details

Details for the file callword-0.11-py3-none-any.whl.

File metadata

  • Download URL: callword-0.11-py3-none-any.whl
  • Upload date:
  • Size: 166.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.5.2

File hashes

Hashes for callword-0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 e857a9d42eae579a178189578967ea6836258aa9b477baa831de835e5e75e540
MD5 60663916a6cc4d2cf56a85f7cc08dd51
BLAKE2b-256 76ccacb9a5a3e464ce23a3b9db8e363795444bd1d9d8660641f08a10bdb370ee

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