Skip to main content

All-in-one solution for converting between text and Morse code effortlessly

Project description

MorseWave V1.0

License

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

  1. Clone this repository to your local machine.

  2. Import the module into your Python script:

import morsewave as mw
  1. 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

This version

1.0

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)

Uploaded Source

Built Distribution

morsewave-1.0-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page