Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

morsecode_enhanced-1.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

morsecode_enhanced-1.0.1-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file morsecode_enhanced-1.0.1.tar.gz.

File metadata

  • Download URL: morsecode_enhanced-1.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for morsecode_enhanced-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9c61c90ef8ceb9ace871cecd1a8acf17802912d40d673c6cbb7cc18ae94f5e3a
MD5 ef0b28b3417125f6117a93cfcd5b3ebd
BLAKE2b-256 6915e8608574908b4864d813167fff689e37316fe95de06a1548c019d28d3f9e

See more details on using hashes here.

Provenance

File details

Details for the file morsecode_enhanced-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for morsecode_enhanced-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e0e1aea9d6767d3049b147efe65fba2fd6f31896f42e69be8bb453b389ed13eb
MD5 133ea33bc822ef7ce68df4957fe0f187
BLAKE2b-256 4c587df378ea786cfe58c42a03ca7f93b7bd2bddc6517f0c0e039a6f403918df

See more details on using hashes here.

Provenance

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