A Python package for converting characters and digits to phonetic alphabet equivalents.
Installation can be done with the Python Package Index (PyPI).
pip install phonetic-alphabet
Converting an aircraft call-sign:
import phonetic_alphabet as alpha
call_sign = 'CF-ABC'
response = alpha.read(call_sign)
>>> CHARLIE FOXTROT - ALPHA BRAVO CHARLIE
Converting digits:
import phonetic_alphabet as alpha
heading = 290
response = alpha.read(heading)
>>> TWO NINER ZERO