No project description provided
Project description
morsely 🚀🔡↔️📡
morsely is a simple yet powerful Python library that allows easy
conversion between Morse code and alphanumeric text.
It also supports decoding .wav audio files containing Morse signals! 🎵↔️🔤
📦 Installation
Install Morsely directly from PyPI:
pip install morsely
🚀 Features
- 🔡 Convert text to Morse
- 📡 Convert Morse to text
- 🎵 Decode WAV files containing Morse signals
- ⚡ Easy to use, configurable, and reliable
🚀 Usage
🔡 Convert text to Morse
from morsely import MorseEncoder
message = "Hello, World!"
encoder = MorseEncoder()
morse_code = encoder.convert_text_to_morse_text(
original_string=message
)
print(morse_code) # .... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.--
📡 Convert Morse to text
from morsely import MorseDecoder
morse = ".... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.--"
decoder = MorseDecoder()
text = decoder.decode_morse_text(text=morse)
print(text) # HELLO, WORLD!
🎵 Encode a text to a WAV audio file
from morsely import MorseEncoder
message = "Hello, World!"
encoder = MorseEncoder()
encoding_results = encoder.convert_text_to_morse_complete(
original_string=message,
folder_path='',
file_prefix='morse_audio'
)
print(encoding_results.morse_encoded_text) #.... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.--
print(encoding_results.path_to_file) #<folder_path>/<file_prefix>_<unique_id>.wav
🎵 Decode a WAV audio file to text
from morsely import MorseDecoder
decoder = MorseDecoder()
decoding_results = decoder.decode_wav_file("morse_signal.wav")
print(decoding_results.morse_decoded_text) #.... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.--
print(decoding_results.latin_decoded_text) #HELLO, WORLD!
🛠️ Requirements
- Python 3.11+
numpy,scipyfor audio processing
📜 License
morsely is released under the Apache License.
🔥 Try morsely today and make Morse code conversion effortless! 🔥
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file morsely-0.0.3.tar.gz.
File metadata
- Download URL: morsely-0.0.3.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
376de2afd0467da4abb4e11caec27cfd21086065fbdd283bcd5a9e2f9723ad71
|
|
| MD5 |
bb6ab0185479ed5df60819cbbd7717eb
|
|
| BLAKE2b-256 |
d1b62ddda664420bfa3eba556babb5bfbc1c0e5661f8cd42d1e767e73e34ee61
|
File details
Details for the file morsely-0.0.3-py3-none-any.whl.
File metadata
- Download URL: morsely-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ff09385f067e0c6413a6ed655f2e9d54704db182e4d9ffe6af3a2396efe2c8b
|
|
| MD5 |
feaa40c8d6ec56730b64e628b3a4c189
|
|
| BLAKE2b-256 |
506d54180e12fe5a6642be5acc92ead9986cc96fd14f3ec570ba10eb13472050
|