Skip to main content

Morse encode/decode

Project description

Morse

GitHub code size in bytes macos linux windows

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


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)

Uploaded Source

Built Distribution

Morse_ruxia_TJY-0.0.1-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page