morsecode-package


Namemorsecode-package JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/rahulaauji-30/morse.git
SummaryPython package for converting text to Morse code and vice versa
upload_time2024-06-23 16:39:17
maintainerNone
docs_urlNone
authorRahul Parihar
requires_python>=3.6
licenseMIT
keywords morse-code text-processing
VCS
bugtrack_url
requirements setuptools
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Morse Package

Python package for converting text to Morse code and vice versa.

## Installation

You can install the `morse-package` from PyPI using pip:

```bash
pip install morse-package
```
# Usage
## Converting Text to Morse Code
```bash
from morse.Morse import Morse

m = Morse()

text = "Hello, World!"
morse_code = m.to_morse(text)
print(f"Text '{text}' in Morse code: {morse_code}")
```
## Converting Morse code to Text
```bash
from morse import Morse

m = Morse()

morse_code = ".... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.--"
text = m.to_string(morse_code)
print(f"Morse code '{morse_code}' decoded to text: {text}")
```
## Getting Morse code dictionary
```bash
from morse import Morse

m = Morse()

codes_dict = m.get_morse_codes()
print("Morse code dictionary:")
for key, value in codes_dict.items():
    print(f"{key}: {value}")
```
# License
This project is licensed under the MIT <a href="LICENSE">License</a>. See the LICENSE file for details.
# Contributing
Contributions are welcome! Feel free to open issues or pull requests on the <a href="https://github.com/rahulaauji-30/morse.git">GitHub repository</a>.
# Support
For support or questions, please contact <a href="mailto:rahulaauji71@gmail.com">Rahul Parihar</a>

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rahulaauji-30/morse.git",
    "name": "morsecode-package",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "morse-code text-processing",
    "author": "Rahul Parihar",
    "author_email": "rahulaauji71@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/26/19/a30b798c6a3a993d9a0c3fb5489652cea83c035cd162367f2a57bc5d342d/morsecode_package-1.0.0.tar.gz",
    "platform": null,
    "description": "# Morse Package\n\nPython package for converting text to Morse code and vice versa.\n\n## Installation\n\nYou can install the `morse-package` from PyPI using pip:\n\n```bash\npip install morse-package\n```\n# Usage\n## Converting Text to Morse Code\n```bash\nfrom morse.Morse import Morse\n\nm = Morse()\n\ntext = \"Hello, World!\"\nmorse_code = m.to_morse(text)\nprint(f\"Text '{text}' in Morse code: {morse_code}\")\n```\n## Converting Morse code to Text\n```bash\nfrom morse import Morse\n\nm = Morse()\n\nmorse_code = \".... . .-.. .-.. --- --..-- / .-- --- .-. .-.. -.. -.-.--\"\ntext = m.to_string(morse_code)\nprint(f\"Morse code '{morse_code}' decoded to text: {text}\")\n```\n## Getting Morse code dictionary\n```bash\nfrom morse import Morse\n\nm = Morse()\n\ncodes_dict = m.get_morse_codes()\nprint(\"Morse code dictionary:\")\nfor key, value in codes_dict.items():\n    print(f\"{key}: {value}\")\n```\n# License\nThis project is licensed under the MIT <a href=\"LICENSE\">License</a>. See the LICENSE file for details.\n# Contributing\nContributions are welcome! Feel free to open issues or pull requests on the <a href=\"https://github.com/rahulaauji-30/morse.git\">GitHub repository</a>.\n# Support\nFor support or questions, please contact <a href=\"mailto:rahulaauji71@gmail.com\">Rahul Parihar</a>\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python package for converting text to Morse code and vice versa",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/rahulaauji-30/morse.git"
    },
    "split_keywords": [
        "morse-code",
        "text-processing"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4cecb7f72361e1cf6ad355291da689c5c79dfa3deb3765b6c62948bd3c8dad47",
                "md5": "98b76b802d8ad82be5454f87a76592ee",
                "sha256": "930a6d6003462eb7838b72630c4943f3b2b890794ba1c7e27d984bc0b860899e"
            },
            "downloads": -1,
            "filename": "morsecode_package-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "98b76b802d8ad82be5454f87a76592ee",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3495,
            "upload_time": "2024-06-23T16:39:15",
            "upload_time_iso_8601": "2024-06-23T16:39:15.592611Z",
            "url": "https://files.pythonhosted.org/packages/4c/ec/b7f72361e1cf6ad355291da689c5c79dfa3deb3765b6c62948bd3c8dad47/morsecode_package-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2619a30b798c6a3a993d9a0c3fb5489652cea83c035cd162367f2a57bc5d342d",
                "md5": "d9f66aeb39f31f95ffc2b166eb688a31",
                "sha256": "e6653a4f3464a15032fff567ec5a43a7f68e6770d797894a00acde190420e3b5"
            },
            "downloads": -1,
            "filename": "morsecode_package-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d9f66aeb39f31f95ffc2b166eb688a31",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3083,
            "upload_time": "2024-06-23T16:39:17",
            "upload_time_iso_8601": "2024-06-23T16:39:17.841082Z",
            "url": "https://files.pythonhosted.org/packages/26/19/a30b798c6a3a993d9a0c3fb5489652cea83c035cd162367f2a57bc5d342d/morsecode_package-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-23 16:39:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rahulaauji-30",
    "github_project": "morse",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "setuptools",
            "specs": [
                [
                    "~=",
                    "70.1.0"
                ]
            ]
        }
    ],
    "lcname": "morsecode-package"
}
        
Elapsed time: 0.61108s