textPlay


NametextPlay JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://github.com/rakeshkanna-rk/textPlay
SummaryA package for many unique text tools, to make your text beautiful.
upload_time2024-08-14 12:43:55
maintainerNone
docs_urlNone
authorRakesh Kanna S
requires_python>=3.6
licenseApache License 2.0
keywords text tools cli terminal google search web search morse code decode encode box colors options password generator progress bar encryption animation files backend source code
VCS
bugtrack_url
requirements beautifulsoup4 requests keyboard
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center"><img src="https://raw.githubusercontent.com/rakeshkanna-rk/textPlay/main/textplay_logo.png" alt="TextPlay Logo" width="200"></p>

<br>

<H1 align="center">TextPlay</H1>

**Welcome to the TextPlay repository! 👋**  
This versatile Python module provides a range of text-related functions and tools to enhance your text analysis, summarization, translation, Morse code encoding/decoding, Google search, and more.

### To use my module

```bash
pip install textPlay
```

```python
import textPlay
```

## Features

- **Google Search 🔍:** This tool will search Google for a query and display the results. you can specify the number of results to display.

```python
from textPlay import google_search

search_query = "Python programming"
top_results = google_search(search_query, num_results=3)
print(top_results)
```

---

- **Morse Code Encoder/Decoder 📣:** This tool will encode and decode a message using the morse code. It will automatically detect if the input is morse code or text.

```python
from textPlay import morse

morse = Morse()

encoded_text = morse.coder("Hello, World!")
print("Encoded Text:", encoded_text)

decoded_text = morse.decoder(encoded_text)
print("Decoded Text:", decoded_text)
```

---

- **Box 📦:** This tool will print a box with a message and a title with specified length.

```python
from textPlay import box

title = "Title"
content = ["word 1", "word 2"]
width_percentage = 99  # Adjust as needed
box_with_title = create_box(title, content, width_percentage)
print(box_with_title)
```

---

- **Colors**: This tool will print text in different colors and styles.

```python
from textPlay import colors

print(f"{RED}This is red text{RESET}")
print(f"{BG_GREEN}This has a green background{RESET}")
print(f"{BOLD}This is bold text{RESET}")
```

---

- **Options**: This tool will display a menu with options and handle user input for navigation and selection. Main function to display a menu with options and handle user input for navigation and selection.

```python
from textPlay import options

options(option=[('Option A', lambda: print("Option A selected")),
                ('Option B', lambda: print("Option B selected")),
                ('Option C', lambda: print("Option C selected")),
                ('Option D', lambda: print("Option D selected"))],
                index=">",
                head="Select an option:",
                delay=0.2,
                exit_msg="Exiting...",
                exit_key="esc")
```

---

- **Password Generator**: This tool will generate a random password with the specified length.

```python
from textPlay import password_generator

password = password_generator(length=12)
print(password)
```

---

- **Encryption Animation**: Simulate the encryption process by displaying random special characters before revealing the actual word.

```python
from textPlay import encrypt_animation

encrypted("Hello", sleep_time=0.1, end_color=BLUE, special_characters="!@#$%^&*()_+-=[]{}|;:,.<>?/")
```

---

- **Progress Bar Loader**: This tool will display a progress bar with a loading animation. Simulate and display a progress bar incrementing from 0% to 100%.

```python
from textPlay import progress_bar_loader

# Display a progress bar with custom parameters
progress_bar_loader(length=30, symbol='*', empty_symbol='-', color_on_completion=GREEN)
```

- **Files**: This tool will list, delete, rename, and move files and folders.

```python
from textPlay import files

files = files.list_dir(USER)
print(files)
```

---

- **Backend**: Executes the given command in the background using the subprocess module.

```python
from textPlay import backend

list_dir = backend.backend_exec("ls")
print(list_dir)
```

---
---

- **CLI**: A command line interface (CLI) for textPlay.

**Help**

```bash
textPlay --help
```

or

```bash
textPlay -h
```

To display all the CLI options

---

**Version**

```bash
textPlay --version
```

or

```bash
textPlay -v
```

To display the version of textPlay.

---

**Menu**

```bash
textPlay --menu
```

or

```bash
textPlay -m
```

To display the menu of textPlay.

---

**Contact**

```bash
textPlay --contact
```

or

```bash
textPlay -c
```

To display the contact details of textPlay.

---

**Update**

```bash
textPlay --update
```

or

```bash
textPlay -U
```

To update the textPlay module.

## Installation

To install the TextPlay module, you can download it directly by using `pip`

```bash
pip install textPlay
```

## Module Detials

- **VERSION:** `0.1.4`
- **TITLE:** `textPlay`
- **LICENSE:** `Apache License Version 2.0`
- **AUTHOR:** `Rakesh Kanna S`
- **AUTHOR EMAIL:** [rakeshkanna0108@gmail.com](mailto:rakeshkanna0108@gmail.com)
- **PYPI LIBRARY:** https://pypi.org/project/textPlay
- **GITHUB LIBRARY:** https://github.com/rakeshkanna-rk/textPlay
- **GITHUB PROFILE:** https://github.com/rakeshkanna-rk

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rakeshkanna-rk/textPlay",
    "name": "textPlay",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "text tools, cli, terminal, google search, web search, morse code, decode, encode, box, colors, options, password generator, progress bar, encryption animation, files, backend, source code",
    "author": "Rakesh Kanna S",
    "author_email": "rakeshkanna0108@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b0/f1/5843866a63c483a659f7ce6d6f309f3a2c6dcd770fb2a5b3211a3f0811ed/textPlay-0.1.4.tar.gz",
    "platform": null,
    "description": "<p align=\"center\"><img src=\"https://raw.githubusercontent.com/rakeshkanna-rk/textPlay/main/textplay_logo.png\" alt=\"TextPlay Logo\" width=\"200\"></p>\r\n\r\n<br>\r\n\r\n<H1 align=\"center\">TextPlay</H1>\r\n\r\n**Welcome to the TextPlay repository! \ud83d\udc4b**  \r\nThis versatile Python module provides a range of text-related functions and tools to enhance your text analysis, summarization, translation, Morse code encoding/decoding, Google search, and more.\r\n\r\n### To use my module\r\n\r\n```bash\r\npip install textPlay\r\n```\r\n\r\n```python\r\nimport textPlay\r\n```\r\n\r\n## Features\r\n\r\n- **Google Search \ud83d\udd0d:** This tool will search Google for a query and display the results. you can specify the number of results to display.\r\n\r\n```python\r\nfrom textPlay import google_search\r\n\r\nsearch_query = \"Python programming\"\r\ntop_results = google_search(search_query, num_results=3)\r\nprint(top_results)\r\n```\r\n\r\n---\r\n\r\n- **Morse Code Encoder/Decoder \ud83d\udce3:** This tool will encode and decode a message using the morse code. It will automatically detect if the input is morse code or text.\r\n\r\n```python\r\nfrom textPlay import morse\r\n\r\nmorse = Morse()\r\n\r\nencoded_text = morse.coder(\"Hello, World!\")\r\nprint(\"Encoded Text:\", encoded_text)\r\n\r\ndecoded_text = morse.decoder(encoded_text)\r\nprint(\"Decoded Text:\", decoded_text)\r\n```\r\n\r\n---\r\n\r\n- **Box \ud83d\udce6:** This tool will print a box with a message and a title with specified length.\r\n\r\n```python\r\nfrom textPlay import box\r\n\r\ntitle = \"Title\"\r\ncontent = [\"word 1\", \"word 2\"]\r\nwidth_percentage = 99  # Adjust as needed\r\nbox_with_title = create_box(title, content, width_percentage)\r\nprint(box_with_title)\r\n```\r\n\r\n---\r\n\r\n- **Colors**: This tool will print text in different colors and styles.\r\n\r\n```python\r\nfrom textPlay import colors\r\n\r\nprint(f\"{RED}This is red text{RESET}\")\r\nprint(f\"{BG_GREEN}This has a green background{RESET}\")\r\nprint(f\"{BOLD}This is bold text{RESET}\")\r\n```\r\n\r\n---\r\n\r\n- **Options**: This tool will display a menu with options and handle user input for navigation and selection. Main function to display a menu with options and handle user input for navigation and selection.\r\n\r\n```python\r\nfrom textPlay import options\r\n\r\noptions(option=[('Option A', lambda: print(\"Option A selected\")),\r\n                ('Option B', lambda: print(\"Option B selected\")),\r\n                ('Option C', lambda: print(\"Option C selected\")),\r\n                ('Option D', lambda: print(\"Option D selected\"))],\r\n                index=\">\",\r\n                head=\"Select an option:\",\r\n                delay=0.2,\r\n                exit_msg=\"Exiting...\",\r\n                exit_key=\"esc\")\r\n```\r\n\r\n---\r\n\r\n- **Password Generator**: This tool will generate a random password with the specified length.\r\n\r\n```python\r\nfrom textPlay import password_generator\r\n\r\npassword = password_generator(length=12)\r\nprint(password)\r\n```\r\n\r\n---\r\n\r\n- **Encryption Animation**: Simulate the encryption process by displaying random special characters before revealing the actual word.\r\n\r\n```python\r\nfrom textPlay import encrypt_animation\r\n\r\nencrypted(\"Hello\", sleep_time=0.1, end_color=BLUE, special_characters=\"!@#$%^&*()_+-=[]{}|;:,.<>?/\")\r\n```\r\n\r\n---\r\n\r\n- **Progress Bar Loader**: This tool will display a progress bar with a loading animation. Simulate and display a progress bar incrementing from 0% to 100%.\r\n\r\n```python\r\nfrom textPlay import progress_bar_loader\r\n\r\n# Display a progress bar with custom parameters\r\nprogress_bar_loader(length=30, symbol='*', empty_symbol='-', color_on_completion=GREEN)\r\n```\r\n\r\n- **Files**: This tool will list, delete, rename, and move files and folders.\r\n\r\n```python\r\nfrom textPlay import files\r\n\r\nfiles = files.list_dir(USER)\r\nprint(files)\r\n```\r\n\r\n---\r\n\r\n- **Backend**: Executes the given command in the background using the subprocess module.\r\n\r\n```python\r\nfrom textPlay import backend\r\n\r\nlist_dir = backend.backend_exec(\"ls\")\r\nprint(list_dir)\r\n```\r\n\r\n---\r\n---\r\n\r\n- **CLI**: A command line interface (CLI) for textPlay.\r\n\r\n**Help**\r\n\r\n```bash\r\ntextPlay --help\r\n```\r\n\r\nor\r\n\r\n```bash\r\ntextPlay -h\r\n```\r\n\r\nTo display all the CLI options\r\n\r\n---\r\n\r\n**Version**\r\n\r\n```bash\r\ntextPlay --version\r\n```\r\n\r\nor\r\n\r\n```bash\r\ntextPlay -v\r\n```\r\n\r\nTo display the version of textPlay.\r\n\r\n---\r\n\r\n**Menu**\r\n\r\n```bash\r\ntextPlay --menu\r\n```\r\n\r\nor\r\n\r\n```bash\r\ntextPlay -m\r\n```\r\n\r\nTo display the menu of textPlay.\r\n\r\n---\r\n\r\n**Contact**\r\n\r\n```bash\r\ntextPlay --contact\r\n```\r\n\r\nor\r\n\r\n```bash\r\ntextPlay -c\r\n```\r\n\r\nTo display the contact details of textPlay.\r\n\r\n---\r\n\r\n**Update**\r\n\r\n```bash\r\ntextPlay --update\r\n```\r\n\r\nor\r\n\r\n```bash\r\ntextPlay -U\r\n```\r\n\r\nTo update the textPlay module.\r\n\r\n## Installation\r\n\r\nTo install the TextPlay module, you can download it directly by using `pip`\r\n\r\n```bash\r\npip install textPlay\r\n```\r\n\r\n## Module Detials\r\n\r\n- **VERSION:** `0.1.4`\r\n- **TITLE:** `textPlay`\r\n- **LICENSE:** `Apache License Version 2.0`\r\n- **AUTHOR:** `Rakesh Kanna S`\r\n- **AUTHOR EMAIL:** [rakeshkanna0108@gmail.com](mailto:rakeshkanna0108@gmail.com)\r\n- **PYPI LIBRARY:** https://pypi.org/project/textPlay\r\n- **GITHUB LIBRARY:** https://github.com/rakeshkanna-rk/textPlay\r\n- **GITHUB PROFILE:** https://github.com/rakeshkanna-rk\r\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "A package for many unique text tools, to make your text beautiful.",
    "version": "0.1.4",
    "project_urls": {
        "GitHub": "https://github.com/rakeshkanna-rk/textPlay",
        "Homepage": "https://github.com/rakeshkanna-rk/textPlay",
        "Python Package Index": "https://pypi.org/project/textPlay/"
    },
    "split_keywords": [
        "text tools",
        " cli",
        " terminal",
        " google search",
        " web search",
        " morse code",
        " decode",
        " encode",
        " box",
        " colors",
        " options",
        " password generator",
        " progress bar",
        " encryption animation",
        " files",
        " backend",
        " source code"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "284d6d3648253ca1fc51d3e541b04623941407a356b11e4a7165be2779293743",
                "md5": "98913692c74c5ed19a3f1e505f5f8bce",
                "sha256": "b2db344b04a097bb921a5c984d2886a5555fc05fe849362f40c15eea4e10ad35"
            },
            "downloads": -1,
            "filename": "textPlay-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "98913692c74c5ed19a3f1e505f5f8bce",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 29140,
            "upload_time": "2024-08-14T12:43:49",
            "upload_time_iso_8601": "2024-08-14T12:43:49.649362Z",
            "url": "https://files.pythonhosted.org/packages/28/4d/6d3648253ca1fc51d3e541b04623941407a356b11e4a7165be2779293743/textPlay-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b0f15843866a63c483a659f7ce6d6f309f3a2c6dcd770fb2a5b3211a3f0811ed",
                "md5": "873c16e50001fdb6b6a5b3472f30d02e",
                "sha256": "d7c52abed56bb4ce41984e811c9ff305d3df720be512db4d03d05aae950ae555"
            },
            "downloads": -1,
            "filename": "textPlay-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "873c16e50001fdb6b6a5b3472f30d02e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 19269,
            "upload_time": "2024-08-14T12:43:55",
            "upload_time_iso_8601": "2024-08-14T12:43:55.934923Z",
            "url": "https://files.pythonhosted.org/packages/b0/f1/5843866a63c483a659f7ce6d6f309f3a2c6dcd770fb2a5b3211a3f0811ed/textPlay-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-14 12:43:55",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rakeshkanna-rk",
    "github_project": "textPlay",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "beautifulsoup4",
            "specs": [
                [
                    ">=",
                    "4.12.3"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    ">=",
                    "2.31.0"
                ]
            ]
        },
        {
            "name": "keyboard",
            "specs": [
                [
                    ">=",
                    "0.13.5"
                ]
            ]
        }
    ],
    "lcname": "textplay"
}
        
Elapsed time: 0.34210s