Skip to main content

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 MorseCode

mc = MorseCode()
encoded_word = mc.encode_word('Hello, World!')
print(encodex_word)

Output:

.... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.--

Decoding

To decode Morse code into text, you can use the decode function:

from morsecode_enhanced import MorseCode

mc = MorseCode()
decoded_message = mc.decode('.... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.--')
print(decoded_message)

Output:

HELLO, WORLD!

More Functionalities

from morsecode_enhanced import MorseCode

mc = MorseCode()
encoded_word = mc.encode_word('Hello')
print(encoded_word)

decoded_word = mc.decode_word('.-..')
print(decoded_word)

random_morse = mc.generate_random_morse(10)

is_valid_morse = mc.is_valid_morse_code(encoded_word)

analyzed = mc.analyze_frequency('.-..')

visualised = mc.visualize_morse_code('.-..')

duration = mc.calculate_duration('.-..')

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.

Release files for morsecode-enhanced 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for morsecode-enhanced 1.0.3
File Size Uploaded
morsecode_enhanced-1.0.3.tar.gz 7.0 kB Details

Release files / morsecode_enhanced-1.0.3.tar.gz

Download URL morsecode_enhanced-1.0.3.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c22739826ea181a1ae4d95ca56850b402e5fb6252a174504adb68e86c93e4552
BLAKE2b-256 checksum
How to use checksums
dc8598140f5197a0e0aa0a1ecaa35e748c15f3d23c0208996ba74ed4c24f7de2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release history Release notifications | RSS feed

This release

1.0.3 This release

1 release file

1.0.2

1 release file

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page