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:
python -m pytest tests/
License
This project is licensed under the MIT License.
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 morse_lab-0.2.0.tar.gz.
File metadata
- Download URL: morse_lab-0.2.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3b90da4ea494de11d509b2c936c4910d5b5034de4a17d2d95625b8df1550462
|
|
| MD5 |
1d9230987ccea5df1d8a689a422fa237
|
|
| BLAKE2b-256 |
4a8cd2c440529b2766c7e469789bd12b0c9459a0697d81e82feb3cdcd28f8a46
|
Provenance
The following attestation bundles were made for morse_lab-0.2.0.tar.gz:
Publisher:
python-publish.yml on rushiharkal1/morse_lab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
morse_lab-0.2.0.tar.gz -
Subject digest:
d3b90da4ea494de11d509b2c936c4910d5b5034de4a17d2d95625b8df1550462 - Sigstore transparency entry: 181017843
- Sigstore integration time:
-
Permalink:
rushiharkal1/morse_lab@0cab18fce5130f47fb7ab7806f7e154d6e11b750 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/rushiharkal1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@0cab18fce5130f47fb7ab7806f7e154d6e11b750 -
Trigger Event:
release
-
Statement type:
File details
Details for the file morse_lab-0.2.0-py3-none-any.whl.
File metadata
- Download URL: morse_lab-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28e87c7df06e4cfb9fb32686a904fd1254f8af79e99457e10e4427dd858e9fe9
|
|
| MD5 |
dc3a89b4c317c88d4987217eb8c51ed2
|
|
| BLAKE2b-256 |
a47d19653baa80512bf2db93806a0e5ba7c6c98ce7765535471ef0f4e40d60f2
|
Provenance
The following attestation bundles were made for morse_lab-0.2.0-py3-none-any.whl:
Publisher:
python-publish.yml on rushiharkal1/morse_lab
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
morse_lab-0.2.0-py3-none-any.whl -
Subject digest:
28e87c7df06e4cfb9fb32686a904fd1254f8af79e99457e10e4427dd858e9fe9 - Sigstore transparency entry: 181017847
- Sigstore integration time:
-
Permalink:
rushiharkal1/morse_lab@0cab18fce5130f47fb7ab7806f7e154d6e11b750 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/rushiharkal1
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@0cab18fce5130f47fb7ab7806f7e154d6e11b750 -
Trigger Event:
release
-
Statement type: