https://github.com/gill-singh-a/morse-code
Encodes or Decodes Morse code
https://github.com/gill-singh-a/morse-code
decoding encoding morse morse-code python python-3
Last synced: 7 months ago
JSON representation
Encodes or Decodes Morse code
- Host: GitHub
- URL: https://github.com/gill-singh-a/morse-code
- Owner: Gill-Singh-A
- Created: 2023-04-10T19:42:34.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-04-11T03:04:59.000Z (about 3 years ago)
- Last Synced: 2025-01-04T15:41:54.382Z (over 1 year ago)
- Topics: decoding, encoding, morse, morse-code, python, python-3
- Language: Python
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Morse Code
Encodes or Decodes Morse code
## Requirements
Language Used = Python3
Modules/Packages used:
* datetime
* optparse
* colorama
* time
## Input
It either takes input from a file or through its runtime.
### File Input
To give it a file to encode or decode, we can use the arguments "--encode" and "--decode" or '-e' or '-d' respectively.
For example:
* To encode
```bash
python morse_code.py --encode file_from_which_data_is_to_be_encoded
```
* To decode
```bash
python morse_code.py --decode file_from_which_data_is_to_be_decoded
```
### Runtime Input
If no file is specified, then the user will be asked to select an option to Encode or Decode a string.
Then after specifying we have to provide the required string to be encoded or decoded.
Finally the result would be displayed on the Command Line Interface.