All-in-one solution for converting between text and Morse code effortlessly
Project description
MorseWave V1.0
Overview
MorseWave is a Python module that enables users to convert text to Morse code and vice versa. It offers a straightforward interface for converting between text and Morse code representations.
Features
- Convert text to Morse code.
- Convert Morse code to text.
- Supports letters, numbers, and common punctuation symbols.
- Flexible output options: Morse code or text.
Installation
-
Clone this repository to your local machine.
-
Import the module into your Python script:
import morsewave as mw
- Start using the functions provided by the module.
Usage
Example:
input_string = "Hello, World!"
output_type = "Morse"
result = mw.morse_converter(input_string, output_type)
print(result) # Output: ".... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.--"
Functionality:
- mw.morse_converter(input_string, output_type):
input_string
(str): The string to be converted, which can be in Morse code or text format.output_type
(str): The desired output type as a string: 'Morse' or 'Txt' (case insensitive).
Help Function
For detailed usage instructions, you can use the help()
function:
mw.help()
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
morsewave-1.0.tar.gz
(4.7 kB
view hashes)