Skip to main content

Convert text to Morse code and Morse code to text.

Project description

pytxt2morse

pytxt2morse is a simple Python package that converts text to Morse code and Morse code back to text.

Installation

pip install pytxt2morse

Usage

import pytxt2morse

morse_code = pytxt2morse.txt2morse("HELLO WORLD")
print(morse_code)

text = pytxt2morse.morse2txt(".... . .-.. .-.. --- / .-- --- .-. .-.. -..")
print(text)

🚀 Features

✅ Bidirectional Conversion Convert from text to Morse code and Morse code back to text seamlessly.

🔤 Full Alphabet Support Handles A–Z (case-insensitive) and 0–9 digits.

✨ Punctuation Handling Supports a wide range of symbols: . , ? ' ! / ( ) & : ; = + - _ " $ @

🧠 Simple API Just import the package and call txt2morse() or morse2txt()—no extra setup needed.

📦 Minimal Dependencies Written in pure Python with no external packages required.

📘 Beginner Friendly Great for educational use or learning about string processing and Morse code.

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

pytxt2morse-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytxt2morse-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file pytxt2morse-0.1.0.tar.gz.

File metadata

  • Download URL: pytxt2morse-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for pytxt2morse-0.1.0.tar.gz
Algorithm Hash digest
SHA256 63827597c0f0b01bafaeaf1a2728491508e214d63e22c1c5c2f52a856bf83da3
MD5 b22809fadad84fa79cc9644e5dca70e1
BLAKE2b-256 5f1eec5fb404ff6589027c9dd8620170ea1d4d4f2c599f7ba6beae5d068a469c

See more details on using hashes here.

File details

Details for the file pytxt2morse-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pytxt2morse-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for pytxt2morse-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e18030ecc36a381ae5784087a2ad9be827a16ac497a258a3a9069ee86b5e30ed
MD5 165a2b86dfab60d4f42328132e65360a
BLAKE2b-256 07cf86f5564ffbddd21df842e2094164c95a331aec1afef7d43e6e474f842490

See more details on using hashes here.

Supported by

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