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.
Metadata
Release files for pytxt2morse 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytxt2morse-0.1.0.tar.gz | 3.1 kB | Without provenance | Details for pytxt2morse-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytxt2morse-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pytxt2morse-0.1.0-py3-none-any.whl |
Total release size: 6.7 kB
Release files / pytxt2morse-0.1.0.tar.gz
| Download URL | pytxt2morse-0.1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63827597c0f0b01bafaeaf1a2728491508e214d63e22c1c5c2f52a856bf83da3
|
|
BLAKE2b-256 checksum How to use checksums |
5f1eec5fb404ff6589027c9dd8620170ea1d4d4f2c599f7ba6beae5d068a469c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Release files / pytxt2morse-0.1.0-py3-none-any.whl
| Download URL | pytxt2morse-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e18030ecc36a381ae5784087a2ad9be827a16ac497a258a3a9069ee86b5e30ed
|
|
BLAKE2b-256 checksum How to use checksums |
07cf86f5564ffbddd21df842e2094164c95a331aec1afef7d43e6e474f842490
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Security for pytxt2morse 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.