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
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
pyMorseTranslator-1.2.0.tar.gz
(17.3 kB
view hashes)
Built Distribution
Close
Hashes for pyMorseTranslator-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5b17cde7eaaf213689e0c28a7bf74c90b2db9591af4e83e91b461fbb92592b0 |
|
MD5 | dda5dabdeef9c57a5466013b5cbb39f5 |
|
BLAKE2b-256 | 681fdccb8c3ebe41f90f52dc5888be9ef1ecb481a40447749f063a971215e46d |