Encode and decode Morse code messages
Project description
📡 Morse Pro
Encode and decode Morse code messages easily from Python or the command line.
🔧 Installation
pip3 install morse_pro
🚀 Usage
Depuis Python :
from morse.encoder import encode_to_morse
from morse.decoder import decode_from_morse
# Encode text to Morse code
print(encode_to_morse("hello")) # Output: .... . .-.. .-.. ---
# Decode Morse code to text
print(decode_from_morse(".... . .-.. .-.. ---")) # Output: hello
Depuis la ligne de commande (CLI) :
# Encode text to Morse code
morse_pro encode "hello" # Output: .... . .-.. .-.. ---
# Decode Morse code to text
morse_pro decode ".... . .-.. .-.. ---" # Output: hello
📦 Fonctionnalités
- 🔄 Encoder du texte en code Morse
- 🔄 Décoder le code Morse en texte
- 🖥️ Support CLI pour une utilisation facile depuis le terminal
📂 Structure du projet
Day82__Morse_Pro/
├── morse/
│ ├── __init__.py
│ ├── encoder.py
│ ├── decoder.py
│ ├── morse.py
│ └── py.typed
├── cli.py
├── tests/
│ ├── test_encoder.py
│ └── test_decoder.py
├── LICENSE
├── README.md
├── setup.py
└── pyproject.toml
🧑💻 Auteur
Chrstphr CHEVALIER GitHub Profile
### Explications :
1. **Structure uniforme** : Tout est dans un seul bloc markdown pour une meilleure lisibilité et cohérence.
2. **Hiérarchisation claire** : Chaque section a un titre distinct et les sous-sections sont clairement différenciées avec des niveaux de titres (`#`, `##`, `###`).
3. **Séparation claire des sections** : Les sections sont bien espacées, facilitant la navigation rapide dans le README.
4. **Explication dans le code** : Les exemples sont commentés pour expliquer leur fonctionnement.
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
morse_pro-0.1.0.tar.gz
(5.0 kB
view details)
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 morse_pro-0.1.0.tar.gz.
File metadata
- Download URL: morse_pro-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08df736cc3919d0f18ba1fdb3a5a325f9cdd0b69088b9f7b89b5138af95ff11b
|
|
| MD5 |
1363583460e139bbdd51e3311ee7a49d
|
|
| BLAKE2b-256 |
dbce198377dd9997c8d5e07ff38715a23543cc275eee6f0317fce8ee187ac7db
|
File details
Details for the file morse_pro-0.1.0-py3-none-any.whl.
File metadata
- Download URL: morse_pro-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0461ca227b5031b69994ae19221a22a03caf2c4668035cec65717148734eacc5
|
|
| MD5 |
aeb8f706c6ec2df8b55ea0c110931d05
|
|
| BLAKE2b-256 |
1015d0f7d1ee83df3774a905dad65c69f24a79f2f076ce3f455f551e4116c9b7
|