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 hashes)
Built Distribution
Close
Hashes for Morse_ruxia_TJY-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef039b4a96e46e0669bc010b3f6af8d7a336f9c9e69706a0674ba96082e330cf |
|
MD5 | 9c36665d2e539813bdff94f1131bf743 |
|
BLAKE2b-256 | dafcbe54aadf8c692d2816580fe32be873bd8d3a380b10dab099437e71446845 |