Skip to content

aBoredDev/pyMorseTranslator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyMorseTranslator

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

#!/usr/bin/env python
from pyMorseTranslator 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/aBoredDev/pyMorseTranslator

About

A library for decoding and encoding strings in Morse code in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages