Metadata-Version: 2.1
Name: Morse-ruxia-TJY
Version: 0.0.1
Summary: Morse encode/decode
Home-page: https://github.com/ruxia-TJY/Morse
Author: ruxia-TJY
Author-email: ruxia.tjy@qq.com
License: BSD 3-Clause
Download-URL: https://github.com/ruxia-TJY/Morse
Project-URL: Bug Tracker, https://github.com/ruxia-TJY/Morse/issues
Keywords: Morse encode decode
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: Microsoft :: Windows
Classifier: License :: OSI Approved :: BSD License
Requires-Python: >=3
Description-Content-Type: text/markdown

# Morse
[![](https://img.shields.io/badge/language-Python-blue)](https://www.python.org/)  ![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/ruxia-TJY/Morse) ![macos](https://img.shields.io/badge/-macOS-black?logo=macos) ![linux](https://img.shields.io/badge/-Linux-yellow?logo=linux) ![windows](https://img.shields.io/badge/-Windows-blue?logo=windows)




A simple package for morse decode and encode.

```python
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'))
# >>/>>>/<></<<</<
```

