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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63827597c0f0b01bafaeaf1a2728491508e214d63e22c1c5c2f52a856bf83da3
|
|
| MD5 |
b22809fadad84fa79cc9644e5dca70e1
|
|
| BLAKE2b-256 |
5f1eec5fb404ff6589027c9dd8620170ea1d4d4f2c599f7ba6beae5d068a469c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e18030ecc36a381ae5784087a2ad9be827a16ac497a258a3a9069ee86b5e30ed
|
|
| MD5 |
165a2b86dfab60d4f42328132e65360a
|
|
| BLAKE2b-256 |
07cf86f5564ffbddd21df842e2094164c95a331aec1afef7d43e6e474f842490
|