Funny Morse
Converts text to morse code signals
Examples
from funny_morse import *
print(code("Morse code")) # -- --- .-. ... . -.-. --- -.. .
Audio
audio("play") # To play morse code audio signal for message
audio_file("code.wav", "wave file", sps=44100, freq=800) # To save
Window
window("show", wpm=5, fs=None)
Keyboard Leds
caps_lock("morse")
num_lock("on")
scroll_lock("indicator")
Pyboard
led("blink", device="/dev/ttyUSB0")
servo("tap", device="192.168.1.1")
Parallel
Parallel("try parallel",
modes=[
play, # can use callables
"window" # can use modes
],
led={
"pin" : 2, # kwargs to led mode
}
).join()
CLI Examples
usage: funny_morse [-h] [--wpm WPM] [--fs FS] [-i] [-p] [-a FILENAME] [-w] [-c] [-n] [-s] [-l] [-m] [-P [MODES [MODES ...]]] [message [message ...]]
Convert text to morse code signals ;)
positional arguments:
message Text to translate or blank to take from stdin
optional arguments:
-h, --help show this help message and exit
--wpm WPM Words per minute
--fs FS Farnsworth speed
-i For interactive convertion
-p, --play To play audio signal
-a FILENAME, --audio FILENAME To save audio signal
-w, --window To show on a window
-c, --capsL To show on caps lock indicator
-n, --numL To show on num lock indicator
-s, --scrollL To show on scroll lock indicator
-l, --led To show on LED (required Microcontroller with MicroPython)
-m, --servo To tap using servo motor (required Microcontroller with MicroPython)
-P [MODES [MODES ...]], --parallel [MODES [MODES ...]] For parallel modes
python -m funny_morse --wpm 15 --fs 15 -p hello
Dot width = 80.0 ms Dash width = 240 ms Character space = 240 ms Word space = 560 ms Audio : samples per second = 8000 Tone period = 1.3 ms .... . .-.. .-.. ---
Parallel
python -m funny_morse -P p w -- now parallelly play audio and show window
Installation
Installation is available via pip:
pip install funny-morse # From PYPI
## OR ##
pip install git+https://github.com/nkpro2000sr/funny-morse.git # From github repo
Links
Metadata
Release files for funny-morse 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| funny-morse-0.0.1.tar.gz | 9.9 kB | Without provenance | Details for funny-morse-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| funny_morse-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for funny_morse-0.0.1-py3-none-any.whl |
Total release size: 21.0 kB
Release files / funny-morse-0.0.1.tar.gz
| Download URL | funny-morse-0.0.1.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ec942733e1284d6fae641e83857b9455b1fa92b394e4e863326136d37aac3d1
|
|
BLAKE2b-256 checksum How to use checksums |
731d998e835b43c936cbb872e4c4159d0c55eca7f238cd05ed3eabfe7269126c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.3 Linux/5.4.44-1-MANJARO
|
Release files / funny_morse-0.0.1-py3-none-any.whl
| Download URL | funny_morse-0.0.1-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bdcbd7d1660323640e067643179cb8f6f07d7e97a1b618251970de083e12628
|
|
BLAKE2b-256 checksum How to use checksums |
f5c20e6195f29dc0e5db37373ff768b96e8587453ca9b449d1374158d65bfac4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.5 CPython/3.8.3 Linux/5.4.44-1-MANJARO
|
Security for funny-morse 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.