Skip to main content

A Python package for Morse code conversion, including Japanese support.

Project description

Morse Lab

A package for Morse code conversions.

Features

  • Convert text to Morse code.
  • Convert Morse code to text.
  • Supports Japanese Wabun Morse Code.

Installation

You can install the package using pip:

pip install git+https://github.com/rushiharkal1/morse_lab.git

or

pip install morse-lab

Usage

from morse_lab import text_to_morse_code, morse_code_to_text, japanese_to_english

# Convert text to Morse
print(text_to_morse_code("HELLO WORLD"))  # Output: ".... . .-.. .-.. ---  / .-- --- .-. .-.. -.. "

# Convert Morse to text
print(morse_code_to_text(".... . .-.. .-.. ---"))  # Output: "HELLO"

# Convert Japanese Katakana to English
print(japanese_to_english("コンニチハ"))  # Output: "KO N NI CHI HA"

Running Tests

You can run the tests using pytest:

First, clone the repository:

git clone https://github.com/rushiharkal1/morse_lab.git

Then, install pytest if you haven't already:

pip install pytest

Now, you can run the tests:

pytest tests/

License

This project is licensed under the MIT License.

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_lab-0.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

morse_lab-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file morse_lab-0.1.1.tar.gz.

File metadata

  • Download URL: morse_lab-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for morse_lab-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ccc6afbf214b068f6d069581323bc11428dbf942c6d1b6c5726481ab208cbb91
MD5 3000d704a46737ec0214c94bbb8bd620
BLAKE2b-256 d6d115981e42235871f7570e9fafac5752d21a2bede374f4c14be0fabba9513c

See more details on using hashes here.

Provenance

The following attestation bundles were made for morse_lab-0.1.1.tar.gz:

Publisher: python-publish.yml on rushiharkal1/morse_lab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file morse_lab-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: morse_lab-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for morse_lab-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e4fcd437340b3cb674efc1f7c729e25f0e96fb3f8536c966cf5263a2bf24a55c
MD5 c6f3ac415c6c9d061d7a82d165ca7d1b
BLAKE2b-256 3c1e77dfd3feb875d23bc13e8c474d6a8b37dfd505a413278f19178d65833dc4

See more details on using hashes here.

Provenance

The following attestation bundles were made for morse_lab-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on rushiharkal1/morse_lab

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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