morse-transcript


Namemorse-transcript JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/gugupy/morsecodetranslator
SummaryConvert text to Morse Code and vise-versa.
upload_time2023-05-05 15:18:27
maintainer
docs_urlNone
authorGughanathan M
requires_python>=3.6
licenseMIT
keywords morsecode morse
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Morse Code Translator

[![dot-dash](dotdash.png)](https://en.wikipedia.org/wiki/Morse_code)

[![codecov](https://codecov.io/gh/gugupy/morsecodetranslator/branch/master/graph/badge.svg?token=TG5AR36QNI)](https://codecov.io/gh/gugupy/morsecodetranslator)

Its converts plain text to morse code and vice versa and follows below rules for the conversion as per the morse-code algorithm,  
1. Single space for same char repeats  
2. Three spaces for different char  
3. Seven spaces to differentiate the word  

## Installation

### Method 1:
To install the MorseCodeTranslator just run the command `pip install -U morse-transcript`

### Method 2:
1. Clone the repository `git clone https://github.com/gugupy/morsecodetranslator.git`
2. Run the command `pip install -e .`


## Sample code
```python
from morsecodetranslator.morse import MorseCodeTranslator

mct = MorseCodeTranslator()
print(mct.encrypt('MORSE CODE'))
print(mct.decrypt('--   ---   .-.   ...   .       -.-.   ---   -..   .'))
```
### output
``` textmate
--   ---   .-.   -.-.   .       -.-.   ---   -..   .  
MORSE CODE
```

MIT License

Copyright (c) 2022 Gughanathan M

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/gugupy/morsecodetranslator",
    "name": "morse-transcript",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "MorseCode,Morse",
    "author": "Gughanathan M",
    "author_email": "gugu.ap900@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/ab/76/702365f9490f52085e76d97d8c72d3c7707e4bc7d56b2131b801bd7225d2/morse-transcript-0.0.3.tar.gz",
    "platform": null,
    "description": "# Morse Code Translator\n\n[![dot-dash](dotdash.png)](https://en.wikipedia.org/wiki/Morse_code)\n\n[![codecov](https://codecov.io/gh/gugupy/morsecodetranslator/branch/master/graph/badge.svg?token=TG5AR36QNI)](https://codecov.io/gh/gugupy/morsecodetranslator)\n\nIts converts plain text to morse code and vice versa and follows below rules for the conversion as per the morse-code algorithm,  \n1. Single space for same char repeats  \n2. Three spaces for different char  \n3. Seven spaces to differentiate the word  \n\n## Installation\n\n### Method 1:\nTo install the MorseCodeTranslator just run the command `pip install -U morse-transcript`\n\n### Method 2:\n1. Clone the repository `git clone https://github.com/gugupy/morsecodetranslator.git`\n2. Run the command `pip install -e .`\n\n\n## Sample code\n```python\nfrom morsecodetranslator.morse import MorseCodeTranslator\n\nmct = MorseCodeTranslator()\nprint(mct.encrypt('MORSE CODE'))\nprint(mct.decrypt('--   ---   .-.   ...   .       -.-.   ---   -..   .'))\n```\n### output\n``` textmate\n--   ---   .-.   -.-.   .       -.-.   ---   -..   .  \nMORSE CODE\n```\n\nMIT License\n\nCopyright (c) 2022 Gughanathan M\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Convert text to Morse Code and vise-versa.",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/gugupy/morsecodetranslator"
    },
    "split_keywords": [
        "morsecode",
        "morse"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "66e6f289f9a8a0008b057a472cd9082e0f5fcb394877f73ad2f4c8e243b01888",
                "md5": "a40f28c05b6cd6056a416ef52eef8e3f",
                "sha256": "4126e1ed4fc3ba0167d995cf76745117ee79a73374032857a68ee568098d8978"
            },
            "downloads": -1,
            "filename": "morse_transcript-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a40f28c05b6cd6056a416ef52eef8e3f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 5686,
            "upload_time": "2023-05-05T15:18:25",
            "upload_time_iso_8601": "2023-05-05T15:18:25.266822Z",
            "url": "https://files.pythonhosted.org/packages/66/e6/f289f9a8a0008b057a472cd9082e0f5fcb394877f73ad2f4c8e243b01888/morse_transcript-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ab76702365f9490f52085e76d97d8c72d3c7707e4bc7d56b2131b801bd7225d2",
                "md5": "a4931e0f281d11b0041afa7330f1c0a2",
                "sha256": "041c030e253b6dbc613b932c4e872cc520a56b09eb0b02593114ec4e87097d8b"
            },
            "downloads": -1,
            "filename": "morse-transcript-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "a4931e0f281d11b0041afa7330f1c0a2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 4465,
            "upload_time": "2023-05-05T15:18:27",
            "upload_time_iso_8601": "2023-05-05T15:18:27.357264Z",
            "url": "https://files.pythonhosted.org/packages/ab/76/702365f9490f52085e76d97d8c72d3c7707e4bc7d56b2131b801bd7225d2/morse-transcript-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-05 15:18:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "gugupy",
    "github_project": "morsecodetranslator",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "morse-transcript"
}
        
Elapsed time: 0.06157s