# BinaryConvert CLI Library
This library provides a Command-Line Interface (CLI) for converting text between various encoding formats, including binary, hexadecimal, decimal, Base64, Morse code, leetspeak, and more.
## Available Commands
### `to_binary <text> <bit>`
Convert text to its binary representation.
Example:
```bash
$ python cli.py to_binary "Hello World" 8
```
### `to_text <binary>`
Convert binary to text.
Example:
```bash
$ python cli.py to_text "01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100"
```
### `to_hex <text>`
Convert text to hexadecimal representation.
Example:
```bash
$ python cli.py to_hex "Hello World"
```
### `from_hex <hex_string>`
Convert hexadecimal string to text.
Example:
```bash
$ python cli.py from_hex "48 65 6c 6c 6f 20 57 6f 72 6c 64"
```
### `to_decimal <text>`
Convert text to decimal representation.
Example:
```bash
$ python cli.py to_decimal "Hello World"
```
### `from_decimal <decimal_string>`
Convert decimal string to text.
Example:
```bash
$ python cli.py from_decimal "72 101 108 108 111 32 87 111 114 108 100"
```
### `reverse_text <text>`
Reverse the input text.
Example:
```bash
$ python cli.py reverse_text "Hello World"
```
### `to_base64 <text>`
Encode text to Base64.
Example:
```bash
$ python cli.py to_base64 "Hello World"
```
### `from_base64 <base64_string>`
Decode Base64 string to text.
Example:
```bash
$ python cli.py from_base64 "SGVsbG8gV29ybGQ="
```
### `is_palindrome <text>`
Check if the text is a palindrome.
Example:
```bash
$ python cli.py is_palindrome "A man a plan a canal Panama"
```
### `count_characters <text>`
Count the frequency of each character in the text.
Example:
```bash
$ python cli.py count_characters "Hello World"
```
### `to_leetspeak <text>`
Convert text to leetspeak.
Example:
```bash
$ python cli.py to_leetspeak "Hello World"
```
### `to_morsecode <text>`
Convert text to Morse code.
Example:
```bash
$ python cli.py to_morsecode "Hello World"
```
### `from_morsecode <morse_code>`
Convert Morse code to text.
Example:
```bash
$ python cli.py from_morsecode ".... . .-.. .-.. --- / .-- --- .-. .-.. -.."
```
## Requirements
- Python 3.x
- `click` library (install using `pip install click`)
## Installation
1. Clone or download the repository.
2. Install the required dependencies:
```bash
pip install -r requirements.txt
```
3. Run the CLI using:
```bash
python cli.py <command> <args>
```
## License
This project is licensed under the MIT License - see the LICENSE file for details.
Raw data
{
"_id": null,
"home_page": "https://github.com/wfxey/binaryconvert",
"name": "binaryconvert",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "binary, binaries, text-to-binary, hexadecimal, base64, morse-code, utilities, converter",
"author": "wfxey",
"author_email": "velis.help@web.de",
"download_url": "https://files.pythonhosted.org/packages/4b/57/e9876744960df12c6e846d5aecc32087395bc970eec64b1591a0f87a9241/binaryconvert-3.0.0.tar.gz",
"platform": null,
"description": "\n# BinaryConvert CLI Library\n\nThis library provides a Command-Line Interface (CLI) for converting text between various encoding formats, including binary, hexadecimal, decimal, Base64, Morse code, leetspeak, and more.\n\n## Available Commands\n\n### `to_binary <text> <bit>`\nConvert text to its binary representation.\n\nExample:\n```bash\n$ python cli.py to_binary \"Hello World\" 8\n```\n\n### `to_text <binary>`\nConvert binary to text.\n\nExample:\n```bash\n$ python cli.py to_text \"01001000 01100101 01101100 01101100 01101111 00100000 01010111 01101111 01110010 01101100 01100100\"\n```\n\n### `to_hex <text>`\nConvert text to hexadecimal representation.\n\nExample:\n```bash\n$ python cli.py to_hex \"Hello World\"\n```\n\n### `from_hex <hex_string>`\nConvert hexadecimal string to text.\n\nExample:\n```bash\n$ python cli.py from_hex \"48 65 6c 6c 6f 20 57 6f 72 6c 64\"\n```\n\n### `to_decimal <text>`\nConvert text to decimal representation.\n\nExample:\n```bash\n$ python cli.py to_decimal \"Hello World\"\n```\n\n### `from_decimal <decimal_string>`\nConvert decimal string to text.\n\nExample:\n```bash\n$ python cli.py from_decimal \"72 101 108 108 111 32 87 111 114 108 100\"\n```\n\n### `reverse_text <text>`\nReverse the input text.\n\nExample:\n```bash\n$ python cli.py reverse_text \"Hello World\"\n```\n\n### `to_base64 <text>`\nEncode text to Base64.\n\nExample:\n```bash\n$ python cli.py to_base64 \"Hello World\"\n```\n\n### `from_base64 <base64_string>`\nDecode Base64 string to text.\n\nExample:\n```bash\n$ python cli.py from_base64 \"SGVsbG8gV29ybGQ=\"\n```\n\n### `is_palindrome <text>`\nCheck if the text is a palindrome.\n\nExample:\n```bash\n$ python cli.py is_palindrome \"A man a plan a canal Panama\"\n```\n\n### `count_characters <text>`\nCount the frequency of each character in the text.\n\nExample:\n```bash\n$ python cli.py count_characters \"Hello World\"\n```\n\n### `to_leetspeak <text>`\nConvert text to leetspeak.\n\nExample:\n```bash\n$ python cli.py to_leetspeak \"Hello World\"\n```\n\n### `to_morsecode <text>`\nConvert text to Morse code.\n\nExample:\n```bash\n$ python cli.py to_morsecode \"Hello World\"\n```\n\n### `from_morsecode <morse_code>`\nConvert Morse code to text.\n\nExample:\n```bash\n$ python cli.py from_morsecode \".... . .-.. .-.. --- / .-- --- .-. .-.. -..\"\n```\n\n## Requirements\n\n- Python 3.x\n- `click` library (install using `pip install click`)\n\n## Installation\n\n1. Clone or download the repository.\n2. Install the required dependencies:\n ```bash\n pip install -r requirements.txt\n ```\n3. Run the CLI using:\n ```bash\n python cli.py <command> <args>\n ```\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A Python tool that converts text to binary and other formats like hexadecimal, Base64, Morse code, and more!",
"version": "3.0.0",
"project_urls": {
"Bug Tracker": "https://github.com/wfxey/binaryconvert/issues",
"Documentation": "https://github.com/wfxey/binaryconvert#readme",
"Download": "https://github.com/wfxey/binaryconvert/archive/refs/tags/v3.0.0.tar.gz",
"Homepage": "https://github.com/wfxey/binaryconvert",
"Source": "https://github.com/wfxey/binaryconvert"
},
"split_keywords": [
"binary",
" binaries",
" text-to-binary",
" hexadecimal",
" base64",
" morse-code",
" utilities",
" converter"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "99d878f4fcfb7e5f9e4802754751320ba8d77c9df29c059a69a1955c247dde3d",
"md5": "2901fa9edc9eb8f13dc3aea51e150131",
"sha256": "06d4ed0ec5804d5aac675631348b3a489644f7564eb84563128d8f7bdda5879e"
},
"downloads": -1,
"filename": "binaryconvert-3.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2901fa9edc9eb8f13dc3aea51e150131",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 7409,
"upload_time": "2024-12-27T12:55:15",
"upload_time_iso_8601": "2024-12-27T12:55:15.160951Z",
"url": "https://files.pythonhosted.org/packages/99/d8/78f4fcfb7e5f9e4802754751320ba8d77c9df29c059a69a1955c247dde3d/binaryconvert-3.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4b57e9876744960df12c6e846d5aecc32087395bc970eec64b1591a0f87a9241",
"md5": "eef5912121c3a1243f515fe9cb7741c7",
"sha256": "c1402001fead2051dd4580f35366b72355f5a2c479de47e718cde26f583f9ada"
},
"downloads": -1,
"filename": "binaryconvert-3.0.0.tar.gz",
"has_sig": false,
"md5_digest": "eef5912121c3a1243f515fe9cb7741c7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 7640,
"upload_time": "2024-12-27T12:55:17",
"upload_time_iso_8601": "2024-12-27T12:55:17.214913Z",
"url": "https://files.pythonhosted.org/packages/4b/57/e9876744960df12c6e846d5aecc32087395bc970eec64b1591a0f87a9241/binaryconvert-3.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-27 12:55:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "wfxey",
"github_project": "binaryconvert",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "click",
"specs": []
}
],
"lcname": "binaryconvert"
}