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
Planned Features
- Custom characters for encoders and decoders
Resources
Currently the only resource available is the files themselves, available at https://github.com/Eagle-Eye2324/pyMorse
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 Distribution
Built Distribution
Close
Hashes for pyMorseTranslator-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71e7c9ff51c718497cea6a8a0ae87598967d3b0df8cc539d90d746171aa28d14 |
|
MD5 | 5d49c3c88ff07a3e4e3d09fbf35c56d8 |
|
BLAKE2b-256 | 7bcbd8f00b3888b5cd1f856d08d192621738e2b224d72199f334f9a1f9aaa740 |