Skip to main content

Python Morse Code Utils

A python morse code encoder / decoder with window morsecode player

This package contains:

  1. translator
  2. player

Translator

from morseutils.translator import MorseCodeTranslator as mct

mct.encode('hello') # return '.... . .-.. .-.. ---'
mct.decode('.- .-.') # return 'AR'

Player

from morseutils.player import MorseCodePlayer

mcp = MorseCodePlayer() 

mcp.play('hello') # play hello morse code
mcp.play_morse('.- .-.') # play .- .-.

Customization

from morseutils.player import MorseCodePlayer

mcp = MorseCodePlayer() 

mcp.BEEP_FREQ = 600
mcp.BEEP_DURATION_MS = 100
mcp.BEEP_LONG_DURATION_MS = 300
mcp.CHARACTER_BREAK_MS =  50
mcp.SPACE_BREAK_MS = 200

Metadata

Release files for morseutils 0.0.4.100

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for morseutils 0.0.4.100
File Size Uploaded
morseutils-0.0.4.100.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for morseutils 0.0.4.100
File Interpreter ABI Platform
morseutils-0.0.4.100-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / morseutils-0.0.4.100.tar.gz

Download URL morseutils-0.0.4.100.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4e638c09604997206557bd169294b682e25e0c71e1331a19be4d9dd04306e725
BLAKE2b-256 checksum
How to use checksums
05b29511b9f4e1377b4243e020a2ffdc76b9f5b772ecc69c815036ed3ba1cab2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / morseutils-0.0.4.100-py3-none-any.whl

Download URL morseutils-0.0.4.100-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72455ab076d2f7e0187be565f72cd8dc2be4e3420ab09111050682f3f4d8bc27
BLAKE2b-256 checksum
How to use checksums
6457b060f5d951c766ec3e69dc65ffd0b67d5b2d98c41b2c810f7e760fbf8a67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.0.4.100 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page