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
Release history Release notifications | RSS feed
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
callword-0.11-py3-none-any.whl
(166.6 kB
view hashes)