Skip to main content

A simple Morse code encoder and decoder for Python.

Project description

morse-coder

GitHub Repo PyPI License: MIT

Python Last Commit Stars

Maintained by acrazypie

A simple and lightweight Python library to encode and decode Morse code.
Supports letters, numbers, and punctuation symbols — perfect for small projects, learning, or creative experiments.


🚀 Installation

You can install it directly from PyPI:

pip install morse-coder

Or, if you’re developing locally:

pip install -e .

🧠 Usage

from morsepy import encode, decode

text = "ciao mondo!"
code = encode(text)
print("Morse:", code)

decoded = decode(code)
print("Decoded:", decoded)

Output:

Morse: _._. .. ._ ___ / __ ___ _. _.. ___ _._.__
Decoded: ciao mondo!

📚 Features

  • 🔤 Encode any text into Morse code
  • 🔁 Decode Morse code back to text
  • 🧩 Supports A–Z, 0–9, and common punctuation
  • ⚡ Lightweight, dependency-free

📦 Project Structure

morsepy/
├── morsepy/
│   ├── __init__.py
│   └── core.py
├── pyproject.toml
├── README.md
└── LICENSE

🪪 License

Released under the MIT License
© 2025 Elisa

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

morse_coder-1.0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

morse_coder-1.0.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: morse_coder-1.0.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for morse_coder-1.0.1.tar.gz
Algorithm Hash digest
SHA256 25d0add755112c5271d46f11a4764c82aa55e8258edc643a8f15a66c7b3de6fd
MD5 bebae0e46e136789cb192d8e72a6d2c4
BLAKE2b-256 abbbbe030a47904f3045982ccf68bf34c5d3c57751cdcd6a81628c5adcafdb06

See more details on using hashes here.

File details

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

File metadata

  • Download URL: morse_coder-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for morse_coder-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c583f3616db4ccc7e2a4deb4f35cbc46db98e17f4e4dc403ff0b2fd62fc88e42
MD5 5fb715571f4a7594d14ac5368ee41ca4
BLAKE2b-256 87f83349a89b9b36e16d9158f6326e92db22bdeffd8afd57081a958ceabd777c

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