Skip to main content

Binary Morse encoding and decoding for real-world signal use.

Project description

Qmorse

Qmorse is a lightweight Python library for working with Binary Morse code.
It provides a precise, timing-aware representation of Morse that can be used for messaging systems, digital signal experiments, custom broadcasting formats, or any project where Morse must behave like an actual timed signal rather than decorative characters.

Binary Morse in Qmorse uses:

  • 0 → short pulse (dot)
  • 1 → long pulse (dash)
  • . → silence

This format mirrors the structure of real Morse transmissions, making it suitable for practical encoding, decoding, and transportation across different media.


Features

  • Binary Morse Encoding & Decoding
    Convert between readable text and a strict binary-timed Morse representation.

  • Realistic Morse Timing
    Silence (.) is preserved explicitly, enabling accurate reconstruction and physical signaling.

  • File Handling
    Save or load .txt and .bimorse files containing binary Morse sequences.

  • Minimal & Flexible
    Small footprint, no external dependencies, designed for embedding into larger systems.


Installation

Install from PyPI:

pip install Qmorse

Local installation:

git clone https://github.com/amiralihabibzadeh/Qmorse.git
cd Qmorse
pip install .

Usage Example

from Qmorse import bimorse as bim

text = bim.to_bimorse("Cogito, ergo sum")
bim.save_file(text, "rene.bimorse")

About

Qmorse provides the low-level binary form of Morse where timing is explicit and machine-interpretable.
This allows it to integrate naturally with optical signaling, audio pulses, embedded systems, or formats such as video-encoded Morse.

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

qmorse-2.0.2.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

qmorse-2.0.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file qmorse-2.0.2.tar.gz.

File metadata

  • Download URL: qmorse-2.0.2.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qmorse-2.0.2.tar.gz
Algorithm Hash digest
SHA256 9012c80034964fce25f2ec139096756db9642b58d043b6e9a913f2c72824c22b
MD5 cd138ff15f8a7056345451720514554c
BLAKE2b-256 ff30765f06da935aa37a44f69661fce24283abf9d374d2afe0f1fdb8dd205a93

See more details on using hashes here.

File details

Details for the file qmorse-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: qmorse-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for qmorse-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 889a58b6cbda0a82db9841d0e846bae0cfc8db94a66cf9d39a90221b46629726
MD5 4795663035e037c8a7aa30fa65c8bc29
BLAKE2b-256 8b61c7672d1ba1e3cebf903d8c2116d32a6bc93353696dd73fd43be4882d4f21

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