Morse encode/decode
Project description
Morse
A simple package for morse decode and encode.
from Morse import morse
M = morse.Morse()
print(M.encode('morse'))
# ————/——————/.——./.../.
print(M.decode('————/——————/.——./.../.'))
# MORSE
M.isLower = True
print(M.decode('————/——————/.——./.../.'))
# morse
M.Separator = '?'
print(M.encode('morse'))
# ————?——————?.——.?...?.
M.dot = '<'
M.dash = '>'
print(M.encode('morse'))
# >>/>>>/<></<<</<
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
Morse-ruxia-TJY-0.0.1.tar.gz
(2.4 kB
view details)
Built Distribution
File details
Details for the file Morse-ruxia-TJY-0.0.1.tar.gz
.
File metadata
- Download URL: Morse-ruxia-TJY-0.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfc88f8491627307683aa11a0a21ac0ed941033b6b884763fa8e19135f6d05e4 |
|
MD5 | 2b25f03ff9d40f95554099339f916b2d |
|
BLAKE2b-256 | dc1ced1705683aecc04749904391a788a55ce6f59d83da581d872d22fd84d4b5 |
Provenance
File details
Details for the file Morse_ruxia_TJY-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: Morse_ruxia_TJY-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef039b4a96e46e0669bc010b3f6af8d7a336f9c9e69706a0674ba96082e330cf |
|
MD5 | 9c36665d2e539813bdff94f1131bf743 |
|
BLAKE2b-256 | dafcbe54aadf8c692d2816580fe32be873bd8d3a380b10dab099437e71446845 |