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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyMorseTranslator-1.2.0.tar.gz.
File metadata
- Download URL: pyMorseTranslator-1.2.0.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4373286a3d4fc2ea5042da477fcd9afb6dbc39bee5f02ef421f35f44101ac079
|
|
| MD5 |
87eda90b948f1ee7eb537b074e0f6889
|
|
| BLAKE2b-256 |
db95001a42f48d437f6b021cfa3707c05ffb7733096f392681cd4b36d51b12ff
|
File details
Details for the file pyMorseTranslator-1.2.0-py3-none-any.whl.
File metadata
- Download URL: pyMorseTranslator-1.2.0-py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5b17cde7eaaf213689e0c28a7bf74c90b2db9591af4e83e91b461fbb92592b0
|
|
| MD5 |
dda5dabdeef9c57a5466013b5cbb39f5
|
|
| BLAKE2b-256 |
681fdccb8c3ebe41f90f52dc5888be9ef1ecb481a40447749f063a971215e46d
|