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 details)
Built Distribution
File details
Details for the file morsewave-1.0.tar.gz
.
File metadata
- Download URL: morsewave-1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a98ddbb178a3ce2132ec70fe56cf09e9c1a4d566a96d4bc521a9993b0523d22a |
|
MD5 | 4724c65937b6e4506854750c7b6d85d4 |
|
BLAKE2b-256 | 0780500db351c3fbad0a3c47a5e68186f3f37ed7b5e01b0f095baa4e5b661afe |
File details
Details for the file morsewave-1.0-py3-none-any.whl
.
File metadata
- Download URL: morsewave-1.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b2784e86bbdb8b103b8bb4ec4385b3222bf430d6a4dbe0bfc4b5cce1f4a517d |
|
MD5 | 22dd02659cee4ded761e05193757e483 |
|
BLAKE2b-256 | 1f5f2e05c218fe108960b77be844c660ef734a74eb559ade3a524ab242e03694 |