Skip to main content

An aide to Morse Code

Project description

Morse Talk is a Python library which deals with Morse code


Using pip

pip install morse-talk

Development version

git clone
cd morse-talk/
python install


>>> import morse_talk as mtalk

# Encoding in morse
>>> mtalk.encode('Alpha Ranger 45 departed')
'.-   .-..   .--.   ....   .-       .-.   .-   -.   --.   .   .-.       ....-   .....
       -..   .   .--.   .-   .-.   -   .   -..'

# Encoding using binary pattern
>>> mtalk.encode('Alpha Ranger 45 knocked down', encoding='binary')

# Decoding a code encoded in morse
>>> code = '-...   ---   --   -...       -..-       .--.   --'
>>> mtalk.decode(code)
'bomb x pm'

Morse Code

Morse code is a method of transmitting text information as a series of on-off tones, lights, or clicks that can be directly understood by a skilled listener or observer without special equipment. The International Morse Code encodes the ISO basic Latin alphabet, some extra Latin letters, the Arabic numerals and a small set of punctuation and procedural signals as standardized sequences of short and long signals called “dots” and “dashes”, or “dits” and “dahs”. Because many non-English natural languages use more than the 26 Roman letters, extensions to the Morse alphabet exist for those languages.

Project details

Download files

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

Files for morse-talk, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size morse-talk-0.1.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page