A package for encoding and decoding Morse code.
Project description
MorseCodeEnhanced
MorseCodePlus is a Python package that provides functionality for encoding and decoding Morse code.
Installation
You can install MorseCodePlus using pip:
pip install morsecode_enhanced
Usage
Encoding
To encode text into Morse code, you can use the encode function:
from morsecode_enhanced import encode
encoded_message = encode('Hello, World!')
print(encoded_message)
Output:
.... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.--
Decoding
To decode Morse code into text, you can use the decode function:
from morsecode_enhanced import decode
decoded_message = decode('.... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.--')
print(decoded_message)
Output:
HELLO, WORLD!
Contributing
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on GitHub.
License
This project is licensed under the MIT License
You can now copy this code and use it as your README.md file.
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
File details
Details for the file morsecode_enhanced-1.0.2.tar.gz
.
File metadata
- Download URL: morsecode_enhanced-1.0.2.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9692b72e0785400ec73b8028e90f0f89cbe8b69ce910026b3fc9097b1e160e2c |
|
MD5 | 27091a1a2ec3d42449061b75d96f5a86 |
|
BLAKE2b-256 | 93fc678a7aae6c8baf4ef65b4f543513b96ed19eb61506d7698ee21bd43fa36d |