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
Built Distribution
Close
Hashes for pyMorseTranslator-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7536853b44e260e81b35f5497843dbf57b228bfd13c65d36d5ecd00b74bfa710 |
|
MD5 | a81063ae075e84ddf978a91a43683403 |
|
BLAKE2b-256 | 50f64c6b3e591136cb92aedf80001e613247ca913b23243f801d9e9fa14247fa |