Skip to main content

A library for decoding and encoding strings in Morse code.

Project description

pyMorseTranslator

pyMorseTranslator provides tools for encoding and decoding strings in morse code. A typical usage scenario looks like this:

#!/usr/bin/env python
from pyMorse import translator


# Initialize the encoder and decoder
encoder = translator.Encoder()
decoder = translator.Decoder()

# Encode the message
print(encoder.encode('This is morse code.').morse)

# Do stuff with the message

# Decode the message
print(decoder.decode(encoder.previousEncode.morse).plaintext)

The output of this code would be:

- .... .. ... / .. ... / -- --- .-. ... . / -.-. --- -.. . .-.-.-
THIS IS MORSE CODE.

Features

Current Features

  • Morse encoding

  • Morse decoding

  • Custom symbols for dots, dashes and separators

  • Custom characters for encoders and decoders

Planned Features

None right now.

Resources

Currently the only resource available is the files themselves, available at https://github.com/Eagle-Eye2324/pyMorseTranslator

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

pyMorseTranslator-1.2.0.tar.gz (17.3 kB view hashes)

Uploaded Source

Built Distribution

pyMorseTranslator-1.2.0-py3-none-any.whl (17.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page